lib.ec.secret_store.Vault: Add the store class #149
Loading…
Reference in a new issue
No description provided.
Delete branch "jan/feature/20261017-lib-ec-secret-store-vault-add-the-store-class"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
lib.ec.secret_store.Vault: Add the store class
This commit adds the Vault store and the vault:// dispatch in FileContext.
A Vault KV v2 server maps nicely into
jw-pkg's secret handling abstraction as just another secret store backend. Environment variables identify the storage details, analogous to the way it's handled in theSOPSbackend.JW_SECRETS_VAULT_ADDRnames the server, a unix socket address or an http URL; the standardVAULT_ADDRis never read;JW_SECRETS_VAULT_MOUNTthe mount path, default secret; the token is the standardVAULT_TOKENThe test drives a dev server fixture from the workspace: stat/readdir/get on the fixture, the default fallback, the storage marker, and the copy forms - single key, whole entry, recursive entry, deploy to the on-host layout, and a host subtree.