mt-broker-filter: Allow only requests from Subscriptions OIDC ID
We need to verify in the mt-broker-filter, that an request comes only from the Subscriptions OIDC is (.status.auth.serviceAccountName). Therefor we should do the following in the mt-broker-filter handler:
- In case OIDC is enabled:
- Get the OIDC identity of the sender
- check, if the senders identity is the same as the according Subscriptions OIDC ID (in their
.status.auth.serviceAccountName).- If it matches: continue with the request
- If not: reject the request with a
403status code
- In OIDC is disabled:
- no change in behaviour
Prerequisites:
- #7985
Additional context:
Additional hints for new contributors before starting with this issue:
- When the issue has the
Draftstatus, the issue is subject to change and thus should not be started to be worked on - Make sure you've read and understood the CONTRIBUTING.md guidelines
- Make sure you're able to run Knative Eventing locally and run at least the unit tests.
- Feel free to raise any questions you have either directly here in the issue, in the #knative-eventing Slack channel or join the Eventing Workgroup Meeting
- When you feel comfortable with this issue, feel free to assign it to you (e.g. by commenting
/assign). Please be aware that we might unassign you, if we don't see any progress from your side to give other contributors also a chance to work on this issue.
I would like to work on this /assign
/assign
Hey @ayushrakesh, thanks for showing interest in this issue. But this issue is currently assigned to @babugeet. @babugeet are you still planing to work on this issue?
@creydr : got caught up in some other work, let @ayushrakesh : proceed with the changes
Hello @ayushrakesh, are there anything I can help you with regarding this issue?
Hello @ayushrakesh are you still planning to work on the issue?
I can work on this if @ayushrakesh is not working on this
@EraKin575 Sorry for delay, you can work on that.
/assign
Are there anything I could help you with? @EraKin575
If you're still working on this issue, please let me know within the next 24 hours. We understand that plans and priorities can change, and if you're no longer able to continue with this task, that's completely okay! In case I don't hear back from you in the next 24 hours, I'll unassign the issue from you. Of course, if you'd like to continue working on it later, you can always reassign it to yourself if it is still available.
Sorry,for the delay. I am still working on this issue and will raise a PR ASAP
sorry, this took a while