From 9a62bce03b4cf010201bc1b998e586418094688b Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 4 May 2018 13:33:05 -0700 Subject: [PATCH] agent/config: default connect enabled in dev mode This enables `consul agent -dev` to begin using Connect features with the built-in CA. I think this is expected behavior since you can imagine that new users would want to try. There is no real downside since we're just using the built-in CA. --- agent/config/default.go | 4 ++++ agent/config/runtime_test.go | 1 + 2 files changed, 5 insertions(+) diff --git a/agent/config/default.go b/agent/config/default.go index b266a83b90..9d96f5a5c3 100644 --- a/agent/config/default.go +++ b/agent/config/default.go @@ -108,6 +108,10 @@ func DevSource() Source { ui = true log_level = "DEBUG" server = true + + connect = { + enabled = true + } performance = { raft_multiplier = 1 } diff --git a/agent/config/runtime_test.go b/agent/config/runtime_test.go index 3268c6c703..82787482f1 100644 --- a/agent/config/runtime_test.go +++ b/agent/config/runtime_test.go @@ -263,6 +263,7 @@ func TestConfigFlagsAndEdgecases(t *testing.T) { rt.AdvertiseAddrLAN = ipAddr("127.0.0.1") rt.AdvertiseAddrWAN = ipAddr("127.0.0.1") rt.BindAddr = ipAddr("127.0.0.1") + rt.ConnectEnabled = true rt.DevMode = true rt.DisableAnonymousSignature = true rt.DisableKeyringFile = true