Quick start
ferritor running on your machine in about ten minutes: the two databases, a server, the first init and unseal, a namespace and a few secrets through the CLI and the JSON API, and an agent keeping them current as files.
What you need
Section titled “What you need”- Linux, x86_64 or arm64: the server and the agent are released as static Linux binaries (the CLI also runs on macOS and Windows Server: see CLI);
- Docker or Podman with compose, for the two Postgres databases;
curl.
To build ferritor from source instead, see development.
1. The binaries and the databases
Section titled “1. The binaries and the databases”The release’s archive for your machine, checked against its checksums,
and the databases’ compose.yaml from the same release:
mkdir ferritor-quickstart && cd ferritor-quickstartversion=1.3.0dir=ferritor-$version-$(uname -m)-unknown-linux-muslcurl -fsSLO "https://github.com/ferritor/ferritor/releases/download/v$version/$dir.tar.gz"curl -fsSLO "https://github.com/ferritor/ferritor/releases/download/v$version/SHA256SUMS"sha256sum -c SHA256SUMS --ignore-missing && # …-unknown-linux-musl.tar.gz: OK tar -xzf "$dir.tar.gz" && # ferritor-server, ferritor, ferritor-agent, ferritor-csi-provider export PATH="$PWD/$dir:$PATH"curl -fsSLO "https://raw.githubusercontent.com/ferritor/ferritor/v$version/compose.yaml"Nothing is unpacked unless the checksum matches: it shows the archive arrived whole; that it’s the release workflow’s own build, its cosign signature shows (production).
ferritor keeps its keys and its secrets in two separate databases, so that
neither one alone opens anything (see architecture).
compose.yaml starts both:
docker compose up -d # keys database on 5433, data database on 5434until docker compose exec -T keys-db pg_isready -h 127.0.0.1 -U ferritor -q && docker compose exec -T data-db pg_isready -h 127.0.0.1 -U ferritor -q; do sleep 1; doneThe loop waits until both accept connections over TCP, as the server will connect (on its first start Postgres runs a while on its socket alone, setting up): the server applies their migrations when it starts, and doesn’t wait for them.
2. The server
Section titled “2. The server”export FERRITOR_KEYS_DATABASE_URL=postgres://ferritor:ferritor@localhost:5433/ferritor_keysexport FERRITOR_DATA_DATABASE_URL=postgres://ferritor:ferritor@localhost:5434/ferritor_dataferritor-server > audit.logIt applies the databases’ migrations and serves gRPC and the JSON API on
127.0.0.1:7070. Every setting can come from the environment like these
two, FERRITOR_ and the key in capitals (configuration).
Its log goes to stderr; stdout carries the audit log
and nothing else, hence the redirect (a real deployment gives the audit log
a file or a collector of its own, audit_file or [audit_otlp]). Without
a ferritor.toml it’s in dev mode, and says so:
WARN dev mode without audit_signing_key: the audit log is chained but unsigned, so edits to it can't be provenINFO dev mode without audit_file or [audit_otlp]: the audit log goes to stdoutINFO serving gRPC and the JSON API; sealed addr=127.0.0.1:7070 mode="dev mode: plaintext, everyone allowed, loopback only"It starts sealed: nothing that needs a key works until it’s unsealed.
3. The CLI
Section titled “3. The CLI”In another shell, in the same directory, put the binaries on the PATH
again:
cd ferritor-quickstartexport PATH="$PWD/$(echo ferritor-*-unknown-linux-musl):$PATH"ferritor status # not initializedIt talks to http://127.0.0.1:7070 unless told otherwise (--addr, or
FERRITOR_ADDR; see CLI).
4. Initialize and unseal
Section titled “4. Initialize and unseal”init creates the root key, the one key every other key is wrapped under,
and splits it into shares. Any three of the five rebuild it:
ferritor init --shares 5 --threshold 3share 1 (generation 1): 010000000101e96d…share 2 (generation 1): 010000000102a789……Initialized: 5 shares, any 3 unseal. The server is still sealed.The shares are printed once and stored nowhere. In a real deployment each goes to a different operator. Unseal with three of them, one call each, giving only the hex after the colon. On a terminal the share is read at a hidden prompt; it’s never a command-line argument:
ferritor unseal # paste a share; three times, a different one each timeunsealedshares: 5, threshold: 3generation: 1The server now holds the root key in memory, and only there. A restart
starts it sealed again, and so does ferritor seal, the emergency stop (see
key management).
5. A namespace and a secret
Section titled “5. A namespace and a secret”Every secret’s path starts with its namespace (app/db is in app), and
each namespace has its own keys. There’s no default one, so create it first:
ferritor namespace create appecho -n 's3cret' | ferritor put app/dbferritor get app/dbcreated namespace appactive KEK version: 1app/db version 1s3cretValues are read from stdin, byte for byte (or at a hidden prompt on a terminal), and printed raw: never a command-line argument.
6. Versions, labels, delete and restore
Section titled “6. Versions, labels, delete and restore”Every put is a new version, and the older ones stay readable:
echo -n 'n3w' | ferritor put app/dbferritor versions app/dbferritor get app/db --version 1app/db version 2version 2 created 2026-10-28T07:31:47Z liveversion 1 created 2026-10-28T07:31:47Z lives3cretLabels are plain metadata for finding secrets (never put a secret in one), and a listing covers everything below a prefix:
ferritor metadata set app/db team=billingecho -n 'x' | ferritor put app/api-keyferritor list appapp/api-key version 1app/db version 2Only the secrets with a label:
ferritor list app --label team=billingapp/db version 2A delete is soft: every version is kept, restorable until the server’s
retention (30 days by default) lets ferritor purge remove it:
ferritor delete app/dbferritor get app/db # error: secret `app/db` not foundferritor restore app/db # app/db version 2 restoredMore in secrets: check-and-set, the version limit, purging.
7. The JSON API
Section titled “7. The JSON API”The same server answers JSON on the same port, with values in base64:
curl -s localhost:7070/v1/secrets/app/dbcurl -s -X PUT localhost:7070/v1/secrets/app/db \ -H 'content-type: application/json' \ -d "{\"value\": \"$(echo -n from-http | base64)\"}"curl -s 'localhost:7070/v1/secrets?prefix=app'{"path":"app/db","version":2,"created_at":"2026-10-28T07:31:47Z","value":"bjN3"}{"path":"app/db","version":3,"created_at":"2026-10-28T07:31:56Z"}{"secrets":[{"path":"app/api-key","version":1,…},{"path":"app/db","version":3,…}],"next_page_token":""}Every endpoint and error code is in the HTTP API reference.
8. Secrets as files
Section titled “8. Secrets as files”Most applications read their configuration from files. ferritor-agent
keeps secrets current as files next to them:
cat > agent.toml <<'EOF'server = "http://127.0.0.1:7070"
[[output]]dir = "/dev/shm/ferritor-quickstart" # in memory: the agent refuses a disk unless allow_disk = true
[[output.secret]]path = "app/db"
[[output.secret]]path = "app/api-key"EOFferritor-agent run --config agent.tomlINFO files written dir=/dev/shm/ferritor-quickstart files=2INFO watching for changes paths=2/dev/shm is in memory on Linux; elsewhere, use any directory and add
allow_disk = true under [[output]]. Each secret is a file named after
its path’s last segment, swapped in atomically as a set:
cat /dev/shm/ferritor-quickstart/db # from-httpecho -n 'rotated' | ferritor put app/dbcat /dev/shm/ferritor-quickstart/db # rotated, within a momentThe agent heard of the change through a watch stream and rewrote the file at once; it also reads everything again on an interval, as a fallback. See the agent for notifying the application, refusals, and running it as a Kubernetes sidecar or a systemd service. Stop it with Ctrl-C; the files stay.
9. The audit log
Section titled “9. The audit log”Every decision and every change the server made is a line in audit.log:
tail -n 2 audit.log{"time":"…","event":"outcome","caller":null,"action":"write","target":{"kind":"path","path":"app/db"},"operation":"put","result":"succeeded","details":{"trimmed":0,"version":4},"seq":36,"prev":"21b2…"}{"time":"…","event":"authorization","caller":null,"action":"list","target":{"kind":"below","path":"app"},"decision":"allowed","seq":37,"prev":"55cc…"}caller is null because dev mode has no identities. The lines are
hash-chained; with a signing key (secured mode) the chain is signed too,
and ferritor audit verify proves nothing was changed (see
audit). Never a value, a share or a nonce.
What dev mode leaves out
Section titled “What dev mode leaves out”Everything that makes ferritor safe to use:
- Identity and policy. In secured mode every caller presents a client
certificate naming it (
ferritor://apps/billing), and the policy decides what each may do, on which paths. Dev mode allows everything. - TLS. Dev mode is plaintext and answers only requests addressed to loopback.
- A signed audit log. Without a signing key the chain can’t be proven.
- Operators holding the shares, each a different person, or a key management service unsealing the servers by themselves (auto-unseal).
The production deployment guide sets all of it up: two
databases, a small PKI, a ferritor.toml, the first init and unseal, and an
application reading its secret over mTLS.
Starting over
Section titled “Starting over”docker compose down -v # both databases, and everything in themcd .. && rm -rf ferritor-quickstart