Mask join tokens in daemon logs

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
(cherry picked from commit e3917c76ce)
Signed-off-by: Tibor Vass <tibor@docker.com>
This commit is contained in:
Tonis Tiigi 2016-08-02 15:15:23 -07:00 committed by Tibor Vass
parent b0bff4d8d2
commit 9b759e18b1

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