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
Support ListenerSet as TargetRefs for xPolicies #8092
Our team is currently waiting for this feature to start migrating the NGINX Ingresses in all our clusters to Envoy Gateway.
It's great that it will be included in Envoy Gateway 1.9.0
Before jumping into the implementation, I’d like to get everyone on the same page about the design and current support.
and I’d like to discuss the scope of the first release.
whether we should support section-level policy attachment for ListenerSet ?
whether we should support mergeType spec for ListenerSet ?
IMO, it may be fine to start by supporting whole attachment only. If there is strong user demand, we can consider adding section attachment support later.
wdyt @envoyproxy/envoy-maintainers ?
we should include ListenerSet in merge target.
when Route policy has mergeType and ListenerSet parentRef and there are related Gateway and ListenerSet Policies,
we should handle merge process with three policies based on hierarchy.
I think in many cases the Infra team manages Gateway and its policies, while the App team manages ListenerSet/xRoute and their policies. This makes three-way merge support important.
when ListenerSet policy has mergeType
If we support mergeType in ListenerSet policy, we should handle merge process with two policies.(ListenerSet/Gateway).
I'm considering whether to include support for mergeType in ListenerSet Policy in the first release.
wdyt @envoyproxy/envoy-maintainers ?
Does this issue also cover referencing a HTTPRoute that references a ListenerSet (e.g. BackendTrafficPolicy -> HTTPRoute -> ListenerSet -> Gateway)?
I have something like this which doesn't seem to be picked up by the envoy-gateway as it gets no status, meanwhile the same policy that targets a direct HTTPRoute (BTP -> HTTPRoute -> Gateway) works:
Hi @eplightning, I've run into the same issue when using SecurityPolicy resources.
SecurityPolicy → HTTPRoute → ListenerSet → Gateway doesn't work for me either,
while SecurityPolicy → HTTPRoute → Gateway works perfectly.
However, I'm not sure if this issue will cover that problem, since the core issue is about supporting ListenerSet resources as targetRefs in xPolicies... it would be very nice.
At my job, we're currently waiting on this to migrate all of our applications that use mTLS (we need to enable mTLS in ClientTrafficPolicy and target it to a ListenerSet).
Hi, everyone. we finished to implement for LS policy attachment.
This feature will ship in v1.9.0-rc.1.
Let's try it out and feel free to open an issue if you have any feedback.
Activity
github-actions commentedon Mar 12, 2026
This issue has been automatically marked as stale because it has not had activity in the last 30 days.
[-]Support XListenerSet as TargetRefs for xPolicies[/-][+]Support ListenerSet as TargetRefs for xPolicies[/+]zirain commentedon Mar 12, 2026
change to ListenerSet as it's promoted to standard in Gateway API
v1.5.github-actions commentedon Apr 11, 2026
This issue has been automatically marked as stale because it has not had activity in the last 30 days.
sjoukedv commentedon May 13, 2026
Not stale,
ListenerSetis now supported with1.8.0. It would be nice to have support for targetting them withEnvoyExtensionPolicySecurityPolicyClientTrafficPolicyBackendTrafficPolicyV1cenZ commentedon May 17, 2026
Our team is currently waiting for this feature to start migrating the NGINX Ingresses in all our clusters to Envoy Gateway.
It's great that it will be included in Envoy Gateway 1.9.0
kkk777-7 commentedon May 18, 2026
/assign
kkk777-7 commentedon May 18, 2026
Before jumping into the implementation, I’d like to get everyone on the same page about the design and current support.
and I’d like to discuss the scope of the first release.
mergeTypespec for ListenerSet ?Current
EnvoyExtensionPolicyGateway,HTTPRoute,GRPCRoute,UDPRoute,TCPRoute,TLSRouteSupports
Gateway(section=listener)andRoute(section=rule)tracking issue #6733
SecurityPolicyGateway,HTTPRoute,GRPCRoute,TCPRouteSupports
Gateway(section=listener)andRoute(section=rule)Route can merge with parent
Gateway/Gateway(section)ClientTrafficPolicyGatewayonlySupports
Gateway(section=listener)tracking issue #6735
BackendTrafficPolicyGateway,HTTPRoute,GRPCRoute,UDPRoute,TCPRoute,TLSRouteSupports
Gateway(section=listener)andRoute(section=rule)Gateway/Gateway(section)policy hierarchy
Route Rule > Route > Listener > Gateway
merge behavior
ListenerSet Policy Design
Support Section attachment
Based on GEP 1713, it looks that policy should affect all listeners in
ListenerSethttps://gateway-api.sigs.k8s.io/geps/gep-1713/#policy-attachment
IMO, it may be fine to start by supporting whole attachment only. If there is strong user demand, we can consider adding section attachment support later.
wdyt @envoyproxy/envoy-maintainers ?
policy hierarchy
Route Rule > Route > ListenerSet > Listener > Gateway
merge behavior
when Route policy has
mergeTypewe should include
ListenerSetin merge target.when Route policy has
mergeTypeandListenerSetparentRef and there are relatedGatewayandListenerSetPolicies,we should handle merge process with three policies based on hierarchy.
I think in many cases the Infra team manages Gateway and its policies, while the App team manages ListenerSet/xRoute and their policies. This makes three-way merge support important.
when ListenerSet policy has
mergeTypeIf we support mergeType in ListenerSet policy, we should handle merge process with two policies.(ListenerSet/Gateway).
I'm considering whether to include support for
mergeTypein ListenerSet Policy in the first release.wdyt @envoyproxy/envoy-maintainers ?
kkk777-7 commentedon May 18, 2026
/assign @apkatsikas
@apkatsikas will work on CTP
@kkk777-7 will work on SP
eplightning commentedon Jun 1, 2026
Does this issue also cover referencing a HTTPRoute that references a ListenerSet (e.g. BackendTrafficPolicy -> HTTPRoute -> ListenerSet -> Gateway)?
I have something like this which doesn't seem to be picked up by the envoy-gateway as it gets no status, meanwhile the same policy that targets a direct HTTPRoute (BTP -> HTTPRoute -> Gateway) works:
Not sure if this is a missing feature or a bug, it seems that there's a missing code for handling this case in all policies:
gateway/internal/gatewayapi/backendtrafficpolicy.go
Line 457 in 3ab110e
V1cenZ commentedon Jun 10, 2026
Hi @eplightning, I've run into the same issue when using SecurityPolicy resources.
SecurityPolicy → HTTPRoute → ListenerSet → Gateway doesn't work for me either,
while SecurityPolicy → HTTPRoute → Gateway works perfectly.
However, I'm not sure if this issue will cover that problem, since the core issue is about supporting ListenerSet resources as targetRefs in xPolicies... it would be very nice.
At my job, we're currently waiting on this to migrate all of our applications that use mTLS (we need to enable mTLS in ClientTrafficPolicy and target it to a ListenerSet).
eplightning commentedon Jun 17, 2026
@V1cenZ Created a separate issue+PR for using policies with routes attached to ListenerSets: #9242
kkk777-7 commentedon Jul 5, 2026
reopen: need follow-up PRs for BTP/EEP
I'm working these.
kkk777-7 commentedon Jul 30, 2026
Hi, everyone. we finished to implement for LS policy attachment.
This feature will ship in v1.9.0-rc.1.
Let's try it out and feel free to open an issue if you have any feedback.