-
Notifications
You must be signed in to change notification settings - Fork 8k
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
Don't log requests #1370
Don't log requests #1370
Conversation
@dustin-decker You should ensure |
@chainhelen Thanks for the notification. Indeed, but I didn't expect there to be a test inspecting the output buffer for a HTTP header! |
Codecov Report
@@ Coverage Diff @@
## master #1370 +/- ##
==========================================
+ Coverage 99.06% 99.06% +<.01%
==========================================
Files 39 39
Lines 1919 1922 +3
==========================================
+ Hits 1901 1904 +3
Misses 14 14
Partials 4 4
Continue to review full report at Codecov.
|
@dustin-decker @javierprovecho @thinkerou Could we proceed with this one? We'd also like to prevent sensitive user information from being exposed in gin panic logs on our servers. If there are any holdups (I see test failing + unresolved conflicts) I would be glad to fix these issues myself if the author is unavailable. |
@dustin-decker please fix conflict, thanks! |
maybe we can remove the httpdump request data in |
Thanks for reviewing, @appleboy. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM @dustin-decker Thanks.
@thinkerou Need your approval :) |
Fixes gin-gonic#1331 HTTP logging leaks sensitive request information. This PR removes HTTP request logging during panics.
Fixes #1331
HTTP logging leaks sensitive request information.
This PR removes HTTP request logging during panics.