From 760bbd14a50c8e34b8f850e639ffb2299b56d685 Mon Sep 17 00:00:00 2001 From: Armon Dadgar Date: Mon, 9 Feb 2015 11:32:12 -0800 Subject: [PATCH] agent: Do not expose AtlasToken or AtlasACLToken --- 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 38490a919..bd849d5fd 100644 --- a/command/agent/config.go +++ b/command/agent/config.go @@ -322,14 +322,14 @@ type Config struct { AtlasInfrastructure string `mapstructure:"atlas_infrastructure"` // AtlasToken is our authentication token from Atlas - AtlasToken string `mapstructure:"atlas_token"` + AtlasToken string `mapstructure:"atlas_token" json:"-"` // AtlasACLToken is applied to inbound requests if no other token // is provided. This takes higher precedence than the ACLToken. // Without this, the ACLToken is used. If that is not specified either, // then the 'anonymous' token is used. This can be set to 'anonymous' // to reduce the Atlas privileges to below that of the ACLToken. - AtlasACLToken string `mapstructure:"atlas_acl_token"` + AtlasACLToken string `mapstructure:"atlas_acl_token" json:"-"` // AtlasJoin controls if Atlas will attempt to auto-join the node // to it's cluster. Requires Atlas integration.