Skip to main content
Version: Dev (main)

QarRuntimeEphemeralStorageExt Struct

Extension: keep this runtime's identities in memory only. More...

Declaration​

struct QarRuntimeEphemeralStorageExt { ... }

Included Headers​

Public Member Attributes Index​

QarStructureHeaderheader

Description​

Extension: keep this runtime's identities in memory only.

Chain into QarRuntimeInit.header.next. For a process that must leave nothing on disk, typically a co-process joining with a co-process invite (see QarRequestInviteInit): the identity it onboards with lives in an in-memory secure store and is gone when the runtime is.

  • qar_runtime_onboard writes nothing under the storage root, and out_onboarding_id is the zero id. A non-zero QarOnboardInit.onboarding_id is refused with QAR_STATUS_ARGUMENT_NOT_SUPPORTED. Certificate renewal works as usual.
  • The identity is forgotten when its session handle is destroyed.
  • qar_runtime_rejoin and qar_runtime_forget return QAR_STATUS_ARGUMENT_NOT_SUPPORTED: there is no persisted slot. A restarted process onboards again (a fresh co-process invite from its parent).
  • Only identities are kept off disk. Logs still go to QarLibraryInit.log_folder_path and carry no key or invite secret. A crash dump (its crashes subfolder, or QAR_CRASH_DUMP_DIR) holds process memory and may hold the in-memory key, which is good until its certificate expires (30 minutes for a co-process).
  • QarOnboardLocalAppExt is stateless already and is unaffected.
  • A runtime older than this extension skips it like any unknown chained struct and stores the identity on disk. A chained struct cannot report QAR_STATUS_NOT_IMPLEMENTED, so this is the one case for a version check: before relying on it, check that QarRuntimeInfo::version (qar_runtime_info) is at least the release whose changelog introduces it, comparing the numeric major.minor.patch only. Never compare for equality or by the pre-release suffix. The same holds for QarOnboardLocalAppTagExt.

Definition at line 1736 of file qar_streaming.h.

Public Member Attributes​

header​

QarStructureHeader QarRuntimeEphemeralStorageExt::header

QAR_STRUCTURE_TYPE_RUNTIME_EPHEMERAL_STORAGE_EXT

Definition at line 1739 of file qar_streaming.h.


The documentation for this struct was generated from the following file:


Generated via doxygen2docusaurus 2.2.1 by Doxygen 1.9.8.