Docs · Deliver
Sharing and wrapping
One-time links
POST /v1/shares with path, an optional version and ttl_s (300 to 604,800 seconds, default a day). It needs read on the secret. The answer's link opens once at Vault's address, with no account needed.
# a link that opens once, for a day, for someone with no Lockwell account
curl -sf -H "X-Vault-Token: $VAULT_TOKEN" "$VAULT_ADDR/v1/shares" \
-d '{"path": "lw-<team>/vendors/acme-api", "ttl_s": 86400}' | jq -r .data.link
# -> /ui#share=<id>.<key>: send it as https://vault.lunaor.com/ui#share=<id>.<key>
# (the key is in the #fragment, so neither Vault's nor a proxy's log ever sees it)GET /v1/shares?prefix= lists unopened shares for an admin of the prefix, and DELETE /v1/shares/<id> cuts one short (by its maker, or an admin).
Response wrapping
Any read can come back wrapped: send X-Vault-Wrap-TTL (1 second to 7 days), or -wrap-ttl in HashiCorp's CLI. The token opens once.
# the answer comes back as a single-use token instead of the value
vault read -wrap-ttl=15m lw-<team>/data/ci/deploy-key # wrap_info.token: hvw.…
vault unwrap hvw.… # the value, once; a second unwrap fails, so a leak showscurl -sf -H "X-Vault-Token: $VAULT_TOKEN" -H "X-Vault-Wrap-TTL: 15m" "$VAULT_ADDR/v1/lw-<team>/data/ci/deploy-key" | jq -r .wrap_info.token
curl -sf -X POST -H "X-Vault-Token: hvw.…" "$VAULT_ADDR/v1/sys/wrapping/unwrap"