Lockwell

Docs · Reference

HTTP API

Base address: https://vault.lunaor.com. Send the token as X-Vault-Token (or Authorization: Bearer). Answers use Vault's envelope ({"data": …}, {"auth": …}), and errors are {"errors": ["…"]} with Vault's words: a plan limit, a refused scope or a check-and-set mismatch says which.

MethodPathNeeds
POST/v1/auth/approle/loginnone: role_id and secret_id
GET/v1/lw-<team>/data/<path>read (?version=N, ?resolve=true)
POST, PUT/v1/lw-<team>/data/<path>write ({data, options.cas})
PATCH/v1/lw-<team>/data/<path>write (a JSON merge patch of data)
DELETE/v1/lw-<team>/data/<path>write (soft-deletes the current version)
POST/v1/lw-<team>/undelete/<path>write ({versions: [N]})
GET/v1/lw-<team>/metadata/<path>read (?list=true on a folder: its keys)
POST/v1/lw-<team>/metadata/<path>write (max_versions, cas_required, delete_version_after, custom_metadata)
GET/v1/lw-<team>/subkeys/<path>read (fields with values null)
GET/v1/lw-<team>/diff/<path>read (?from=&to=)
GET/v1/lw-<team>/resolved/<folder>/read (?values=true&resolve=true)
POST/v1/lw-<team>/restore/<folder>/read to preview, write to apply
POST/v1/scanread on the prefix
POST/v1/sharesread on the secret
POST/v1/shares/<id>/opennone: the link's key
POST/v1/sys/wrapping/unwrap, /lookup, /rewrap, /wrapthe wrapping token, or any token for wrap

Destroying versions and deleting a secret's metadata need admin, which machine identities don't carry: owners and admins destroy in the secrets editor.