Merge pull request #25346 from tonistiigi/mask-join-tokens

Mask join tokens in daemon logs
This commit is contained in:
Sebastiaan van Stijn 2016-08-03 01:34:18 +02:00 committed by GitHub
commit cfd2719bf7

View file

@ -64,7 +64,7 @@ func maskSecretKeys(inp interface{}) {
if form, ok := inp.(map[string]interface{}); ok {
loop0:
for k, v := range form {
for _, m := range []string{"password", "secret"} {
for _, m := range []string{"password", "secret", "jointoken"} {
if strings.EqualFold(m, k) {
form[k] = "*****"
continue loop0