Skip to content

Add extra SANs for hosted gateway TLS certificate#1296

Merged
ArnobKumarSaha merged 8 commits into
masterfrom
arnob-gw-tls-san
Jul 9, 2026
Merged

Add extra SANs for hosted gateway TLS certificate#1296
ArnobKumarSaha merged 8 commits into
masterfrom
arnob-gw-tls-san

Conversation

@ArnobKumarSaha

@ArnobKumarSaha ArnobKumarSaha commented Jul 9, 2026

Copy link
Copy Markdown
Member
  • Add nats.<host>, api.<host>, and api.byte.builders to the gateway TLS certificate's dnsNames when the gateway class is hosted and platform host is appscode.com.
  • Mirror those extra subdomains into the external-dns.alpha.kubernetes.io/hostname annotation on the envoy Service, so ExternalDNS actually creates the api.appscode.com DNS record (was routable/TLS'd but unresolvable).
  • Add api.<host> to the ace chart's gateway HTTPRoute hostnames, scoped to deploymentType: Hosted and host: appscode.com only.

Signed-off-by: Arnob Kumar Saha <arnob@appscode.com>
Signed-off-by: Arnob Kumar Saha <arnob@appscode.com>
Signed-off-by: Arnob Kumar Saha <arnob@appscode.com>
Signed-off-by: Arnob Kumar Saha <arnob@appscode.com>
Signed-off-by: Arnob Kumar Saha <arnob@appscode.com>
Signed-off-by: Arnob kumar saha <arnob@appscode.com>
… annotation

The envoyService external-dns hostname annotation only ever set the
base gateway domain, while the TLS certificate already carried SANs
for nats.appscode.com, api.appscode.com and api.byte.builders in
hosted mode. This left api.appscode.com routable but unresolvable.
Mirror the same extra-domain list into the DNS annotation.

Signed-off-by: Arnob kumar saha <arnob@appscode.com>
The ingress Certificate already added an api.<host> SAN when
deploymentType is Hosted, but the gateway-native HTTPRoute never
had a matching hostnames entry — it was patched in manually on
the live ace HTTPRoute. Template it so it survives reconciliation.

Signed-off-by: Arnob kumar saha <arnob@appscode.com>
Hosted deploymentType alone isn't specific enough - api.<host> should
only apply to the appscode.com production host, not every hosted tenant.

Signed-off-by: Arnob kumar saha <arnob@appscode.com>
@ArnobKumarSaha
ArnobKumarSaha merged commit c78344f into master Jul 9, 2026
8 checks passed
@ArnobKumarSaha
ArnobKumarSaha deleted the arnob-gw-tls-san branch July 9, 2026 10:02
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