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§
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
formToEntryround 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 andfalsereturned. - 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.