foundation/bootstrap/components
Andreas Niemann 522c5d7a54 fix(forgejo): generate + set SECRET_KEY (was empty under INSTALL_LOCK)
Follow-up to the crypto-secret mirror: Forgejo's [security] SECRET_KEY was
EMPTY because the bootstrap skips the web installer (INSTALL_LOCK), which is
what normally generates it. An empty SECRET_KEY weakens at-rest encryption of
2FA secrets, push-mirror/migration passwords, and OAuth app secrets.

Generate it with @pulumi/random (it is a plain high-entropy string, not a
format-constrained JWT — so unlike INTERNAL_TOKEN/JWT_SECRET it CAN be
random-generated, matching CONTRACT_002 §2.3) and inject via
FORGEJO__security__SECRET_KEY; env-to-ini overwrites it in the volume's
app.ini while leaving Forgejo's own INTERNAL_TOKEN + JWT secrets untouched.
The GATE-B mirror then captures the real value into Vault.

Done now while the egg is fresh (no encrypted data yet) → no re-encryption.

Validated live: app.ini + Vault forgejoSecretKey = 40 chars; forge healthz
pass + https 200; scp-form clone works; idempotent at 44 unchanged.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-30 23:30:35 +02:00
..
credentials.ts fix(forgejo): generate + set SECRET_KEY (was empty under INSTALL_LOCK) 2026-06-30 23:30:35 +02:00
dns.ts feat(bootstrap): real olsitec.net config + DNS records (steps 1+2) 2026-06-30 20:47:30 +02:00
forgejo.ts fix(forgejo): generate + set SECRET_KEY (was empty under INSTALL_LOCK) 2026-06-30 23:30:35 +02:00
network.ts feat(bootstrap): shared docker provider + foundation-net precursor (ADR-006) 2026-06-30 18:18:40 +02:00
postgres.ts feat(bootstrap): postgres data-plane + remote helper (T03) 2026-06-30 21:10:34 +02:00
proxy.ts feat(bootstrap): caddy public ingress + DNS-01 TLS (T07) 2026-06-30 21:54:12 +02:00
runner.ts feat(bootstrap): forgejo actions runner (T10) 2026-06-30 22:38:37 +02:00
rustfs.ts feat(bootstrap): rustfs S3 data-plane + buckets/service account (T04) 2026-06-30 21:19:53 +02:00
vault.ts feat(bootstrap): vault init/unseal + capture to encrypted config (T05) 2026-06-30 21:32:52 +02:00