Skip to content

oauth2: Unset OauthExpires cookie on signout - #44104

Merged
wbpcode merged 4 commits into
envoyproxy:mainfrom
coro:signout-delete-oauthexpires
Apr 15, 2026
Merged

wbpcode merged 4 commits into
envoyproxy:mainfrom
coro:signout-delete-oauthexpires

Conversation

@coro

@coro coro commented Mar 25, 2026 •

Copy link
Copy Markdown
Contributor

Commit Message: OAuth filter now removes the OauthExpires cookie from the user's browser upon logout.
Additional Description: Previously the filter unset other OAuth session related cookies such as OauthHMAC but did not clear this one remaining cookie. This cookie refers to an already invalidated session state so therefore should be safely removed.
Risk Level: Medium
Testing: Ran bazel test -c fastbuild //test/extensions/filters/http/oauth2:filter_test with new tests
Docs Changes: None
Release Notes: Added
Platform Specific Features: None
[Optional Runtime guard:] N/A
[Optional Fixes #Issue] N/A
[Optional Fixes commit #PR or SHA] N/A
[Optional Deprecated:] N/A
[Optional API Considerations:] N/A

cc @zhaohuabing as this is somewhat related to your OAuth cookie work in #42079

@repokitteh-read-only

Copy link
Copy Markdown

Hi @coro, welcome and thank you for your contribution.

We will try to review your Pull Request as quickly as possible.

In the meantime, please take a look at the contribution guidelines if you have not done so already.

🐱

Caused by: #44104 was opened by coro.

see: more, trace.

Signed-off-by: Connor Rogers <[email protected]>

@zhaohuabing zhaohuabing left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

@coro
coro temporarily deployed to external-contributors March 26, 2026 12:54 — with GitHub Actions Inactive
@adisuissa

Copy link
Copy Markdown
Contributor

/assign @bplotnick @wbpcode

@phlax

phlax commented Apr 13, 2026

Copy link
Copy Markdown
Member

@coro needs main merge

@wbpcode would you mind taking a look

@coro
coro temporarily deployed to external-contributors April 14, 2026 09:03 — with GitHub Actions Inactive
@wbpcode
wbpcode merged commit e3115f6 into envoyproxy:main Apr 15, 2026
28 checks passed
krinkinmu pushed a commit to grnmeira/envoy that referenced this pull request Apr 20, 2026
<!--
!!!ATTENTION!!!

If you are fixing *any* crash or *any* potential security issue, *do
not*
open a pull request in this repo. Please report the issue via emailing
[email protected] where the issue will be triaged
appropriately.
Thank you in advance for helping to keep Envoy secure.

!!!ATTENTION!!!

For an explanation of how to fill out the fields, please see the
relevant section
in
[PULL_REQUESTS.md](https://github.com/envoyproxy/envoy/blob/main/PULL_REQUESTS.md)

!!!ATTENTION!!!

Please check the [use of generative AI
policy](https://github.com/envoyproxy/envoy/blob/main/CONTRIBUTING.md?plain=1#L41).

You may use generative AI only if you fully understand the code. You
need to disclose
this usage in the PR description to ensure transparency.
-->

Commit Message: OAuth filter now removes the `OauthExpires` cookie from
the user's browser upon logout.
Additional Description: Previously the filter unset other OAuth session
related cookies such as `OauthHMAC` but did not clear this one remaining
cookie. This cookie refers to an already invalidated session state so
therefore should be safely removed.
Risk Level: Medium
Testing: Ran `bazel test -c fastbuild
//test/extensions/filters/http/oauth2:filter_test` with new tests
Docs Changes: None
Release Notes: Added
Platform Specific Features: None
[Optional Runtime guard:] N/A
[Optional Fixes #Issue] N/A
[Optional Fixes commit #PR or SHA] N/A
[Optional Deprecated:] N/A
[Optional [API
Considerations](https://github.com/envoyproxy/envoy/blob/main/api/review_checklist.md):]
N/A

cc @zhaohuabing as this is somewhat related to your OAuth cookie work in
envoyproxy#42079

---------

Signed-off-by: Connor Rogers <[email protected]>

This branch was previously deployed

1 inactive deployment
external-contributors — dab74fd6 Deployed Apr 14, 2026 by coro via authorize #45895
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants