cephrgw-system: source cephrgw-credentials from Vault via VSO #262

Merged
benvin merged 2 commits from benvin/cephrgw-vault-vso into main 2026-07-18 23:18:01 +10:00

2 Commits

Author SHA1 Message Date
benvin 395099b9a1 cephrgw VSO: use shared default role + templated KV path
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/kubeconform Pipeline was successful
Per review, reuse the existing shared 'default' k8s auth role and its templated
policy (kv/data/kubernetes/namespace/<ns>/<sa>/*) instead of a dedicated Vault
role/policy, so no terraform-vault change is required.

- VaultAuth: role default, serviceAccount default.
- VaultStaticSecret: path kubernetes/namespace/cephrgw-system/default/cephrgw-credentials.
2026-07-18 16:25:30 +10:00
benvin 477c65cb4e cephrgw-system: source cephrgw-credentials from Vault via VSO
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/kubeconform Pipeline was successful
Replace the out-of-band cephrgw-credentials Secret with a VSO-managed one so
the operator's Ceph dashboard credentials come from Vault.

- Add apps/base/cephrgw-system/vaultauth.yaml: VaultAuth (k8s/au/syd1 mount,
  role cephrgw-operator, SA cephrgw-operator, connection vso-system/default).
- Add apps/base/cephrgw-system/vaultstaticsecret.yaml: renders the KV path
  service/cephrgw/dashboard-credentials into the cephrgw-credentials Secret
  (keys copied verbatim, consumed by the Deployment via envFrom).
- Reference both from the base kustomization.

Requires the Vault role/policy from terraform-vault #95 and the KV values to
be seeded (see the operator's docs/ceph-setup.md).
2026-07-18 16:13:55 +10:00