Skip to main content

Module recovery

Module recovery 

Source
Expand description

Streamed age-encrypted recovery packages (.unvpkg, format v1).

Structs§

Manifest
PackageFile
PackageInput

Constants§

DRILL_IDENTITY_META_KEY
The age identity used only by an unlocked local executor to exercise a restore drill. vault_meta is SQLCipher-encrypted and this value is never exposed through an output command; the user-held recovery-key copy remains the recovery path for a new machine.
RECIPIENT_META_KEY

Functions§

drill_identity
generate_identity
Generates a recovery identity, returning the public recipient and the identity text that must be shown or saved exactly once by the caller.
inspect_package
Reads the cleartext envelope header only; the vault payload stays encrypted.
recipient
restore_package
Decrypts and validates into a staging directory before any target file is written.
restore_package_with_identity
Decrypts a package with in-memory identity text. This is used by the unlocked monthly drill so it never materializes the identity in a temporary file. Human recovery still uses restore_package and a user-held key.
set_drill_identity
Stores the recovery identity inside the encrypted vault for unattended restore drills. Callers must never print this value after creation.
set_recipient
verify_restored
Validates every local invariant of a restored package directory.
verify_restored_with_key
Equivalent to verify_restored, but reuses an already-derived key held by the unlocked executor. Restore drills therefore do not prompt for, retain or re-derive the vault password.
write_package
Writes one package to output without buffering the vault or package.