Use case
Catch a leaked secret
Pattern scanners find things that look like keys and miss the ones that don't. Vault knows your actual values, so it can say exactly which secret is in a piece of text.
Ask Vault which secrets a text holds
Send up to 1 MiB of text (a build log, a diff, a pasted config, a support ticket) and a folder. Every secret in it that your identity can read is matched against the text, each string field of the current version. The answer names the path, field, version and offset. It never contains the value, so the answer itself is safe to post.
# fail the job if its log holds any secret this identity can read, naming which to rotate
jq -Rs --arg p lw-<team>/ci/ '{text: ., prefix: $p}' build.log > payload.json
curl -sf -H "X-Vault-Token: $VAULT_TOKEN" --data @payload.json "$VAULT_ADDR/v1/scan" > scan.json
jq -r '.data.leaks[] | "leaked: \(.path) \(.field) (version \(.version))"' scan.json
jq -e '.data.leaks == []' scan.json > /dev/null- Values shorter than 8 characters, blank values and references are skipped, since they'd match everywhere.
- Up to 2,000 secrets per check. The answer says if more were left.
- Each check is in the audit log with the number of leaks found, never the text.
Then rotate it
Issue a new credential where it came from, write it as a new version, and the next start of each app reads it. A diff on the secret confirms only that field moved.
More use cases
Get secrets out of .env files
Move an app's .env into Lockwell and start it with its secrets as environment variables, with nothing on disk.
Secrets in CI
Give each pipeline an identity that reads one folder for an hour, mask values in logs, and fail the build on a leak.
Hand a secret to someone once
A contractor or a vendor needs one API key. Send a link that opens once, not a message that stays forever.
Move your first app's secrets in an afternoon.
Free for up to 100 secrets and 2 machine identities. Every teammate is free on every plan.