-
Notifications
You must be signed in to change notification settings - Fork 79
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
Sanitize logged headers and cookies from Netty HTTP objects #590
Sanitize logged headers and cookies from Netty HTTP objects #590
Conversation
components/common/src/main/java/com/hotels/styx/common/format/SanitisedHttpHeaderFormatter.java
Outdated
Show resolved
Hide resolved
components/common/src/main/java/com/hotels/styx/common/format/SanitisingThrowableFactory.java
Outdated
Show resolved
Hide resolved
pom.xml
Outdated
@@ -118,6 +118,7 @@ | |||
<reactive-streams.version>1.0.2</reactive-streams.version> | |||
<reactor.version>3.3.0.RELEASE</reactor.version> | |||
<pcollections.version>3.0.3</pcollections.version> | |||
<cglib.version>3.3.0</cglib.version> |
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.
Can you please remove this property?
pom.xml
Outdated
<dependency> | ||
<groupId>net.bytebuddy</groupId> | ||
<artifactId>byte-buddy</artifactId> | ||
<version>1.10.6</version> |
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.
Should we add the version as a property as done for cglib previously?
@@ -15,17 +15,21 @@ | |||
*/ | |||
package com.hotels.styx.logging | |||
|
|||
import ch.qos.logback.classic.Level.INFO | |||
import ch.qos.logback.classic.Level.* |
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.
We don't usually do star imports ... I assume it's your IDE doing that after N arguments. Can you check the configuration?
* @param formatter hides the sensitive cookies. | ||
* @return the proxied Throwable, or the supplied Target if it cannot be proxied. | ||
*/ | ||
public Throwable create(Throwable target, SanitisedHttpHeaderFormatter formatter) { |
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.
Target seems fine in the context of creating a Proxy, but I wonder if it would a bit clearer if we indicated it's the origin exception. Just nitpicking :)
See #573