agent: Do not expose AtlasToken or AtlasACLToken

This commit is contained in:
Armon Dadgar 2015-02-09 11:32:12 -08:00
parent 1738a6b171
commit 760bbd14a5
1 changed files with 2 additions and 2 deletions

View File

@ -322,14 +322,14 @@ type Config struct {
AtlasInfrastructure string `mapstructure:"atlas_infrastructure"` AtlasInfrastructure string `mapstructure:"atlas_infrastructure"`
// AtlasToken is our authentication token from Atlas // 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 // AtlasACLToken is applied to inbound requests if no other token
// is provided. This takes higher precedence than the ACLToken. // is provided. This takes higher precedence than the ACLToken.
// Without this, the ACLToken is used. If that is not specified either, // Without this, the ACLToken is used. If that is not specified either,
// then the 'anonymous' token is used. This can be set to 'anonymous' // then the 'anonymous' token is used. This can be set to 'anonymous'
// to reduce the Atlas privileges to below that of the ACLToken. // 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 // AtlasJoin controls if Atlas will attempt to auto-join the node
// to it's cluster. Requires Atlas integration. // to it's cluster. Requires Atlas integration.