Commit graph

4 commits

Author SHA1 Message Date
paperclip
8cd2829cd8 feat(stalwart): switch config/data store from RocksDB to PostgreSQL (DEV-476)
Following the DEV-473 rocksdb-to-postgres migration, point Stalwart's bootstrap
config at the PostgreSQL store and expose PGPASSWORD to the container so the
`authSecret: EnvironmentVariable` lookup resolves.

- stalwart-bootstrap-config.yaml: config.json switches @type RocksDb -> PostgreSql
  (host=stalwart-postgres, db=stalwart, authUsername=stalwart,
  authSecret=EnvironmentVariable/PGPASSWORD, useTls=false).
- stalwart-fresh-deployment.yaml: adds PGPASSWORD env from
  secret/stalwart-postgres-credentials.POSTGRES_PASSWORD on the stalwart container.
- stalwart-config.yaml: mirrors the switch in stalwart.toml as documentation
  (the running pod uses `--config /etc/stalwart/config.json`, not the toml).

Board (DEV-476) explicitly asked for the manifest-level switch after the web UI
save failed with a `Permission denied` on the read-only bootstrap emptyDir.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-08-15 14:46:29 +00:00
CTO Agent
f5fc083a5a Restore Stalwart bootstrap ConfigMap (non-destructive recovery)
CONTEXT: DEV-403 - Stalwart pod not starting after ConfigMap revert

ROOT CAUSE:
- The stalwart-bootstrap-config ConfigMap was manually created on July 5
- It was added to GitOps at commit 191614f (12:27 today)
- It was reverted at commit fcc5042 (12:56 today)
- ArgoCD pruned the ConfigMap from the cluster after the revert
- Stalwart deployment requires this ConfigMap to start

RECOVERY:
This commit restores the ConfigMap to Git so ArgoCD can recreate it.
The ConfigMap content is identical to the working version from before.
This is a non-destructive recovery - no data or accounts are affected.

The actual Stalwart data on PVC stalwart-data remains intact.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-07-26 13:09:20 +00:00
CTO Agent
fcc504208e Revert "Add Stalwart bootstrap ConfigMap to GitOps tracking"
This reverts commit 191614f895.
2026-07-26 12:56:25 +00:00
CTO Agent
191614f895 Add Stalwart bootstrap ConfigMap to GitOps tracking
The stalwart-bootstrap-config ConfigMap was previously created manually
via kubectl and not tracked in Git. This adds it to the repository for
proper GitOps management via Argo CD.

Related to DEV-403 - Stalwart sync hanging issue.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-07-26 12:27:00 +00:00