From e4ce10f50105bc7e6948dee25d1b9985e7b209ff Mon Sep 17 00:00:00 2001 From: unkin-agent Date: Fri, 27 Nov 2026 22:03:46 +1100 Subject: [PATCH] Point cephrgw-operator at s3.ceph.unkin.net (#609) The operator still reached the radosgw Admin Ops and S3 APIs via radosgw.service.consul, an endpoint seeded in Vault. RGW is now served at s3.ceph.unkin.net, whose chain verifies against vault-ca-cert. - Sets CEPH_RGW_ENDPOINT and CEPH_RGW_ADMIN_ENDPOINT to https://s3.ceph.unkin.net in the Deployment env, overriding any endpoint in the Vault-rendered secret - Drops the endpoint keys from the Vault seed instructions Reviewed-on: https://git.unkin.net/unkin/argocd-apps/pulls/609 Co-authored-by: unkin-agent Co-committed-by: unkin-agent --- apps/base/cephrgw-system/deployment.yaml | 13 +++++++++---- apps/base/cephrgw-system/vaultstaticsecret.yaml | 8 +++----- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/apps/base/cephrgw-system/deployment.yaml b/apps/base/cephrgw-system/deployment.yaml index 12e4645..452f4fb 100644 --- a/apps/base/cephrgw-system/deployment.yaml +++ b/apps/base/cephrgw-system/deployment.yaml @@ -32,13 +32,18 @@ spec: - --health-probe-bind-address=:8081 - --leader-elect envFrom: - # Provides CEPH_RGW_ACCESS_KEY/SECRET_KEY and the endpoints - # (CEPH_RGW_ENDPOINT / CEPH_RGW_ADMIN_ENDPOINT), plus optional - # CEPH_RGW_REGION / CEPH_RGW_CA / CEPH_RGW_INSECURE. Rendered from - # Vault per docs/ceph-setup.md; not managed in GitOps. + # Provides CEPH_RGW_ACCESS_KEY/SECRET_KEY, plus optional + # CEPH_RGW_REGION / CEPH_RGW_INSECURE. Rendered from Vault per + # docs/ceph-setup.md; not managed in GitOps. - secretRef: name: cephrgw-credentials env: + # Explicit env wins over envFrom, so these override any endpoint + # still present in the Vault-rendered secret. + - name: CEPH_RGW_ENDPOINT + value: https://s3.ceph.unkin.net + - name: CEPH_RGW_ADMIN_ENDPOINT + value: https://s3.ceph.unkin.net # Trust the internal unkin.net (Vault PKI) CA so the operator can # verify radosgw's TLS cert. vault-ca-cert is reflected into every # namespace from the certificates namespace. diff --git a/apps/base/cephrgw-system/vaultstaticsecret.yaml b/apps/base/cephrgw-system/vaultstaticsecret.yaml index 11009df..5fd1519 100644 --- a/apps/base/cephrgw-system/vaultstaticsecret.yaml +++ b/apps/base/cephrgw-system/vaultstaticsecret.yaml @@ -1,16 +1,14 @@ --- # Renders the radosgw credentials from Vault into the cephrgw-credentials # Secret the operator Deployment consumes via envFrom. The KV secret's keys -# (CEPH_RGW_ACCESS_KEY/SECRET_KEY, CEPH_RGW_ENDPOINT, optional -# CEPH_RGW_ADMIN_ENDPOINT/REGION/CA) are copied verbatim, so they land as the -# matching env vars. +# (CEPH_RGW_ACCESS_KEY/SECRET_KEY, optional CEPH_RGW_REGION) are copied +# verbatim, so they land as the matching env vars. Endpoints are set in the +# Deployment. # # The path sits under the templated default policy # (kv/data/kubernetes/namespace///*), so it needs no dedicated Vault # role or policy. Seed the values with: # vault kv put kv/kubernetes/namespace/cephrgw-system/default/cephrgw-credentials \ -# CEPH_RGW_ENDPOINT=https://s3.ceph.unkin.net \ -# CEPH_RGW_ADMIN_ENDPOINT=https://radosgw.service.consul:443 \ # CEPH_RGW_ACCESS_KEY=... CEPH_RGW_SECRET_KEY=... apiVersion: secrets.hashicorp.com/v1beta1 kind: VaultStaticSecret