#13695·calico

GatewayAPI reconciliation temporarily removes topology injector caBundle every five minutes

Author: caseydavenportCreated Aug 31, 2026Updated Oct 1, 2026
Labelsstale

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 authority

Environment

  • 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 restored

The same sequence was observed over three consecutive reconciliation cycles:

VALID_CERT -> absent/invalid CA -> VALID_CERT

The 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.caBundle

During 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.crt have 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

  1. Install Calico 3.32.1 using Tigera Operator 1.42.3.
  2. Configure the operator-managed GatewayAPI/default resource with:
yaml
spec:
  crdManagement: Reconcile
  1. Observe the following webhook:
envoy-gateway-topology-injector.tigera-gateway
  1. Monitor its resource version and webhooks[].clientConfig.caBundle.
  2. During the periodic GatewayAPI reconciliation, observe that the caBundle becomes absent.
  3. Approximately 1.2–1.3 seconds later, certgen restores the original valid CA.
  4. Check kube-apiserver logs during that interval for an x509: certificate signed by unknown authority error.

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 caBundle when 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.