-
Notifications
You must be signed in to change notification settings - Fork 180
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
Mask Authorization header when showing RequestError #1125
Comments
IIUC this isn't really a leak since it just prints the request which resulted in the error. Still a good idea to skip printing of sensitive headers I suppose. |
nkottary
added a commit
to nkottary/HTTP.jl
that referenced
this issue
Nov 23, 2023
Edits the `show` and `writeheaders` methods to hide the value of Authorization header. This hides the Authorization header when `Request` or `RequestError` objects are `show`n. Fix for JuliaWeb#1125
nkottary
added a commit
to nkottary/HTTP.jl
that referenced
this issue
Nov 27, 2023
Edits the `show` and `writeheaders` methods to hide the value of Authorization header. This hides the Authorization header when `Request` or `RequestError` objects are `show`n. Fix for JuliaWeb#1125
fredrikekre
pushed a commit
to nkottary/HTTP.jl
that referenced
this issue
Nov 28, 2023
Edits the `show` and `writeheaders` methods to hide the value of Authorization header. This hides the Authorization header when `Request` or `RequestError` objects are `show`n. Fix for JuliaWeb#1125
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The problem: The value of the Authorization header is printed as is when displaying a RequestError. This leaks the token in the key to the logs.
Steps to reproduce:
Run this as a server:
julia server.jl
Example:
The text was updated successfully, but these errors were encountered: