GatewayAPI reconciliation temporarily removes topology injector caBundle every five minutes
Moved from https://github.com/tigera/operator/issues/5243, opened by @codeforgeinfra on 2026-08-25.
Original comment thread stays readable at the link above.
Summary
With Calico 3.32.1 and Tigera Operator 1.42.3, reconciliation of the bundled Envoy Gateway resources temporarily removes webhooks[].clientConfig.caBundle from the topology injector MutatingWebhookConfiguration.
Envoy Gateway certgen restores the same valid CA approximately 1.2–1.3 seconds later. During this interval, a pods/binding request can produce an API server error:
x509: certificate signed by unknown authorityEnvironment
- Kubernetes: 1.35.6
- Calico: 3.32.1
- Tigera Operator: 1.42.3
- Envoy Gateway / chart: 1.8.0
- Operator-managed
GatewayAPI/default spec.crdManagement: Reconcile- Two Envoy Gateway controller replicas
Internal registry names, addresses and organization identifiers have been omitted.
Current behavior
Approximately every five minutes, the following sequence occurs:
11:56:28.456 GatewayAPI controller reconciliation
11:56:28.478 webhook generation 11755, caBundle = <no value>
11:56:28.511 kube-apiserver: x509 unknown authority
11:56:29.777 webhook generation 11756, original valid CA restoredThe same sequence was observed over three consecutive reconciliation cycles:
VALID_CERT -> absent/invalid CA -> VALID_CERTThe issue is transient but reproducible.
Managed field ownership
The relevant managedFields ownership is:
manager: operator
owns metadata and webhook specification except caBundle
manager: envoy-gateway
owns clientConfig.caBundleDuring reconciliation, the operator update removes the field. Envoy Gateway certgen then adds it back in a separate update.
PKI validation
The underlying PKI remains stable:
- The stable webhook CA and Secret
ca.crthave identical DER SHA-256 hashes. - The Secret does not change during reconciliation.
- Both controller replicas serve the certificate stored in the Secret.
- Both certificates verify against the CA and match the Service hostname.
- Calls through all API servers succeed outside the transient interval.
This does not appear to be a permanent certificate or Secret inconsistency.
Steps to reproduce
- Install Calico 3.32.1 using Tigera Operator 1.42.3.
- Configure the operator-managed
GatewayAPI/defaultresource with:
spec:
crdManagement: Reconcile- Observe the following webhook:
envoy-gateway-topology-injector.tigera-gateway- Monitor its resource version and
webhooks[].clientConfig.caBundle. - During the periodic GatewayAPI reconciliation, observe that the
caBundlebecomes absent. - Approximately 1.2–1.3 seconds later, certgen restores the original valid CA.
- Check kube-apiserver logs during that interval for an
x509: certificate signed by unknown authorityerror.
Impact
The webhook handles CREATE pods/binding requests in the tigera-gateway namespace and uses failurePolicy: Ignore.
Scheduling continues, but topology injection can be skipped during the transient interval. The recurring certgen pod reliably triggers an affected binding and a corresponding API server error every five minutes.
Expected behavior
Steady-state reconciliation should preserve the existing valid caBundle, or update the CA and webhook configuration atomically without creating an invalid intermediate state.
Requested guidance
Please confirm whether this is a known issue and whether it is fixed in a newer Operator or bundled chart version.
Potential durable approaches may include:
- preserving the current
caBundlewhen the rendered chart does not contain it; - excluding the certgen-owned field from steady-state operator replacement;
- making CA publication and webhook reconciliation atomic.
Sanitized timelines, managed fields, configuration excerpts and public certificate hashes are available if additional evidence is required. Private keys, kubeconfigs and internal addresses will not be shared.
Source: projectcalico/calico