Conversation
|
@zhaohuabing for some reason im unable to assign you this - would you mind reviewing |
|
@ggmoy not sure why ci is not running on this - could you amend commit or add an empty commit to try and force it |
a4b1a61 to
c3fd07a
Compare
Signed-off-by: Gustavo Moyano <gustavo.g.moyano@gmail.com>
c3fd07a to
3918673
Compare
@phlax, I added a test commit just to force the CI (I'll revert it then). I can see the following message on the checks tab: |
|
@ggmoy Do we need the cookie attributes in the request to make PR envoyproxy/envoy#40718 work? |
|
ah yep - apologies @ggmoy - i was travelling and didnt check properly - kicked ci and its passing |
|
@zhaohuabing once you approve happy to move these prs through |
7e4e2b9 to
3918673
Compare
I'm a little lost here - why do we need cookie attributes for the requests? |
Good point, @zhaohuabing. Just looking a little deeper, the changes introduced in PR [#663] should not be affecting. Let me try to run those tests locally to understand why the |
@zhaohuabing , the |
Yes, but does the current shell already extracts the BearerToken from the response and use it in the request? |
Yes, it does. You can see it in the output of the failing of job #48171552179. It is calling |
|
@zhaohuabing / @phlax, I found the issue. It is not related with the changes introduced in PR [#663]. So sorry for the confusion! I'll close this PR and open a new one with the final fix. |
Description
The changes introduced in envoyproxy/envoy PR #40228 and envoyproxy/examples PR #663 broke the passthrough functionality of the OAuth2 filter: OAuth2 cookies were removed for requests matching the
pass_through_matcherconfiguration. This affected setups with multiple OAuth2 filter instances using differentpass_through_matcherconfigurations, because the first matching instance removed the OAuth2 cookies--even when a passthrough was intended--impacting subsequent filters that still needed those cookies.This PR reverts the changes introduced by envoyproxy/examples PR #663 and unblocks envoyproxy/envoy PR #40228.