Skip to content
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

ext_authz: allows multiple headers of same name in Denied response #8668

Merged
merged 5 commits into from
Nov 6, 2019

Conversation

cfryanr
Copy link
Contributor

@cfryanr cfryanr commented Oct 18, 2019

Description:

Enhance the ext_authz filter to allow multiple Set-Cookie
headers to be added by a Denied Check response.

Previously, when the Check response contained multiple
headers of the same name, only the last one would be applied
in the http response. Please see full description of problem
in #8649.

Risk Level: Low
Testing: Unit test
Docs Changes: N/A
Release Notes: N/A

Fixes #8649

Enhance the ext_authz filter to allow multiple `Set-Cookie`
headers to be added by a `Denied` `Check` response.

Previously, when the `Check` response contained multiple
headers of the same name, only the last one would be applied
in the http reponse.

Fixes envoyproxy#8649

Signed-off-by: Peter Chen <pchen@pivotal.io>

Signed-off-by: Ryan Richard <rrichard@pivotal.io>
@cfryanr cfryanr requested a review from dio as a code owner October 18, 2019 19:31
Signed-off-by: Ryan Richard <rrichard@pivotal.io>

Signed-off-by: Peter Chen <pchen@pivotal.io>
@repokitteh-read-only
Copy link

🤷‍♀️ nothing to rebuild.

🐱

Caused by: a #8668 (comment) was created by @peterhaochen47.

see: more, trace.

@repokitteh-read-only
Copy link

🤷‍♀️ nothing to rebuild.

🐱

Caused by: a #8668 (comment) was created by @peterhaochen47.

see: more, trace.

@dio
Copy link
Member

dio commented Oct 19, 2019

/azp run envoy-linux

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@azure-pipelines
Copy link

Commenter does not have sufficient privileges for PR 8668 in repo envoyproxy/envoy

@srwaggon
Copy link

@dio, we believe the test failures might be unrelated to our changeset.

Could you re-run the test or give us some feedback about why these tests might be failing?

@peterhaochen47
Copy link

@lizan We believe the test failures are unrelated. Could you take a look as well?

@dio
Copy link
Member

dio commented Oct 24, 2019

@srwaggon @peterhaochen47 can you try to merge master? Thanks!

Signed-off-by: Ryan Richard <rrichard@pivotal.io>
@srwaggon
Copy link

@dio Thanks for the advice 😄 That did it! This PR looks like it can be merged now with an approval!

Copy link
Member

@dio dio left a comment

Choose a reason for hiding this comment

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

Looks good, a request for comments.

- Added to ext_authz.cc at the request of the PR reviewer

Signed-off-by: Ryan Richard <rrichard@pivotal.io>
@dio
Copy link
Member

dio commented Oct 31, 2019

@gsagula could you help to verify this as well? Thanks!

@cfryanr
Copy link
Contributor Author

cfryanr commented Nov 6, 2019

Hi @dio and @gsagula,

Thanks for reviewing the PR. Is it ready to be accepted? Is there anything else that we can do to help it get accepted?

I ask because it is blocking the initial release of the new istio-ecosystem authservice project, which needs to be able to set and delete multiple cookies.

Thanks!

@dio
Copy link
Member

dio commented Nov 6, 2019

@cfryanr seems like you need to merge master again. Sorry.

@mattklein123
Copy link
Member

/wait

Signed-off-by: Ryan Richard <rrichard@pivotal.io>
@cfryanr
Copy link
Contributor Author

cfryanr commented Nov 6, 2019

Hi @dio. Thanks. I merged master into the fork. There were no merge conflicts.

@lizan lizan merged commit 373af75 into envoyproxy:master Nov 6, 2019
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.

ext_authz filter should allow multiple Set-Cookie headers to be added by the Check response
6 participants