Commit graph

21 commits

Author SHA1 Message Date
Viktor Barzin
934e5f6afb state(platform): update encrypted state 2026-04-10 13:41:55 +00:00
Viktor Barzin
d5b0990ed1 state(platform): update encrypted state 2026-04-06 15:04:39 +03:00
Viktor Barzin
3eb15149e1 state(platform): update encrypted state 2026-04-06 00:25:21 +03:00
Viktor Barzin
f8daf7a245 state(platform): update encrypted state 2026-04-05 20:01:06 +03:00
Viktor Barzin
3d02036a18 state(platform): update encrypted state 2026-04-05 20:01:03 +03:00
Viktor Barzin
9b134fe2ff state(platform): update encrypted state 2026-04-05 19:44:44 +03:00
Viktor Barzin
792da5c066 state(platform): update encrypted state 2026-04-04 16:17:16 +03:00
Viktor Barzin
87c858f026 state(platform): update encrypted state 2026-04-01 20:08:32 +03:00
Viktor Barzin
5af6558935 state(platform): update encrypted state 2026-04-01 20:08:29 +03:00
Viktor Barzin
c7369d8a2b state(platform): update encrypted state 2026-04-01 20:07:42 +03:00
Viktor Barzin
b731af1b91 state(platform): update encrypted state 2026-03-25 23:10:10 +02:00
Viktor Barzin
8be9e765dc state(platform): update encrypted state 2026-03-25 15:09:00 +02:00
Viktor Barzin
04d977d3ed state(platform): update encrypted state 2026-03-25 02:13:12 +02:00
Viktor Barzin
2adf68ae03 state(platform): update encrypted state 2026-03-23 23:48:38 +02:00
Viktor Barzin
b6bc51b42b state(platform): update encrypted state 2026-03-23 22:04:06 +02:00
Viktor Barzin
2639456978 state(platform): update encrypted state 2026-03-23 02:56:29 +02:00
Viktor Barzin
1bf8676a6d state(platform): update encrypted state 2026-03-22 02:52:48 +02:00
Viktor Barzin
77143dfd6b state: per-stack Transit keys for namespace-owner access control
- Each stack gets its own Vault Transit key (transit/keys/sops-state-<stack>)
- state-sync passes per-stack Transit URI + age keys on encrypt
- Vault policies scope namespace-owners to their stacks only:
  - sops-admin: wildcard access to all transit keys
  - sops-user-<name>: access only to owned stack keys
- Anca (plotting-book) can only decrypt plotting-book state
- Admin can decrypt everything (via admin Transit policy or age fallback)
- External group sops-plotting-book maps Authentik group to Vault policy
- Updated CLAUDE.md with state sync documentation
2026-03-17 23:08:18 +00:00
Viktor Barzin
4e7ca1ad61 state: add Vault Transit as primary SOPS backend, age as fallback
- .sops.yaml: add hc_vault_transit_uri for transit/keys/sops-state
- state-sync: try Vault Transit first, fall back to age key on disk
- Re-encrypted all 101 state files with both Vault Transit + age
- Normal workflow: vault login → decrypt via Transit (no key files)
- Bootstrap/DR: age key at ~/.config/sops/age/keys.txt
2026-03-17 22:56:33 +00:00
Viktor Barzin
9f80eb7ba0 state: add devvm as SOPS recipient
Add devvm age public key to .sops.yaml and re-encrypt all 101 state
files with both laptop and devvm keys.
2026-03-17 22:41:19 +00:00
Viktor Barzin
b6faa24349 state: add SOPS-encrypted terraform state to git
- SOPS + age encrypts all 101 .tfstate files (JSON-aware: keys visible, values encrypted)
- scripts/state-sync: encrypt/decrypt/commit wrapper
- scripts/tg: auto-decrypt before ops, auto-encrypt+commit after apply/destroy
- terragrunt.hcl: -backup=- prevents backup file accumulation
- .gitignore: track .tfstate.enc, ignore plaintext .tfstate
- Cleaned 964MB of stale backups (state/backups/, .backup files)
2026-03-17 22:37:56 +00:00