mirror of https://github.com/status-im/consul.git
agent: update accepted CA config fields and defaults
This commit is contained in:
parent
316bdbe010
commit
edbeeeb23c
|
@ -534,6 +534,13 @@ func (b *Builder) Build() (rt RuntimeConfig, err error) {
|
||||||
connectEnabled = b.boolVal(c.Connect.Enabled)
|
connectEnabled = b.boolVal(c.Connect.Enabled)
|
||||||
connectCAProvider = b.stringVal(c.Connect.CAProvider)
|
connectCAProvider = b.stringVal(c.Connect.CAProvider)
|
||||||
connectCAConfig = c.Connect.CAConfig
|
connectCAConfig = c.Connect.CAConfig
|
||||||
|
if c.Connect.CAConfig != nil {
|
||||||
|
TranslateKeys(connectCAConfig, map[string]string{
|
||||||
|
"private_key": "PrivateKey",
|
||||||
|
"root_cert": "RootCert",
|
||||||
|
"rotation_period": "RotationPeriod",
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
proxyDefaultExecMode := ""
|
proxyDefaultExecMode := ""
|
||||||
|
|
|
@ -438,7 +438,7 @@ func DefaultConfig() *Config {
|
||||||
Config: map[string]interface{}{
|
Config: map[string]interface{}{
|
||||||
"PrivateKey": "",
|
"PrivateKey": "",
|
||||||
"RootCert": "",
|
"RootCert": "",
|
||||||
"RotationPeriod": 90 * 24 * time.Hour,
|
"RotationPeriod": "2160h",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue