mirror of
https://github.com/Such-Software/smirk-backend-core.git
synced 2026-10-17 15:31:38 +02:00
docs(operator): OPERATOR_SETUP guide + fix .env.example peppers + README bootstrap
- .env.example: add the required at-rest identity secrets (SEED_FINGERPRINT_PEPPER, REFRESH_TOKEN_PEPPER, IP_SALT). They were missing, so `cp .env.example .env` on a fresh setup boot-failed closed on the first required-secret check. - README: correct the first-admin bootstrap to `smirk-admin setup --pubkey`. create-admin-wallet registers a pending key but does not latch, so on a fresh instance it leaves the bootstrap uninitialized. - docs/operations/OPERATOR_SETUP.md: full deployment guide — database, secrets, per-chain backends, run + verify, admin bootstrap, registration policy, and smoke-testing an instance (SMOKE_API_STYLE=namespaced). Surfaced by a clean-room operator setup against a fresh instance.
This commit is contained in:
@@ -22,6 +22,14 @@ DATABASE_URL=postgres://user:password@127.0.0.1:5432/smirk
|
||||
JWT_SECRET=
|
||||
JWT_EXPIRY_HOURS=24
|
||||
|
||||
# ── At-rest identity secrets (REQUIRED; generate each: openssl rand -hex 32) ─
|
||||
# HMAC peppers keep stored identity values (pubkey_hash, seed_fingerprint)
|
||||
# non-reproducible from a candidate seed; the salt unlinks client IPs in abuse
|
||||
# tables. Boot fails closed if any is unset or too short.
|
||||
SEED_FINGERPRINT_PEPPER=
|
||||
REFRESH_TOKEN_PEPPER=
|
||||
IP_SALT=
|
||||
|
||||
# ── Proof-of-work signup gate (ALTCHA v2) ─────────────────────────────────
|
||||
ALTCHA_HMAC_KEY=
|
||||
POW_REQUIRED=false
|
||||
|
||||
Reference in New Issue
Block a user