server: add ACL token expiration config parameters. (#13667)

This commit adds configuration parameters to control ACL token
expirations. This includes both limits on the min and max TTL
expiration values, as well as a GC threshold for expired tokens.
This commit is contained in:
James Rasell
2022-07-12 13:43:25 +02:00
committed by GitHub
parent f2197188a8
commit 08845cef04
8 changed files with 102 additions and 21 deletions

View File

@@ -4,7 +4,9 @@
"enabled": true,
"policy_ttl": "60s",
"replication_token": "foobar",
"token_ttl": "60s"
"token_ttl": "60s",
"token_min_expiration_ttl": "1h",
"token_max_expiration_ttl": "100h"
}
],
"audit": {
@@ -254,6 +256,7 @@
],
"server": [
{
"acl_token_gc_threshold": "12h",
"authoritative_region": "foobar",
"bootstrap_expect": 5,
"csi_plugin_gc_threshold": "12h",