Self-host
Summary: run your own server: build it, configure it, publish it, and create the first account.
-
Build the server and the web bundle (Rust version in
rust-toolchain.toml; the web bundle needswasm-bindgen-cliwith the version inCargo.lock):cargo build --release -p secrets-server cargo xtask web --issuer https://secrets-api.example.com --web https://secrets.example.com # writes target/web -
Install
target/release/secrets-serverand write/etc/secrets/server.toml(see Operation for the keys). Run it under systemd as its own user with the hardening of spec §14.6. It listens on127.0.0.1:8470. -
Publish the public listener at the API origin through a reverse proxy or an outbound tunnel. Set
client_ip_headerto the header your proxy sets. -
Serve
target/webfrom the web origin on a static host, with the headers of its_headersfile. Both origins must serve/.well-known/secrets-server. -
Create the first account:
sudo -u secrets secrets-server --config /etc/secrets/server.toml admin invite --adminOpen the printed link, register a passkey, and store the recovery key.
-
Back up the database: Litestream or another WAL-aware tool for SQLite,
pg_dumpor WAL archiving for PostgreSQL.
Check it from a client: secrets-chad login --host secrets.example.com, then secrets-chad doctor.