-
Notifications
You must be signed in to change notification settings - Fork 7.8k
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
Add integ test for Authorization Policy Gateway Policy Attachment #47513
Add integ test for Authorization Policy Gateway Policy Attachment #47513
Conversation
Skipping CI for Draft Pull Request. |
0127442
to
5cc862c
Compare
/retest-required |
4d87def
to
523a5b0
Compare
/retest-required |
Signed-off-by: Whitney Griffith <whgriffi@microsoft.com>
523a5b0
to
f19d88e
Compare
Signed-off-by: Whitney Griffith <whgriffi@microsoft.com>
Signed-off-by: Whitney Griffith <whgriffi@microsoft.com>
Signed-off-by: Whitney Griffith <whgriffi@microsoft.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Do we plan to support listener attachment too ?
One small issue - if someone looks at the tests as an example, they may get the wrong impression. I would add a small comment to the gateway yaml - jwts are not best practice on port 80 ( some RFCs don't allow them).
}, | ||
}, | ||
{ | ||
name: "deny without token", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need a test case for denying with an incorrect token?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think its good to have as it confirms the AuthPolicy
is enforcing only requests with valid token. Happy to remove if others think its not necessary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was curious if we wanted a test case with an incorrect token in addition to the test case with no token.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh I misunderstood!
tests/integration/security/policy_attachment_only/testdata/authz/gateway-authz.yaml.tmpl
Outdated
Show resolved
Hide resolved
tests/integration/security/policy_attachment_only/testdata/authz/gateway-api.yaml.tmpl
Outdated
Show resolved
Hide resolved
Signed-off-by: Whitney Griffith <whgriffi@microsoft.com>
Signed-off-by: Whitney Griffith <whgriffi@microsoft.com>
do you mind expanding on what listener attachment is?
updated! |
Hey @costinm, wdym by listener attachment? Is it this or something else? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
In response to a cherrypick label: new pull request created: #47647 |
Please provide a description of this PR:
Resolves #47263