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

[bp/1.28] jwt: do not concatenate duplicated headers (#32248) #32364

Conversation

jewertow
Copy link
Contributor

@jewertow jewertow commented Feb 13, 2024

Duplicated headers should not be concatenated with a comma, because comma is not allowed in a JWT token, so concatenation invalidates tokens. This PR fixes #31468.

Risk Level:
Testing: unit tests
Docs Changes: none
Release Notes:
Platform Specific Features: none

@jewertow jewertow requested a review from lizan as a code owner February 13, 2024 13:37
@phlax
Copy link
Member

phlax commented Feb 13, 2024

@jewertow ci is failing as the branch needs to be reopened (#32329) - ill try and get a review presently

would you mind raising a backport for 1.29 also

@phlax phlax self-assigned this Feb 13, 2024
@jewertow
Copy link
Contributor Author

ci is failing as the branch needs to be reopened

Thanks, I couldn't understand what's wrong.

@jewertow jewertow changed the title [bp/1.28] jwt: do not concatenate headers [bp/1.28] jwt: do not concatenate duplicated headers (#32248) Feb 13, 2024
Duplicated headers should not be concatenated with a comma, because comma is not allowed in a JWT token, so concatenation invalidates tokens.
This PR fixes envoyproxy#31468.

Risk Level:
Testing: unit tests
Docs Changes: none
Release Notes:
Platform Specific Features: none

Signed-off-by: Jacek Ewertowski <jewertow@redhat.com>
@jewertow jewertow force-pushed the bp-1-28-jwt-do-not-concatenate-headers branch from 3541f86 to c04357f Compare February 13, 2024 14:43
Copy link
Member

@phlax phlax left a comment

Choose a reason for hiding this comment

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

lgtm, thanks @jewertow

@phlax phlax enabled auto-merge (rebase) February 13, 2024 15:00
@phlax phlax merged commit f074b51 into envoyproxy:release/v1.28 Feb 13, 2024
41 checks passed
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