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

canonicalize orgid header in forwarding #3385

Merged
merged 2 commits into from Nov 4, 2022
Merged

Conversation

replay
Copy link
Contributor

@replay replay commented Nov 3, 2022

the http header needs to be canonicalized for the header lookup to work

Signed-off-by: Mauro Stettler <mauro.stettler@gmail.com>
@replay replay marked this pull request as ready for review November 3, 2022 21:52
@replay replay requested a review from a team as a code owner November 3, 2022 21:52
@replay replay changed the title canonicalize orgid header canonicalize orgid header in forwarding Nov 3, 2022
Signed-off-by: Mauro Stettler <mauro.stettler@gmail.com>
Copy link
Member

@pstibrany pstibrany left a comment

Choose a reason for hiding this comment

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

Good find, thank you!

One could argue that this should be done by httpgrpc.Server before passing request to http handlers in https://github.com/weaveworks/common/blob/master/httpgrpc/server/server.go#L221

@pstibrany pstibrany merged commit da8669d into main Nov 4, 2022
@pstibrany pstibrany deleted the canonicalize_http_header branch November 4, 2022 07:57
masonmei pushed a commit to udmire/mimir that referenced this pull request Dec 16, 2022
* canonicalize orgid header

Signed-off-by: Mauro Stettler <mauro.stettler@gmail.com>

* fix test

Signed-off-by: Mauro Stettler <mauro.stettler@gmail.com>

Signed-off-by: Mauro Stettler <mauro.stettler@gmail.com>
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.

None yet

2 participants