Skip to content

Commit cd675e1

Browse files
authored
fix(postgres): point the trust-anchor comment at the published projection (#4063)
## What this PR does The TLS comment in `db.yaml` told operators to take `ca.crt` from `<release>-credentials`. That key is not there. The chart renders that Secret from `.Values.users`, so it holds passwords and nothing else. The anchor a tenant can reach is `<release>.tenant-ca`, which the CA-extraction controller publishes from the sentinel this chart already renders in `templates/tenant-projection.yaml`, and which tenants read through `tenantsecrets`. The comment points there now. It also names the two Secrets it is not, because CNPG's own `<release>-ca` is one dash away and holds the CA private key next to `ca.crt`. Comment only. `README.md` already documented the projection correctly and needed no change, and `helm unittest packages/apps/postgres` is green. ### Screenshots Not a UI change. ### Downstream repositories A comment inside one chart template. `values.yaml`, `values.schema.json`, `Chart.yaml` and `README.md` are untouched, so the generated reference page does not move, and no schema field, default, version enum, release prefix or Secret name changes. - [x] No downstream repository is affected by this change - [ ] [cozystack/website](https://github.com/cozystack/website) - follow-up: - [ ] [cozystack/terraform-provider-cozystack](https://github.com/cozystack/terraform-provider-cozystack) - follow-up: - [ ] [cozystack/ansible-cozystack](https://github.com/cozystack/ansible-cozystack) - follow-up: - [ ] [cozystack/ccp](https://github.com/cozystack/ccp) - follow-up: - [ ] [cozystack/talm](https://github.com/cozystack/talm) - follow-up: - [ ] [cozystack/cozyhr](https://github.com/cozystack/cozyhr) - follow-up: - [ ] [cozystack/cozy-proxy](https://github.com/cozystack/cozy-proxy) - follow-up: - [ ] [cozystack/cozystack-telemetry-server](https://github.com/cozystack/cozystack-telemetry-server) - follow-up: - [ ] [cozystack/external-apps-example](https://github.com/cozystack/external-apps-example) - follow-up: - [ ] [cozystack/examples](https://github.com/cozystack/examples) - follow-up: - [ ] [cozystack/community](https://github.com/cozystack/community) - follow-up: ### Release note ```release-note NONE ``` <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Documentation** * Updated TLS trust-anchor comments to clarify that the CA extraction controller publishes the key-free `<release>.tenant-ca` Secret. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
2 parents 86d62bb + 0056e2c commit cd675e1

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

  • packages/apps/postgres/templates

‎packages/apps/postgres/templates/db.yaml‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,12 @@ spec:
1717
# admission webhook, which is why the chart no longer renders a cert-manager
1818
# chain — the operator owns the chain end-to-end.
1919
#
20-
# Trust anchor for clients: the ca.crt key present in every user-credentials
21-
# Secret CNPG creates (e.g. <release>-credentials). Mount that key into
22-
# client pods to verify TLS.
20+
# Trust anchor for clients: the key-free "<release>.tenant-ca" Secret the CA
21+
# extraction controller publishes, as declared by the sentinel in
22+
# templates/tenant-projection.yaml. Tenants read that Secret through the
23+
# core.cozystack.io tenantsecrets API. It is neither <release>-credentials,
24+
# which is chart-rendered and holds user passwords only, nor CNPG's
25+
# <release>-ca, which holds the CA private key next to ca.crt.
2326
certificates:
2427
serverAltDNSNames:
2528
- {{ printf "%s.%s" .Release.Name .Values._namespace.host }}

0 commit comments

Comments
 (0)