Lockwell

Getting started

  1. Sign up and your team is made for you; invite teammates from Teams as owners, admins or members. Your team's secrets live under one path in Vault, shown in the console: lw-<team id>/.
  2. Make a machine identity in the console with read and write access, for your laptop or a setup script. Copy its role_id and secret_id: the secret ID is shown once.
  3. Log in and write secrets with HashiCorp's Vault CLI:
export VAULT_ADDR=https://vault.lunaor.com
export VAULT_TOKEN=$(vault write -field=token auth/approle/login role_id=… secret_id=…)
vault kv put lw-<team>/prod/db url=postgres://… password=…
vault kv get -field=password lw-<team>/prod/db
vault kv rollback -version=1 lw-<team>/prod/db
  1. Give each server or CI job its own identity, read-only, for the folder it needs (prod/, say). In CI, keep the role_id and secret_id in the CI's own secret settings and log in at the start of the job.
  2. Run your app with its secrets as environment variables, with vault-run: each field becomes a variable (url → URL), and later folders override earlier ones.
vault-run lw-<team>/shared/ lw-<team>/prod/ -- ./server --port 8080
  1. Or call the HTTP API from any language (it is Vault's KV v2):
curl -s https://vault.lunaor.com/v1/auth/approle/login -d '{"role_id":"…","secret_id":"…"}'      # .auth.client_token
curl -s https://vault.lunaor.com/v1/lw-<team>/data/prod/db -H "X-Vault-Token: $TOKEN"        # .data.data

Who can do what

Team owners and admins manage everything under your team's path: machine identities, protected folders, and billing. Members read and write app/ and read shared/. Today people reach the secrets through machine identities made in the console; signing in to Vault's own pages as yourself, with your team role, is coming. Machine identities can only ever reach your team's path.

More

Versions, soft delete and undelete, rollback, folders that inherit and references between secrets all work under your team's path through Vault's KV v2 API. Questions: support@lockwell.dev.