Skip to content

fix: send the authorization token in a header, not the URL - #139

Open
andre-j3sus wants to merge 1 commit into
mainfrom
ajesus/authorization-header-token
Open

fix: send the authorization token in a header, not the URL#139
andre-j3sus wants to merge 1 commit into
mainfrom
ajesus/authorization-header-token

Conversation

@andre-j3sus

@andre-j3sus andre-j3sus commented Aug 18, 2026

Copy link
Copy Markdown
Collaborator

Summary

The optional authorizationToken was appended to request URLs as a jwt query
parameter. Request URLs are routinely persisted well outside the request itself
— server-side request logs, tracing span tags, error-reporting breadcrumbs — so
a bearer credential travelling in one leaks into every system that records a
URL.

This moves the token to an Authorization: Bearer header on the requests that
need it: the download/upload measurement requests, the TURN credential fetch,
and the two logging endpoints.

Request URLs are routinely persisted in server-side logs, traces and error
reports, so a bearer credential must not travel in one. The token now rides
an `Authorization: Bearer` header on the measurement, TURN credential and
logging requests.

Resolved per target URL rather than once per engine, so the existing
"never over plain HTTP" guard still holds for configs that mix schemes.

The public config is unchanged: consumers still set `authorizationToken`.
The URL-redaction helpers are gone, since no URL carries the token anymore.
@andre-j3sus andre-j3sus self-assigned this Aug 18, 2026
@ask-bonk

ask-bonk Bot commented Aug 18, 2026

Copy link
Copy Markdown

github run

@ask-bonk

ask-bonk Bot commented Aug 18, 2026

Copy link
Copy Markdown

@andre-j3sus Bonk workflow failed. Check the logs for details.

View workflow run · To retry, trigger Bonk again.

@andre-j3sus

Copy link
Copy Markdown
Collaborator Author

/bonk

@ask-bonk

ask-bonk Bot commented Aug 18, 2026

Copy link
Copy Markdown

github run

@andre-j3sus

Copy link
Copy Markdown
Collaborator Author

/bonk

@ask-bonk

ask-bonk Bot commented Aug 18, 2026

Copy link
Copy Markdown

github run

@andre-j3sus

Copy link
Copy Markdown
Collaborator Author

/bonk

@ask-bonk

ask-bonk Bot commented Aug 18, 2026

Copy link
Copy Markdown

github run

@andre-j3sus
andre-j3sus marked this pull request as ready for review August 18, 2026 17:33
@andre-j3sus

Copy link
Copy Markdown
Collaborator Author

/bonk

@ask-bonk

ask-bonk Bot commented Aug 18, 2026

Copy link
Copy Markdown

github run

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.

1 participant