feat(staging): enable federation on persistent staging
social-federation rollout step 12.2 — inbound soak. Persistent staging gets FEDERATION_ENABLED=true; PR previews keep the flag empty so preview journals never emit federation traffic. - docker-compose.staging.yml: journal accepts FEDERATION_ENABLED + FEDERATION_KEY_ENCRYPTION_KEY (both default empty). - cd-staging.yml: persistent staging env sets FEDERATION_ENABLED=true; the encryption key arrives via the existing SOPS decryption. - secrets.app.env: new FEDERATION_KEY_ENCRYPTION_KEY (SOPS-encrypted, generated with openssl rand -hex 32). Production is unaffected: the flagship compose doesn't pass these vars and the flag defaults off in code. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
bec249f93f
commit
57f9440cf5
3 changed files with 12 additions and 2 deletions
|
|
@ -61,6 +61,11 @@ services:
|
|||
WAHOO_CLIENT_SECRET: ""
|
||||
WAHOO_WEBHOOK_TOKEN: ""
|
||||
DEMO_BOT_ENABLED: ""
|
||||
# Federation soak (social-federation rollout step 12.2). Enabled by
|
||||
# cd-staging.yml for persistent staging only; PR previews leave both
|
||||
# empty (flag off) so preview journals never emit federation traffic.
|
||||
FEDERATION_ENABLED: ${FEDERATION_ENABLED:-}
|
||||
FEDERATION_KEY_ENCRYPTION_KEY: ${FEDERATION_KEY_ENCRYPTION_KEY:-}
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "curl -sf http://localhost:3000/api/health || exit 1"]
|
||||
interval: 15s
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue