Skip to content
Secrets StoreMarkdown

Secrets

A secret is a set of named values under a path, versioned on every write, with its own settings and labels, found by browsing its vault.

AvailableAPI

A secret is a set of named values, such as a user name and a password, kept under a path you choose, such as web/github. Every write keeps the earlier state as a numbered version, so you can read what a secret was and go back to it. You decide how much history a secret keeps, make writers name the version they replace, browse a vault by folder, and choose how final each deletion is.

CapabilityWhat it gives you
VersionsEvery write a new numbered version; read or merge into any of them
Check-and-setA write names the version it replaces, so no change is silently lost
MetadataA secret’s history, its own settings and your labels, without its values
SubkeysThe names inside a secret, without opening its values
ListingBrowse a vault one folder at a time (with limits)
Delete, undelete and destroyTake a version back softly, bring it back, or remove it for good

Every operation on a secret is addressed as <vault>/<operation>/<path> under https://foobar.cvyuh.com/api/v0/vault/managed/v1, where <vault> is me, user/<user id>, group/<group id> or realm (see Vaults):

OperationWhat it reaches
datathe values, by version: read, write, merge, delete the latest
metadatathe version map, settings and labels; listing; deleting the whole secret
subkeysthe names inside a version
delete, undelete, destroychosen versions
grants, sharewho else reaches it: see Sharing

For example, reading the latest version of web/github in your own vault (Call the API shows how to get $CVYUH_SESSION):

Terminal window
curl https://foobar.cvyuh.com/api/v0/vault/managed/v1/me/data/web/github \
-H "Cookie: x-cvyuh-token=$CVYUH_SESSION"
  • Paths are names, not files. A path can’t be empty or hold an empty, . or .. segment. The same path in two vaults is two separate secrets.
  • Paths and values are sealed. The store keeps each value, label and path sealed for the vault’s owner; see Sealing per owner. A request’s address names its path, and each request is recorded, so choose paths that don’t give a secret away.
  • One request carries at most 2 MiB. That bounds one version’s values and labels; the store sets no other size, count or rate limit of its own.
  • Every secret follows the realm’s defaults for history and check-and-set unless it sets its own: see Realm settings.

A listing that always includes the path just written: see What’s next for secrets.