Skip to content

Commit

Permalink
Mask join tokens in daemon logs
Browse files Browse the repository at this point in the history
Signed-off-by: Tonis Tiigi <[email protected]>
  • Loading branch information
tonistiigi committed Aug 2, 2016
1 parent 404705f commit e3917c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/server/middleware/debug.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e3917c7

Please sign in to comment.