1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Mask join tokens in daemon logs

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
Tonis Tiigi 2016-08-02 15:15:23 -07:00
parent 404705fd8e
commit e3917c76ce

View file

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