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 cross namespace secret references with a ReferenceGrant #7048
In our setup, each app team creates their own HTTPRoute in their namespace and we want them to have full control over their service. Having them create the route and then open a ticket for the DevOps team to add a SecurityPolicy elsewhere isn’t a great workflow. (And in that scenario there should be at least one ReferenceGrant per namespace)
Also, the generated CRD mention that cross-namespace references should work with ReferenceGrant, so it feels like there’s a gap between what the spec allows and what’s currently supported.
P.S. I know we could script around this, but ideally the workflow shouldn’t need extra tooling.
Having them create the route and then open a ticket for the DevOps team to add a SecurityPolicy elsewhere isn’t a great workflow. (And in that scenario there should be at least one ReferenceGrant per namespace)
Hi @nfarhadian does the DevOps team create the SecurityPolicy in another namespace but reference the client secret in the app namespace? In other words, are the owner of the client secret and the SecurityPolicy different?
This is an important feature because ClientTrafficPolicy is restricted to the namespace the gateway lives in which makes it the responsibility of the cluster operators. However client certificate authentication may be an application specific requirement where the team responsible for the application may be responsible for the client CA. In order to allow cluster operators to setup the listener to use the client CA provided by the application developers reference grant should be used.
Reacted by Shav, Chaima Belhedi and chaima-belhedi
Thanks for sharing this, and +1 to what @rouke-broersma highlighted above.
In our case, we need to reference a Secret from a different namespace in ClientTrafficPolicy.
Without cross-namespace references (via ReferenceGrant), the only alternative is to manually copy the same secret into the namespace, which is error-prone.
Glad to see the decision moving toward supporting cross-namespace SecretObjectReference!
Activity
arkodg commentedon Sep 24, 2025
cc @zhaohuabing
zhaohuabing commentedon Sep 29, 2025
We need to decide whether cross-namespace secret references should be allowed for Envoy Gateway APIs(e.g., for BasicAuth, OIDC, API key auth).
I lean toward only supporting secrets within the same namespace to keep things simple and avoid unnecessarily complexity.
@nfarhadian Why do you need cross-namespace secret references? Could they be in the same namespace as the SecurityPolicy?
nfarhadian commentedon Sep 29, 2025
In our setup, each app team creates their own HTTPRoute in their namespace and we want them to have full control over their service. Having them create the route and then open a ticket for the DevOps team to add a SecurityPolicy elsewhere isn’t a great workflow. (And in that scenario there should be at least one ReferenceGrant per namespace)
Also, the generated CRD mention that cross-namespace references should work with ReferenceGrant, so it feels like there’s a gap between what the spec allows and what’s currently supported.
P.S. I know we could script around this, but ideally the workflow shouldn’t need extra tooling.
zhaohuabing commentedon Sep 30, 2025
Hi @nfarhadian does the DevOps team create the SecurityPolicy in another namespace but reference the client secret in the app namespace? In other words, are the owner of the client secret and the SecurityPolicy different?
nfarhadian commentedon Sep 30, 2025
Yes, they are different in our case
OAuth client and client-secret is managed by the DevOps team
zhaohuabing commentedon Sep 30, 2025
Do you mean app team? Or am I miss something?
SecurityPolicy: DevOps team, created in another namespace
OAuth client and client-secret: App team, created in app namespace
12 remaining items
rouke-broersma commentedon Dec 15, 2025
This is an important feature because ClientTrafficPolicy is restricted to the namespace the gateway lives in which makes it the responsibility of the cluster operators. However client certificate authentication may be an application specific requirement where the team responsible for the application may be responsible for the client CA. In order to allow cluster operators to setup the listener to use the client CA provided by the application developers reference grant should be used.
shavmohin commentedon Dec 15, 2025
Any updates on this?
zhaohuabing commentedon Jan 28, 2026
Rleated to #8074 and #7895
guydc commentedon Jan 30, 2026
generally +1 to supporting cross-ns where possible given ref grants exist.
zhaohuabing commentedon Jan 30, 2026
Discussed in today’s community meeting: the decision is to support the cross-namespace for
SecretObjectReferencesin the existing API.chaima-belhedi commentedon Feb 2, 2026
Thanks for sharing this, and +1 to what @rouke-broersma highlighted above.
In our case, we need to reference a Secret from a different namespace in ClientTrafficPolicy.
Without cross-namespace references (via ReferenceGrant), the only alternative is to manually copy the same secret into the namespace, which is error-prone.
Glad to see the decision moving toward supporting cross-namespace SecretObjectReference!
sadovnikov commentedon Feb 4, 2026
We came across the same need: using cross-namespace secret referral
zhaohuabing commentedon Mar 6, 2026
Fixed in #8074.