Skip to content

Conversation

@jdstrand
Copy link
Contributor

@jdstrand jdstrand commented Dec 8, 2025

While authenticate_request() already removes the Authorization header, explicitly skip adding the Authorization header when building up the request plugin's 'request_headers' headers that is passed into the 'process_request()' python API. This hardens the codebase from accidentally adding it back and allowing the request plugin to use the Authorization header to hit the HTTP API through the front door, bypassing it's intended API.

Clean cherry-pick from influxdb_pro

…rs (#1890)

While authenticate_request() already removes the Authorization header,
explicitly skip adding the Authorization header when building up the
request plugin's 'request_headers' headers that is passed into the
'process_request()' python API. This hardens the codebase from
accidentally adding it back and allowing the request plugin to use the
Authorization header to hit the HTTP API through the front door,
bypassing it's intended API.

Co-authored-by: Claude <[email protected]>
@jdstrand jdstrand requested a review from philjb December 8, 2025 12:36
@jdstrand jdstrand merged commit 7d2bb4d into main Dec 8, 2025
13 checks passed
@jdstrand jdstrand deleted the jdstrand/explicitly-remove-authorization-header-for-request-plugin branch December 8, 2025 19:16
@philjb philjb added the v3 label Dec 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants