Skip to content

gcp_authn: Override any existing value in the request header that includes authn: Bearer id token#22934

Merged
yanavlasov merged 4 commits intoenvoyproxy:mainfrom
tyxia:header
Sep 19, 2022
Merged

gcp_authn: Override any existing value in the request header that includes authn: Bearer id token#22934
yanavlasov merged 4 commits intoenvoyproxy:mainfrom
tyxia:header

Conversation

@tyxia
Copy link
Copy Markdown
Member

@tyxia tyxia commented Sep 1, 2022

Issue: If an incoming request includes an existing Authorization token, we should override instead of appending to the existing value.
Fix: Use setCopy instead of addCopy for the override behavior.

Signed-off-by: Tianyu Xia tyxia@google.com

…d token

Signed-off-by: Tianyu Xia <tyxia@google.com>
@repokitteh-read-only
Copy link
Copy Markdown

As a reminder, PRs marked as draft will not be automatically assigned reviewers,
or be handled by maintainer-oncall triage.

Please mark your PR as ready when you want it to be reviewed!

🐱

Caused by: #22934 was opened by tyxia.

see: more, trace.

@tyxia
Copy link
Copy Markdown
Member Author

tyxia commented Sep 1, 2022

/retest

@repokitteh-read-only
Copy link
Copy Markdown

Retrying Azure Pipelines:
Retried failed jobs in: envoy-presubmit

🐱

Caused by: a #22934 (comment) was created by @tyxia.

see: more, trace.

@tyxia
Copy link
Copy Markdown
Member Author

tyxia commented Sep 1, 2022

/retest

@repokitteh-read-only
Copy link
Copy Markdown

Retrying Azure Pipelines:
Retried failed jobs in: envoy-presubmit

🐱

Caused by: a #22934 (comment) was created by @tyxia.

see: more, trace.

@tyxia tyxia marked this pull request as ready for review September 2, 2022 13:32
@tyxia tyxia requested a review from yanavlasov as a code owner September 2, 2022 13:32
@tyxia
Copy link
Copy Markdown
Member Author

tyxia commented Sep 2, 2022

/assign @yanavlasov

Could you please take a look? Thanks!

@tyxia tyxia changed the title gcp_authn: Override any existing value in the request header with authn: Bearer id token gcp_authn: Override any existing value in the request header that includes authn: Bearer id token Sep 7, 2022
@yanavlasov
Copy link
Copy Markdown
Contributor

/wait

Signed-off-by: Tianyu Xia <tyxia@google.com>
Signed-off-by: Tianyu Xia <tyxia@google.com>
@tyxia
Copy link
Copy Markdown
Member Author

tyxia commented Sep 16, 2022

/retest

@repokitteh-read-only
Copy link
Copy Markdown

Retrying Azure Pipelines:
Retried failed jobs in: envoy-presubmit

🐱

Caused by: a #22934 (comment) was created by @tyxia.

see: more, trace.

@tyxia
Copy link
Copy Markdown
Member Author

tyxia commented Sep 16, 2022

/retest

@repokitteh-read-only
Copy link
Copy Markdown

Retrying Azure Pipelines:
Retried failed jobs in: envoy-presubmit

🐱

Caused by: a #22934 (comment) was created by @tyxia.

see: more, trace.

@tyxia
Copy link
Copy Markdown
Member Author

tyxia commented Sep 16, 2022

@yanavlasov The test coverage is added and PTAL. Thanks!

@yanavlasov yanavlasov merged commit 78f6a96 into envoyproxy:main Sep 19, 2022
@tyxia tyxia deleted the header branch September 20, 2022 18:21
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.

2 participants