Skip to content
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

Merged

Conversation

chrisgresty
Copy link
Contributor

See #573

@chrisgresty chrisgresty marked this pull request as ready for review January 17, 2020 12:13
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>
Copy link
Contributor

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>
Copy link
Contributor

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.*
Copy link
Contributor

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) {
Copy link
Contributor

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 :)

@chrisgresty chrisgresty merged commit 278514c into ExpediaGroup:master Jan 18, 2020
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.

4 participants