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