-
Notifications
You must be signed in to change notification settings - Fork 359
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cross Namespace ReferenceGrant is not working for SecurityPolicy [ExAuth] #4011
Comments
@sekar-saravanan If so, you might be encountering issue #2149 |
@ardikabs No, this is the first ReferenceGrant resource which I deployed in auth namespace. |
hi @sekar-saravanan , after taking a look once again, it seems you are mistakenly using the wrong group for |
I've tested with the manifest below, and no errors were encountered. So, this doesn't appear to be a bug, @arkodg. apiVersion: gateway.networking.k8s.io/v1beta1
kind: ReferenceGrant
metadata:
name: auth
namespace: auth
spec:
from:
- group: gateway.envoyproxy.io
kind: SecurityPolicy
namespace: default
to:
- group: ""
kind: Service
name: http-ext-auth |
Thanks for triaging the issue @ardikabs, closing this one ! |
Than you, @ardikabs .
|
Description:
The ExAuth service could not grant the SecurityPolicy in a Cross Namespace setup. https://envoyproxy.slack.com/archives/C03E6NHLESV/p1722915047921119?thread_ts=1714637933.500289&cid=C03E6NHLESV
Repro steps:
Step 1: Create the following namespaces for different resources:
Step 2: Deploy envoy-gateway in Namespace1 (envoy-gateway).
Step 3: Deploy service resources with httproute in Namespace2 (default).
Step 4: Verify the app using the following curl command
Step 5: Deploy the Auth Service in Namespace3 (auth) using the command below.
Step 6: Add a SecurityPolicy for the HTTPRoute in Namespace2 (default) to enable authentication
Step 7: Add a ReferenceGrant in Namespace3 (auth) to allow the SecurityPolicy (in namespace: default) to use the Auth Service (in namespace: auth) across namespaces.
Environment:
Envoy Gateway Version: v1.1.0
Kubernetes Version: 1.28
Error:
Error noted in SecurityPolicy resource.
Expected Behaviour
SecurityPolicy backend ref to Service auth/http-ext-auth should be granted by ReferenceGrant.
The text was updated successfully, but these errors were encountered: