-
Notifications
You must be signed in to change notification settings - Fork 595
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
Update TokenVerifier to verify AuthZ too #8063
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,7 @@ rules: | |
- brokers/status | ||
- triggers | ||
- triggers/status | ||
- eventpolicies | ||
verbs: | ||
- get | ||
- list | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,6 +32,7 @@ rules: | |
- eventing.knative.dev | ||
resources: | ||
- brokers | ||
- eventpolicies | ||
verbs: | ||
- get | ||
- list | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -128,6 +128,15 @@ rules: | |
- "create" | ||
- "patch" | ||
|
||
- apiGroups: | ||
- eventing.knative.dev | ||
resources: | ||
- eventpolicies | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
Comment on lines
+131
to
+138
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This can be a bit confusing. The webhook is not directly using the EventPolicyLister. But the SinkBinding uses the OIDCTokenProvider from the auth package. In this package we also have the OIDCTokenVerifier, which uses the EventPolicyLister (via eventpolicylister.Get()) and thus registers the informer in its init() method |
||
|
||
# For the SinkBinding reconciler adding the OIDC identity service accounts | ||
- apiGroups: | ||
- "" | ||
|
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.
is this related?
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.
Before my PR, it was
since we need the same (except for
create
) for the eventpolicies and they are in the same api group as eventtypes, I merged them and created one dedicated for eventtypes create: -->