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

bug command. #2178

Merged
merged 2 commits into from Oct 2, 2017
Merged

bug command. #2178

merged 2 commits into from Oct 2, 2017

Conversation

ldez
Copy link
Member

@ldez ldez commented Sep 27, 2017

Description

In the bug command, some fields (like token, password, ...) are not anonymized.

This PR fixes this problem.

Copy link
Member

@juliens juliens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

GroupsAsSubDomains bool `description:"Convert Mesos groups to subdomains" export:"true"`
ZkDetectionTimeout int `description:"Zookeeper timeout (in seconds)" export:"true"`
RefreshSeconds int `description:"Polling interval (in seconds)" export:"true"`
// e.g. "host", "docker", "mesos", "rkt"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unnecessary comment, already present in IPSources description

Copy link
Member

@emilevauge emilevauge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMHO, it would be a good idea to move from obfuscate (to make obscure, to darken), to anonymize. Our mechanism makes it impossible to get the initial info, which is not what means obfuscate.
WDYT ?

@ldez
Copy link
Member Author

ldez commented Sep 29, 2017

@emilevauge done.

return string(fieldName[0]) == strings.ToUpper(string(fieldName[0]))
}

func marshal(obfuscatedConfig interface{}, indent bool) ([]byte, error) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be anomConfig no ?

Copy link
Contributor

@nmengin nmengin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👏 :shipit:

Copy link
Member

@emilevauge emilevauge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏 👏 @ldez
LGTM

@mmatur
Copy link
Member

mmatur commented Oct 2, 2017

👏 LGTM

@traefiker traefiker merged commit 5cc49e2 into traefik:v1.4 Oct 2, 2017
@ldez ldez deleted the fix/bug-command branch October 2, 2017 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants