-
Notifications
You must be signed in to change notification settings - Fork 51
feat: add support for bearer tokens in websocket protocols #533
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
Conversation
bc8b63a to
117380b
Compare
|
HI! You need to sign off your commits and gpg sign them as well :) |
117380b to
a3fa356
Compare
|
Should now be correct |
prometherion
left a comment
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.
Maybe the suggested code is incorrect, but we cannot return an empty token, otherwise the following calls would inherit the capsule-proxy one leading to a potential privilege escalation.
|
You have a good point. |
|
@CrimsonFez you're right, touché! Given the increased complexity it would be good if we could return an error and make it visible in the logs: we can achieve that with |
prometherion
left a comment
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.
LGTM, happy to get this merged, just ensure the changes comply with the linters:
make golint
475ab20 to
a36161f
Compare
prometherion
left a comment
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.
Super happy getting this merged, thanks a lot! 🚀
|
Ah, You can test with |
|
Sure thing. I thought I got it all ;( |
Signed-off-by: David Kovari <[email protected]>
errors on failing to get token Signed-off-by: David Kovari <[email protected]>
Signed-off-by: David Kovari <[email protected]>
Signed-off-by: Dario Tranchitella <[email protected]>
a36161f to
f5c9ab5
Compare
|
Thanks for cleaning that up! I don't always have a lot of time to do stuff. Very much appreciated! |
|
It's team work, thanks, mate!
…On Thu, Nov 14, 2024, 20:19 CrimsonFez ***@***.***> wrote:
Thanks for cleaning that up! I don't always have a lot of time to do
stuff. Very much appreciated!
—
Reply to this email directly, view it on GitHub
<#533 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACJ7S3QWGKNQ2EID52MI3Q32ATZSTAVCNFSM6AAAAABPCMEBZOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINZXGIZDKOJSHE>
.
You are receiving this because you modified the open/close state.Message
ID: ***@***.***>
|
This is a simple change that enables us to extract the JWT from the WebSocket protocols as defined here kubernetes/kubernetes#47740. This satisfies #499.
Let me know if any changes are needed.
Thank you!