open-consul/agent/config
Daniel Nephin 09ae0ab94a acl: make ACLDisabledTTL a constant
This field was never user-configurable. We always overwrote the value with 120s from
NonUserSource. However, we also never copied the value from RuntimeConfig to consul.Config,
So the value in NonUserSource was always ignored, and we used the default value of 30s
set by consul.DefaultConfig.

All of this code is an unnecessary distraction because a user can not actually configure
this value.

This commit removes the fields and uses a constant value instad. Someone attempting to set
acl.disabled_ttl in their config will now get an error about an unknown field, but previously
the value was completely ignored, so the new behaviour seems more correct.

We have to keep this field in the AutoConfig response for backwards compatibility, but the value
will be ignored by the client, so it doesn't really matter what value we set.
2021-08-17 13:34:18 -04:00
..
testdata acl: make ACLDisabledTTL a constant 2021-08-17 13:34:18 -04:00
agent_limits.go
builder.go acl: make ACLDisabledTTL a constant 2021-08-17 13:34:18 -04:00
builder_oss.go config: add agent config flag for enterprise clients to indicate they wish to join a particular partition (#10572) 2021-07-08 10:03:38 -05:00
builder_oss_test.go
builder_test.go config: unexport the remaining builder methods 2021-07-06 18:42:09 -04:00
config.go acl: make ACLDisabledTTL a constant 2021-08-17 13:34:18 -04:00
config_oss.go agent/structs: add a bunch more EnterpriseMeta helper functions to help with partitioning (#10669) 2021-07-22 13:20:45 -05:00
default.go acl: make ACLDisabledTTL a constant 2021-08-17 13:34:18 -04:00
default_oss.go
doc.go
flags.go config: update config settings and flags for ports.xds 2021-07-13 12:31:48 -04:00
flags_test.go config: update config settings and flags for ports.xds 2021-07-13 12:31:48 -04:00
flagset.go
golden_test.go
limits.go
limits_windows.go
merge.go
merge_test.go
runtime.go config: remove ACLResolver settings from RuntimeConfig 2021-08-17 13:32:52 -04:00
runtime_oss.go config: add agent config flag for enterprise clients to indicate they wish to join a particular partition (#10572) 2021-07-08 10:03:38 -05:00
runtime_oss_test.go config: add agent config flag for enterprise clients to indicate they wish to join a particular partition (#10572) 2021-07-08 10:03:38 -05:00
runtime_test.go acl: make ACLDisabledTTL a constant 2021-08-17 13:34:18 -04:00
segment_oss.go
segment_oss_test.go