From 682d65b4bc1e8bc054c5980a2fe925d73762bf87 Mon Sep 17 00:00:00 2001 From: James Phillips Date: Wed, 25 Jan 2017 21:01:07 -0800 Subject: [PATCH] Redacts AWS join credientials from /v1/agent/self output. --- command/agent/config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/command/agent/config.go b/command/agent/config.go index f1e7f492f..4ea3c1fbc 100644 --- a/command/agent/config.go +++ b/command/agent/config.go @@ -129,8 +129,8 @@ type RetryJoinEC2 struct { TagValue string `mapstructure:"tag_value"` // The AWS credentials to use for making requests to EC2 - AccessKeyID string `mapstructure:"access_key_id"` - SecretAccessKey string `mapstructure:"secret_access_key"` + AccessKeyID string `mapstructure:"access_key_id" json:"-"` + SecretAccessKey string `mapstructure:"secret_access_key" json:"-"` } // RetryJoinGCE is used to configure discovery of instances via Google Compute