Skip to content

Reference the gateway CA through a ConfigMap in BackendTLSPolicy for ca/external issuers - #1447

Merged
ArnobKumarSaha merged 1 commit into
masterfrom
arnob-btls-ca-cm
Dec 3, 2026
Merged

ArnobKumarSaha merged 1 commit into
masterfrom
arnob-btls-ca-cm

Conversation

@ArnobKumarSaha

Copy link
Copy Markdown
Member

Follow-up to #1439, which moved only the letsencrypt issuers to a ConfigMap. With issuer: ca or external, the ace-nats and ace-s3proxy BackendTLSPolicies still referenced the <fullname>-gw-cert Secret. BackendTLSPolicy has Core support for ConfigMap CA references only, so OpenShift's gateway controller rejects the policy and the ace Argo CD app shows Degraded. This was seen on OCP 4.22, which serves BackendTLSPolicy, so #1401 picks the policy path there.

Changes:

  • New <fullname>-gw-ca-cert ConfigMap (ca.crt) rendered from global.infra.tls.ca.cert when:
    • issuer: ca with both CA cert and key (this CA signs gw-cert), or
    • issuer: external with a CA cert.
  • BackendTLSPolicy in route-nats.yaml and s3proxy httproute.yaml references that ConfigMap in those cases.
  • No change for:
    • ca with a cert but no key: the issuer falls back to selfSigned, so ca.cert isn't the anchor.
    • external without a CA, e.g. the akp-v2 demo's self-signed cert.
    • the letsencrypt issuers.
    • the Envoy Backend path.

Checked with helm template --api-versions gateway.networking.k8s.io/v1/BackendTLSPolicy for ca with and without a key, external with and without a CA, and letsencrypt.

…ca/external issuers

Signed-off-by: Arnob kumar saha <arnob@appscode.com>
@ArnobKumarSaha
ArnobKumarSaha merged commit 07966c2 into master Dec 3, 2026
3 of 4 checks passed
@ArnobKumarSaha
ArnobKumarSaha deleted the arnob-btls-ca-cm branch December 3, 2026 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant