You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Allow TLS listeners to reference certificates by name without requiring a Kubernetes Secret #9421
There are scenarios where TLS certificates are not stored as Kubernetes Secrets, but are instead resolved by name. Examples include:
Secrets pre-loaded in Envoy's bootstrap static resources, referenced by name
External data planes that resolve certificate identifiers at runtime
Today, Envoy Gateway requires every TLS Terminate listener to have certificateRefs pointing to a valid Kubernetes Secret. There is no way to tell Envoy Gateway "this cert will be resolved by name — just pass the identifier through to the xDS config."
Desired behavior
Allow a Gateway listener to specify an external certificate identifier and have Envoy Gateway:
Accept the listener as valid without a Kubernetes Secret
Pass the identifier through as the SDS secret name in the generated xDS DownstreamTlsContext
That said, we're open to alternative approaches. If there's a better path to achieve this — whether through options, a new extension point, or something else — we'd be happy to explore that with the community.
Hi @zirain, I'd like to contribute this. Thanks for the reference to #8745 . I think it matches what we need. Want to confirm the approach before I work on it.
So basically, we need extend listener certificateRefs to accept secrets of type gateway.envoyproxy.io/sds
Also, regarding the SDS config — can we make it flexible to support different deployment models?
Proposal:
With url (external SDS server): Generate sds_config with api_config_source pointing to a static pipe cluster. This is the general case above
For our special case, we would like to propose a gateway.envoyproxy.io/static-ref (name-only passthrough): A separate secret type that does not require URL that translates into just the name field without any sds_config. This is for external data planes where Envoy has custom logic to resolve the secret name internally.
Sure, I will bring this up during our meeting to hear other maintainer opinions.
Our case:
We would like to propose a gateway.envoyproxy.io/static-ref (name-only passthrough): A separate secret type that does not require URL that translates into just the name field without any sds_config. This is for external data planes where Envoy has custom logic to resolve the secret name internally.
Details:
Introduce a new secret type gateway.envoyproxy.io/static-ref that contains only a secretName field
Make the url field optional in the existing gateway.envoyproxy.io/sds type — if URL is present, generate a full sds_config with a pipe cluster; if absent, emit name-only. However, I feel a separate types make the intent explicit and can gate on independent feature flag
We discussed this during this week’s call, and there was agreement that this is a legitimate use case. The remaining question is whether it is common enough to benefit other open source users as part of the Gateway API surface.
My suggestion is to use a dummy URL for now and wait a bit longer for more user input. If we see additional use cases and clearer requirements around this behavior, we can revisit and consider promoting it into the EG API.
Code change is needed on the EG side@zhaohuabing
The existing gateway.envoyproxy.io/sds support from PR feat: add support for certificate fetching via SDS ref secret #8745 only works for backend certs. Extending it to listener level requires code changes regardless : validation in validateTerminateModeAndGetTLSSecrets, IR conversion, and xDS translation for DownstreamTlsContext. So even the "use a dummy URL" path requires a PR .
Instead of dummy URL approach, how do you feel: Extend gateway.envoyproxy.io/sds to listener level, with url as optional
With url: Generate full sds_config with api_config_source pointing to a pipe cluster (existing behavior, now at listener level too)
Without url: Emit name-only SdsSecretConfig, no sds_config block, no cluster.
@arkodg Hey, This is not our case. We don't want any controller to populate a Secret with cert material. Our use case is: pass a certificate name/identifier through to xDS so that Envoy can resolve it internally. The actual cert+key is delivered to Envoy through a separate out-of-band mechanism. The control plane only needs to say "use this cert by name," and Envoy ( external data plane) already knows how to find it
Code change is needed on the EG side @zhaohuabing
The existing gateway.envoyproxy.io/sds support from PR #8745 only works for backend certs. Extending it to listener level requires code changes regardless : validation in validateTerminateModeAndGetTLSSecrets, IR conversion, and xDS translation for DownstreamTlsContext. So even the "use a dummy URL" path requires a PR .
Yes, we should extend sds support to listener certs as well: #9009.
Activity
zirain commentedon Jul 6, 2026
we would support this as part of SDS ref secret like #8745, feel free to raise PR.
wweiwei-li commentedon Jul 6, 2026
Hi @zirain, I'd like to contribute this. Thanks for the reference to #8745 . I think it matches what we need. Want to confirm the approach before I work on it.
So basically, we need extend listener certificateRefs to accept secrets of type
gateway.envoyproxy.io/sdsUser experience:
Generated xDS:
Plus a static pipe cluster pointing to the SDS server's UDS path.
wweiwei-li commentedon Jul 6, 2026
Also, regarding the SDS config — can we make it flexible to support different deployment models?
Proposal:
gateway.envoyproxy.io/static-ref(name-only passthrough): A separate secret type that does not require URL that translates into just the name field without anysds_config. This is for external data planes where Envoy has custom logic to resolve the secret name internally.Generated xDS:
zirain commentedon Jul 6, 2026
sounds good to me, want to hear other maintainers opinion, cc @envoyproxy/gateway-maintainers
wweiwei-li commentedon Jul 9, 2026
Sure, I will bring this up during our meeting to hear other maintainer opinions.
Our case:
We would like to propose a
gateway.envoyproxy.io/static-ref(name-only passthrough): A separate secret type that does not require URL that translates into just the name field without anysds_config. This is for external data planes where Envoy has custom logic to resolve the secret name internally.Details:
gateway.envoyproxy.io/static-refthat contains only asecretNamefieldtls.certificateRefs, it generates xDS with just the name — nosds_configblock, no clusterenableStaticSecretRefScope:
Listener certs only as of now.
Alternative considered:
Make the url field optional in the existing
gateway.envoyproxy.io/sdstype — if URL is present, generate a full sds_config with a pipe cluster; if absent, emit name-only. However, I feel a separate types make the intent explicit and can gate on independent feature flagwweiwei-li commentedon Jul 9, 2026
This new secret type
gateway.envoyproxy.io/static-refbenefits to where cert resolution happens outside the control plane's xDS. cases like :zhaohuabing commentedon Jul 10, 2026
We discussed this during this week’s call, and there was agreement that this is a legitimate use case. The remaining question is whether it is common enough to benefit other open source users as part of the Gateway API surface.
My suggestion is to use a dummy URL for now and wait a bit longer for more user input. If we see additional use cases and clearer requirements around this behavior, we can revisit and consider promoting it into the EG API.
guydc commentedon Jul 10, 2026
Would this require any code change to ignore/adjust the dummy url?
arkodg commentedon Jul 12, 2026
im still unsure of the use case here, sounds like users want to link secrets populated by another entity ?
can the workflow be similar to what cert-manager does https://cert-manager.io/docs/usage/gateway/ ?
zhaohuabing commentedon Jul 12, 2026
My assumption is that we don't need any code change on the EG side - cc @wweiwei-li
wweiwei-li commentedon Jul 12, 2026
Hey, Thanks for all the discussion.
Code change is needed on the EG side @zhaohuabing
The existing
gateway.envoyproxy.io/sdssupport from PR feat: add support for certificate fetching via SDS ref secret #8745 only works for backend certs. Extending it to listener level requires code changes regardless : validation in validateTerminateModeAndGetTLSSecrets, IR conversion, and xDS translation for DownstreamTlsContext. So even the "use a dummy URL" path requires a PR .Instead of dummy URL approach, how do you feel: Extend
gateway.envoyproxy.io/sdsto listener level, with url as optionalwweiwei-li commentedon Jul 12, 2026
@arkodg Hey, This is not our case. We don't want any controller to populate a Secret with cert material. Our use case is: pass a certificate name/identifier through to xDS so that Envoy can resolve it internally. The actual cert+key is delivered to Envoy through a separate out-of-band mechanism. The control plane only needs to say "use this cert by name," and Envoy ( external data plane) already knows how to find it
zhaohuabing commentedon Jul 15, 2026
Yes, we should extend sds support to listener certs as well: #9009.
wweiwei-li commentedon Jul 16, 2026
https://github.com/envoyproxy/envoy/blob/v1.24.2/api/envoy/extensions/transport_sockets/tls/v3/secret.proto#L35
Name-only SdsSecretConfig (no sds_config) is explicitly defined behavior in here, since Envoy distinguishes the two modes by presence/absence of sds_config, and EG should be able to produce both
github-actions commentedon Aug 16, 2026
This issue has been automatically marked as stale because it has not had activity in the last 30 days.