summaryrefslogtreecommitdiff
path: root/api/server/middleware
diff options
context:
space:
mode:
authorAaron Lehmann <aaron.lehmann@docker.com>2016-10-27 18:50:49 -0700
committerAaron Lehmann <aaron.lehmann@docker.com>2016-11-09 16:09:00 -0800
commit0f9fc54df9274327ed22f4e07f0981a648e0278a (patch)
treec9af199d49ccaf2bef258e0a34a447418e2b1a22 /api/server/middleware
parent8b1f72ad44f03d4786cb3e881b480c94a143885f (diff)
downloaddocker-0f9fc54df9274327ed22f4e07f0981a648e0278a.tar.gz
Revise swarm init/update flags, add unlocking capability
- Neither swarm init or swarm update should take an unlock key - Add an autolock flag to turn on autolock - Make the necessary docker api changes - Add SwarmGetUnlockKey API call and use it when turning on autolock - Add swarm unlock-key subcommand Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
Diffstat (limited to 'api/server/middleware')
-rw-r--r--api/server/middleware/debug.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/server/middleware/debug.go b/api/server/middleware/debug.go
index 1ea0386114..8c8567669b 100644
--- a/api/server/middleware/debug.go
+++ b/api/server/middleware/debug.go
@@ -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", "jointoken", "lockkey"} {
+ for _, m := range []string{"password", "secret", "jointoken", "unlockkey"} {
if strings.EqualFold(m, k) {
form[k] = "*****"
continue loop0