Skip to content

Commit

Permalink
Updated the spec definition for tls config
Browse files Browse the repository at this point in the history
  • Loading branch information
diptanu committed Oct 24, 2016
1 parent 15b2cc5 commit e115f83
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions command/agent/config-test-fixtures/basic.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ vault {
tls_skip_verify = true
}
tls {
http_tls = true
rpc_tls = true
enable_http = true
enable_rpc = true
verify_server_hostname = true
ca_file = "foo"
cert_file = "bar"
Expand Down
4 changes: 2 additions & 2 deletions command/agent/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,10 @@ type AtlasConfig struct {
type TLSConfig struct {

// EnableHTTP enabled TLS for http traffic to the Nomad server and clients
EnableHTTP bool `mapstructure:"http_tls"`
EnableHTTP bool `mapstructure:"enable_http"`

// EnableRPC enables TLS for RPC and Raft traffic to the Nomad servers
EnableRPC bool `mapstructure:"rpc_tls"`
EnableRPC bool `mapstructure:"enable_rpc"`

// VerifyServerHostname is used to enable hostname verification of servers. This
// ensures that the certificate presented is valid for server.<datacenter>.<domain>.
Expand Down
4 changes: 2 additions & 2 deletions command/agent/config_parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -662,8 +662,8 @@ func parseTLSConfig(result **TLSConfig, list *ast.ObjectList) error {
listVal := list.Items[0].Val

valid := []string{
"http_tls",
"rpc_tls",
"enable_http",
"enable_rpc",
"verify_server_hostname",
"ca_file",
"cert_file",
Expand Down

0 comments on commit e115f83

Please sign in to comment.