#45632·cilium

Support client certificate (mTLS) in originating TLS context when using SDS

Author: dzibmaCreated Apr 27, 2026Updated Sep 30, 2026
Labelskind/featurekind/cfp

Is your proposed feature related to a problem?

When using CiliumNetworkPolicy L7 egress rules with TLS interception (terminate + re-originate), the proxy terminates TLS from the pod, inspects HTTP, then re-originates TLS to the upstream. We need to connect to a service that requires mTLS authentication. This works today with useFullTLSContext=true, where the originating TLS context includes the certificate chain, private key, and CA inline via NPDS. However, there is no way to present a client certificate when SDS is enabled — toEnvoyOriginatingTLSContext() only populates ValidationContextSdsSecret in the SDS branch, and never sets TlsSdsSecret.

This means users who need mTLS on the originating side must either:

  1. Use useFullTLSContext=true, which bypasses SDS entirely (passing secrets inline via NPDS), or
  2. Accept that the proxy cannot present a client certificate to the upstream

SDS is the recommended option for TLS interception and the default for new clusters since Cilium 1.17.

Describe the feature you'd like

When using CiliumNetworkPolicy L7 egress rules with TLS termination and re-origination, users should be able to configure the proxy to present a client certificate (mTLS) to the upstream in SDS mode.

Concretely, this means populating TlsSdsSecret (in addition to ValidationContextSdsSecret) in the originating TLS context when SDS is enabled.

Notify relevant community channels

@cilium/envoy @cilium/proxy

(Optional) Describe your proposed solution

This may require a way to reference two separate Kubernetes Secrets in the CiliumNetworkPolicy originatingTLS spec — one for the CA bundle (validation context) and one for the client cert+key.