You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#1836
This PR fix the issue partially, with brokenpipe case, the entire httpReques containing the user credentials is still being logged as error.
How to reproduce
Client cancel a downloading request will lead to broken pipe panic, and the RecoveryWithWriter method will log it as errors including the entire http request which contains sensitive user info like Authorization token etc.
Expectations
No logging of sensitive user data in the log.
Actual result
Logs contain sensitive user data when encounter broken pipe failure.
Environment
go version: go1.13.4
gin version (or commit ref): v.1.5.0
operating system: Linux
The text was updated successfully, but these errors were encountered:
Description
#1836
This PR fix the issue partially, with brokenpipe case, the entire httpReques containing the user credentials is still being logged as error.
How to reproduce
Client cancel a downloading request will lead to broken pipe panic, and the RecoveryWithWriter method will log it as errors including the entire http request which contains sensitive user info like Authorization token etc.
Expectations
No logging of sensitive user data in the log.
Actual result
Logs contain sensitive user data when encounter broken pipe failure.
Environment
The text was updated successfully, but these errors were encountered: