cap-operator icon indicating copy to clipboard operation
cap-operator copied to clipboard

Support for certificate annotations on Istio Gateway/Virtual Service

Open dafe-corporate-sap opened this issue 2 years ago • 4 comments

New version of https://github.com/gardener/cert-management/releases/tag/v0.14.0 enables possibility to annotate "Istio Gateway/Virtual Service" as a result certificate manager will be able to create certificate secret in istio namespace. And thus cap-operator will not need to create certificate object in istio system namespace.

dafe-corporate-sap avatar Apr 24 '24 06:04 dafe-corporate-sap

Hi Daniel, Thanks for this info. We plan to do this along with a similar feature we got to know a while back w.r.t annotating for DNSEntries https://github.com/gardener/external-dns-management/releases/tag/v0.18.0 (avaialable for a few months now), so that in garderner clusters both DNS records and certificates can be take over by gardner controllers and we are not manually doing the same.

We need to plan of we can just do the implementation assuming (and documenting) that all clusters are running these newer versions or we provide an option to switch this on for a while.

This issue will be updated once the implmentation happens.

Thanks & Regards, Pavan

Pavan-SAP avatar Apr 24 '24 08:04 Pavan-SAP

Hi Pavan,

external-dns-management 0.18.4 is already present in Gardener Canary. as for cert-manager 0.14.0 it needs to undergo some rounds of testing first we will monitor and let you know.

dafe-corporate-sap avatar Apr 24 '24 08:04 dafe-corporate-sap

Hi @Pavan-SAP,

I have tested feature https://github.com/gardener/cert-management/pull/174 that has been delivered via https://github.com/gardener/cert-management/releases/tag/v0.14.0 on gardener/canary and gardener/live and it is working.

After putting annotation to gateway object:

cert.gardener.cloud/purpose: managed

ceritificate object is created in the same namespace as gateway with name

<gateway name>-<generated string>

and owner reference is set to originating gateway. As well as TLS secret is created which is referenced in certificate spec.

Can you please come up with proposal how this feature can be utilized by cap-operator? Not every user of cap-operator should use gardener or gardener/cert-management so probably it would be good to configure it at CAPApplication level.

dafe-corporate-sap avatar Sep 24 '24 06:09 dafe-corporate-sap

In our setup (cluster-setup) we need to also specify another annotation cert.gardener.cloud/secret-namespace: istio-system which will create certificate secrets in istio-system namespace.

This annotation is supported by shoot-cert-service v1.45.0. It contains the newest release of the cert-management v0.16.0 with gardener/cert-management#316

dafe-corporate-sap avatar Oct 29 '24 08:10 dafe-corporate-sap

Hello, We do not plan to use auto creation of certificates and dnsentries via gardener for now, however we've made configuration domain related aspects a lot more flexible recently, see: https://sap.github.io/cap-operator/docs/usage/domain-management/.

With these new changes, for gardener certificates we now also create the certificate in the same namespace as the corresponding domain resource and use the secretRef option to let gardener create secrets in istio namespace. No further changes are planned here for now.

Pavan-SAP avatar Aug 05 '25 12:08 Pavan-SAP