Skip to main content

Module lifecycle

Module lifecycle 

Source
Expand description

Credential generations and lifecycle facts (roadmap R07).

Entry JSON holds current descriptive state. This module holds generations, append-only lifecycle facts, pending credentials and deployment state, so high-churn operational data does not bloat an entry document.

Structs§

TimelineEvent

Constants§

HISTORIED_SECRET_FIELDS
Stable paths of entry values whose replacement creates a generation.

Functions§

deployment_generation_mismatches
Deployment rows whose recorded generation is no longer the active one. This is the query R12 uses for “rotated but not redeployed” without ever comparing a secret value or cross-vault fingerprint.
deployment_state
Latest deployment state per target. R12 will write reports through this API.
deployment_state_all
Every deployment row, newest check first: what each node last reported for each secret.
init_schema
Create R07’s relational side tables. Entry metadata remains optional JSON so a prior desktop preserves it during a formToEntry round trip.
record_deployment
Records what a node reported for one secret on one target (R12): the generation that is active now, the hash that was applied, and the outcome. A success sets applied_*; a failure keeps what an earlier success recorded and changes only the outcome, so “the last good deployment” is never lost to a failed retry. A secret with no active generation (the vault has not recorded one) is skipped and false returned.
record_event
Records one lifecycle event for an entry (a cutover, say). Public so the application layer can write events that no save diff would detect; the detail must carry no secret.
record_save
Record lifecycle side effects inside the transaction that writes entry rows.
seed_existing
Seed generation one for entries that predate R07. It runs after row storage migration because a 0.42.x vault can still have its document in the legacy blob when migration 0003 installs the relational tables.
timeline
Public, secret-free timeline records for one stable entry id.