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

fix(server): Prevent multiple authentication payloads #602

Merged
merged 1 commit into from
Jun 5, 2020

Conversation

jan-auer
Copy link
Member

@jan-auer jan-auer commented Jun 3, 2020

Implemements the same logic as in getsentry/sentry@96893d6: Error when multiple authentication payloads are provided, rather than taking the first one.

@jan-auer jan-auer requested a review from a team June 3, 2020 16:25
@jan-auer jan-auer self-assigned this Jun 3, 2020
@jan-auer jan-auer force-pushed the fix/error-multiple-auth branch from 315fe0b to be73e05 Compare June 4, 2020 14:47
@jan-auer
Copy link
Member Author

jan-auer commented Jun 4, 2020

Verified that this works with JS SDK versions 5.16.0 and 5.16.1.

Copy link
Member

@untitaker untitaker left a comment

Choose a reason for hiding this comment

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

Sure but do we know why we need this?

@jan-auer
Copy link
Member Author

jan-auer commented Jun 4, 2020

Sure but do we know why we need this?

See the linked commit for a short description. This was originally introduced to harden against header values bleeding across http2 connections. Today, it is useful to validate sane behavior of SDKs.

@jan-auer jan-auer merged commit c35208c into master Jun 5, 2020
@jan-auer jan-auer deleted the fix/error-multiple-auth branch June 5, 2020 07:25
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.

3 participants