-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
OIDC auth extension header handling should be case-insensitive #18405
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Interesting, this should have been fixed by this: open-telemetry/opentelemetry-collector#5646 Would you be interested in looking at the source code and figuring out why this isn't happening? |
Here's the problematic code:
Perhaps a similar solution to the PR I linked earlier would apply here: |
Yes, a similar solution will work. First, I need to finish my upcoming revision for the googlepubsubreceiver (that will use this extension in push mode). |
@jpkrohling the PR is green, and waiting for review: #18607 |
You specified "Collector version 0.77", but this version didn't exist at the time of filing this issue 🙃 |
Component(s)
extension/oidcauth
What happened?
Description
The OIDC auth extension header handling should be case-insensitive; also the default header key is declared as
authorization
, while most systems provide theAuthorization
header capitalized. The HTTP spec also specifies that HTTP headers are case-insensitive.Steps to Reproduce
Use the OIDC extension, without specifying the attribute key (so default is used), do a call with a JWT bearer token, with as key the capitalized
Authorization
.Expected Result
200 OK
Actual Result
401 Unauthorized
Collector version
0.77
Environment information
Environment
OS: MacOS
OpenTelemetry Collector configuration
Log output
No response
Additional context
Workaround for now, declare the
attribute
explicitly:The text was updated successfully, but these errors were encountered: