Viktor Barzin
6cf3575ed9
state(dbaas): update encrypted state
2026-04-18 19:17:31 +00:00
Viktor Barzin
30fa411bf7
state(dbaas): update encrypted state
2026-04-18 19:17:20 +00:00
Viktor Barzin
61e94c21fe
state(dbaas): update encrypted state
2026-04-18 19:16:41 +00:00
Viktor Barzin
81e7c3d6ee
state(dbaas): update encrypted state
2026-04-18 18:59:51 +00:00
Viktor Barzin
9780c04ca0
state(dbaas): update encrypted state
2026-04-17 22:33:13 +00:00
Viktor Barzin
1860cd1dfb
state(vault): update encrypted state
2026-04-17 14:14:05 +00:00
Viktor Barzin
f0ddfb8cae
state(dbaas): update encrypted state
2026-04-17 14:08:49 +00:00
Viktor Barzin
0c4fe98d75
state(dbaas): update encrypted state
2026-04-17 10:08:04 +00:00
Viktor Barzin
8b206a63ad
state(dbaas): update encrypted state
2026-04-16 22:55:52 +00:00
Viktor Barzin
e80b2f026f
[infra] Migrate Terraform state from local SOPS to PostgreSQL backend
...
Two-tier state architecture:
- Tier 0 (infra, platform, cnpg, vault, dbaas, external-secrets): local
state with SOPS encryption in git — unchanged, required for bootstrap.
- Tier 1 (105 app stacks): PostgreSQL backend on CNPG cluster at
10.0.20.200:5432/terraform_state with native pg_advisory_lock.
Motivation: multi-operator friction (every workstation needed SOPS + age +
git-crypt), bootstrap complexity for new operators, and headless agents/CI
needing the full encryption toolchain just to read state.
Changes:
- terragrunt.hcl: conditional backend (local vs pg) based on tier0 list
- scripts/tg: tier detection, auto-fetch PG creds from Vault for Tier 1,
skip SOPS and Vault KV locking for Tier 1 stacks
- scripts/state-sync: tier-aware encrypt/decrypt (skips Tier 1)
- scripts/migrate-state-to-pg: one-shot migration script (idempotent)
- stacks/vault/main.tf: pg-terraform-state static role + K8s auth role
for claude-agent namespace
- stacks/dbaas: terraform_state DB creation + MetalLB LoadBalancer
service on shared IP 10.0.20.200
- Deleted 107 .tfstate.enc files for migrated Tier 1 stacks
- Cleaned up per-stack tiers.tf (now generated by root terragrunt.hcl)
[ci skip]
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-16 19:33:12 +00:00
Viktor Barzin
ef30f27ac9
state(dbaas): update encrypted state
2026-04-16 18:56:59 +00:00
Viktor Barzin
b6fc1e63a6
state(dbaas): import postgresql-lb service
2026-04-16 18:55:40 +00:00
Viktor Barzin
14fa2b9762
state(vault): update encrypted state
2026-04-16 18:43:06 +00:00
Viktor Barzin
1a42f750f8
state(dbaas): update encrypted state
2026-04-16 18:41:34 +00:00
Viktor Barzin
0a43b5c2ac
state(dbaas): update encrypted state
2026-04-16 18:31:33 +00:00
Viktor Barzin
cd513a2226
state(dbaas): update encrypted state
2026-04-16 18:24:31 +00:00
Viktor Barzin
0368601eff
state(dbaas): update encrypted state
2026-04-16 18:24:20 +00:00
Viktor Barzin
8bd2ace00d
state(technitium): update encrypted state
2026-04-16 17:21:06 +00:00
Viktor Barzin
7680d4e009
state(dawarich): update encrypted state
2026-04-16 17:19:29 +00:00
Viktor Barzin
611c67b92c
state(paperless-ngx): update encrypted state
2026-04-16 17:10:57 +00:00
Viktor Barzin
e9275534b6
state(dawarich): update encrypted state
2026-04-16 17:08:15 +00:00
Viktor Barzin
1f589a403c
state(dawarich): update encrypted state
2026-04-16 17:04:44 +00:00
Viktor Barzin
178fc4b398
state(matrix): update encrypted state
2026-04-16 17:01:28 +00:00
Viktor Barzin
449f1af9d6
state(immich): update encrypted state
2026-04-16 17:00:59 +00:00
Viktor Barzin
0ec48d942f
state(paperless-ngx): update encrypted state
2026-04-16 17:00:58 +00:00
Viktor Barzin
88c47efa1d
state(url): update encrypted state
2026-04-16 16:54:31 +00:00
Viktor Barzin
bf257414b3
state(dawarich): update encrypted state
2026-04-16 16:53:19 +00:00
Viktor Barzin
727b3c4570
state(coturn): update encrypted state
2026-04-16 16:48:48 +00:00
Viktor Barzin
1171b390c5
state(owntracks): update encrypted state
2026-04-16 16:48:40 +00:00
Viktor Barzin
a0ea11a4b4
state(coturn): update encrypted state
2026-04-16 16:48:12 +00:00
Viktor Barzin
5d610baed8
state(ollama): update encrypted state
2026-04-16 16:44:34 +00:00
Viktor Barzin
541bee7176
state(ebooks): update encrypted state
2026-04-16 16:05:27 +00:00
root
af090c818b
Woodpecker CI deploy [CI SKIP]
2026-04-16 13:46:08 +00:00
Viktor Barzin
95d2a6abf8
state(wealthfolio): update encrypted state
2026-04-16 11:30:59 +00:00
Viktor Barzin
e8874dd37a
state(cloudflared): update encrypted state
2026-04-16 10:59:30 +00:00
Viktor Barzin
997fd4f85b
state(linkwarden): update encrypted state
2026-04-16 10:35:35 +00:00
Viktor Barzin
2ae31148cb
state(ytdlp): update encrypted state
2026-04-16 10:33:55 +00:00
Viktor Barzin
43b0316978
state(xray): update encrypted state
2026-04-16 10:33:39 +00:00
Viktor Barzin
f0e7de8e57
state(woodpecker): update encrypted state
2026-04-16 10:33:27 +00:00
Viktor Barzin
deff4ae9f5
state(webhook_handler): update encrypted state
2026-04-16 10:33:11 +00:00
Viktor Barzin
1557ce0084
state(servarr): update encrypted state
2026-04-16 10:30:30 +00:00
Viktor Barzin
6d0772df60
state(vpa): update encrypted state
2026-04-16 10:25:07 +00:00
Viktor Barzin
1616b3c483
state(vaultwarden): update encrypted state
2026-04-16 10:24:42 +00:00
Viktor Barzin
a34df78158
state(vault): update encrypted state
2026-04-16 10:24:29 +00:00
Viktor Barzin
fc813bd5bd
state(tuya-bridge): update encrypted state
2026-04-16 10:19:56 +00:00
Viktor Barzin
192bb2348f
state(traefik): update encrypted state
2026-04-16 10:19:35 +00:00
Viktor Barzin
90189a4307
state(trading-bot): update encrypted state
2026-04-16 10:19:13 +00:00
Viktor Barzin
8caf760878
state(terminal): update encrypted state
2026-04-16 10:18:57 +00:00
Viktor Barzin
99d607f8d3
state(technitium): update encrypted state
2026-04-16 10:18:44 +00:00
Viktor Barzin
3999deae71
state(tandoor): update encrypted state
2026-04-16 10:18:29 +00:00