-
Notifications
You must be signed in to change notification settings - Fork 4.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
oauth: always set token cookies in response regardless of forward_bearer_token option #34156
oauth: always set token cookies in response regardless of forward_bearer_token option #34156
Conversation
…rer_token option Signed-off-by: Derek Argueta <darguetap@gmail.com>
Signed-off-by: Derek Argueta <darguetap@gmail.com>
Signed-off-by: Derek Argueta <darguetap@gmail.com>
Signed-off-by: Derek Argueta <darguetap@gmail.com>
Signed-off-by: Derek Argueta <darguetap@gmail.com>
Signed-off-by: Derek Argueta <darguetap@gmail.com>
Any ETA on this PR? We'd love to use OAuth2 filter in prod - but we hit this bug and it is preventing us. Thank you! |
Hi @derekargueta, is there any chance to land this into the next release? If there is help needed, I can take something over. Cheers, |
@derekargueta ping |
@denniskniep thinking that could you just make separate PR as @derekargueta is not answering/pr not progressing? At least we need this feature |
Was out on PTO. One reason I had for closing this was consideration of implementing encrypted cookies first (#23508), as this change would set the raw bearer token in the client browser which is undesirable by some. |
Signed-off-by: Derek Argueta <darguetap@gmail.com>
Signed-off-by: Derek Argueta <darguetap@gmail.com>
Does it make sense to apply this functionality only, if a certain knob is set? Edit: I ment introducing a new knob which controls if the cookies are set or not |
so how we should proceed here to get this forward? |
hey @derekargueta afaik this PR should bring back the previous behavior that existed with this filter |
@derekargueta does it make sense to introduce further properties to disable single cookies Adding following properties:
Then
What do you think? |
@derekargueta I created a PR for my proposal here: |
This pull request has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in 7 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions! |
This pull request has been automatically closed because it has not had activity in the last 37 days. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions! |
Commit Message: oauth: always set token cookies in response regardless of forward_bearer_token option
Additional Description: Unconditionally set the
BearerToken
,IdToken
, andRefreshToken
cookies in the response. The documentation offorward_bearer_token
states "Forward the OAuth token as a Bearer to upstream web service." It's confusing for this behavior to affect response cookies as well and I can't think of a benefit that's being achieved here. This brings the behavior of this filter more aligned with what the documentation describes.Risk Level: Low
Testing: Included
Docs Changes: N/A
Release Notes: Included
Platform Specific Features: N/A
Fixes: #32566 #15489