Expand description
Local vault, keyring, and session-agent API.
Structs§
- Access
Slot Label - Local-only label for one access slot in a remembered lockbox.
- Agent
Session - Explicit controller for the optional session agent. It caches selected content keys only when asked and never represents persistent Vault data.
- Agent
Sleep Support - Platform sleep/suspend capabilities used by the lockbox session agent.
- Cached
Lockbox - Metadata describing a lockbox whose content key is cached by the agent.
- Known
Lockbox - Lockbox path remembered by the local vault for diagnostics and bulk access refresh operations.
- Noop
Store - Content-key store that never retains keys.
- Platform
Secret Store Status - Current platform secret-store state for the default local vault.
- Profile
Generation - One generation of a vault profile.
- Profile
History - Versioned profile history for one vault profile.
- Read
Only Vault - Read-only view of a persistent
Vault. - Secret
Activity Guard - Registration guard for a command that may hold decrypted secrets in memory.
- Secret
String - UTF-8 secret stored in guarded, zeroizing memory.
- Secret
Vec - Variable-length byte sequence stored in guarded, zeroizing memory.
- Stored
Contact - Contact entry stored in a
VaultDirectory. - Vault
- Persistent encrypted local store for profiles, keys, contacts, and remembered lockbox metadata.
- Vault
Backup Manifest - Metadata stored in an encrypted vault backup archive.
Enums§
- Auto
Open Scope - Scope controlled by the session auto-open setting.
- KeyFormat
- Supported contact key serialization formats.
- Profile
Generation Status - Lifecycle state of one profile key generation.
- Secret
Activity Kind - Category of an operation that temporarily requires secret access.
Constants§
- CURRENT_
VAULT_ STRUCTURE_ VERSION - Current on-disk structure version for records stored inside the local vault.
- FINGERPRINT_
CODE_ 96_ LEN - Number of bytes encoded by the short, human-comparable fingerprint code.
Traits§
- Content
KeyStore - Storage backend for opened Lockbox content keys.
Functions§
- backup_
default_ vault - Writes a consistent encrypted backup archive for the default local vault.
- decode_
fingerprint_ crockford_ 96 - Decodes a 96-bit lower/upper-case Crockford fingerprint code.
- decode_
fingerprint_ hex - Decodes a public-key fingerprint written as hex, with optional separators.
- default_
vault_ dir - Returns the default directory for the local vault.
- default_
vault_ path - Returns the default path to the local vault file.
- disable_
platform_ secret_ store - Disables platform secret-store lookup for the default local vault.
- enable_
platform_ secret_ store - Enables platform secret-store lookup for the default local vault.
- encode_
hex - Encodes bytes as lowercase hexadecimal text.
- export_
private_ key - Exports a contact private key in the requested format.
- export_
public_ key - Exports a contact public key in the requested format.
- forget
- Removes one content key from the platform agent.
- forget_
all - Removes all content keys from the platform agent.
- forget_
platform_ vault_ password - Removes the default local vault password from the platform secret store.
- forget_
vault_ unlock_ key - Removes the cached vault unlock secret for one vault.
- format_
fingerprint_ crockford_ 96 - Formats the first 96 bits of a fingerprint as lower-case Crockford Base32.
- format_
fingerprint_ crockford_ 96_ reading - Returns a lower-case word reading for a Crockford fingerprint code.
- format_
fingerprint_ hex_ pairs - Formats fingerprint bytes as lowercase space-separated hexadecimal pairs.
- get
- Reads a cached content key from the platform agent.
- get_
platform_ vault_ password - Loads the default local vault password from the platform secret store.
- get_
vault_ unlock_ key - Reads the cached vault unlock secret for a specific vault profile.
- import_
private_ key - Imports a contact private key from PEM, JWK, JWKS-compatible JWK, or hex.
- import_
private_ key_ file - Reads and imports a contact private key from a file.
- import_
public_ key - Imports a contact public key from Lockbox PEM, JWK, JWKS, or raw hex.
- is_
running - Returns true when the platform agent transport is currently reachable.
- list
- Lists cached lockboxes known to the platform agent.
- platform_
secret_ store_ disabled - Returns true when platform secret-store lookup should not be attempted.
- platform_
secret_ store_ status - Returns the platform secret-store status for the default local vault.
- public_
key_ fingerprint - Returns the stable fingerprint for a contact public key.
- put
- Stores a content key in the platform agent.
- put_
platform_ vault_ password - Stores the default local vault password in the platform secret store.
- put_
vault_ unlock_ key - Caches a vault unlock secret obtained through the normal vault flow.
- restore_
default_ vault - Restores the default local vault from an encrypted backup archive.
- serve_
agent - Runs the platform content-key agent in the current process.
- set_
auto_ open_ scope - Persists the automatic-open scope for the default local vault.
- start
- Starts the session agent if it is not already running.
- stop
- Stops the platform agent after clearing all cached content keys.
- verify_
agent_ transport_ security - Verifies that the current platform agent transport is configured securely.