foundation/bootstrap/components
Andreas Niemann f2ef9bc922 feat(credentials): mirror backup creds + age key into Vault (CONTRACT_002)
foundation/backup/backup-credentials was never populated in Vault. Add a
writer (same ADR-007 docker-exec-over-SSH pattern, GATE A / dependsOn
vault.init) that mirrors the config-seeded offsite S3 creds and the age key
into Vault, completing CONTRACT_002 §2.3 for in-Vault consumers (Layer-1
ESO, the weekly backup-verify job).

- config.ts: loadBackupSecrets() — single reader of the backup secret slice
  (offsite creds + age recipient/identity), keeping components off raw Config.
- credentials.ts: writeBackupCredentialsToVault() — idempotent vault kv put;
  secret values on stdin (D2), non-secrets as shell vars.
- index.ts: wire it beside the data-plane creds writer.

Keys written: offsiteEndpoint, offsiteAccessKey, offsiteSecretKey,
backupAgeRecipient, backupAgeIdentity. Validated live: +1 resource, then
42 unchanged (idempotent); vault kv get shows all five keys populated.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-30 23:23:38 +02:00
..
credentials.ts feat(credentials): mirror backup creds + age key into Vault (CONTRACT_002) 2026-06-30 23:23:38 +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 feat(bootstrap): forgejo admin + org + repo + operator key (T09) 2026-06-30 22:31:13 +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