Lockwell

Use case

Hand a secret to someone once

A contractor needs the staging API key. A message with it stays in their chat history for good. Send a link that opens once instead.

A one-time link

Anyone who can read a secret can make a link to its current values, good for 5 minutes to 7 days. Whoever opens it first gets the values, and then it's gone. The key is only in the link: Vault stores the values encrypted under it and keeps only a hash, so even we can't open a share without the link. The opening page needs no account, and opens nothing until the person presses Open it now, so a chat app's link preview doesn't use it up.

# 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)

Each step is in the audit log: who made the share, and the open, with the opener's address. An admin can cut a share short.

A wrapped answer, for a machine

For a CI job or a script, ask for a read as a single-use wrapping token instead. If someone else unwraps it first, the intended reader's unwrap fails, so the leak shows.

# 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 shows

Afterwards

A handed-over secret is a copy you no longer control. When the work is done, write a new version in the editor and revoke the old credential where it was issued.

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.

Undo a bad change

A script overwrote production's secrets. See what changed and put the folder back as it was at 09:00.

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.