Enable ACLs on E2E test clients (#16530)

* e2e: uniformly enable acls across all agents

* docs: clarify that acls should be set everywhere
This commit is contained in:
Michael Schurter 2023-03-16 14:22:41 -07:00 committed by GitHub
parent ec47b245d0
commit a875bad6e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 14 deletions

View File

@ -7,6 +7,16 @@ audit {
enabled = true
}
acl {
enabled = true
# These values are used by the testACLTokenExpiration test within the acl
# test suite. If these need to be updated, please ensure the new values are
# reflected within the test suite and do not break the tests. Thanks.
token_min_expiration_ttl = "1s"
token_max_expiration_ttl = "24h"
}
telemetry {
collection_interval = "1s"
disable_hostname = true

View File

@ -2,13 +2,3 @@ server {
enabled = true
bootstrap_expect = 3
}
acl {
enabled = true
# These values are used by the testACLTokenExpiration test within the acl
# test suite. If these need to be updated, please ensure the new values are
# reflected within the test suite and do not break the tests. Thanks.
token_min_expiration_ttl = "1s"
token_max_expiration_ttl = "24h"
}

View File

@ -26,10 +26,11 @@ acl {
## `acl` Parameters
- `enabled` `(bool: false)` - Specifies if ACL enforcement is enabled. All other
ACL configuration options depend on this value. Note that the Nomad command
line client will send requests for client endpoints such as `alloc exec`
directly to Nomad clients whenever they are accessible. In this scenario, the
client will enforce ACLs, so both servers and clients should have ACLs enabled.
ACL configuration options depend on this value. All agents should have the
same value for this parameter. For example the Nomad command line will
send requests for client endpoints such as `alloc exec` directly to Nomad
clients whenever they are accessible. In this scenario, the client will
enforce ACLs, so both servers and clients should have ACLs enabled.
- `token_ttl` `(string: "30s")` - Specifies the maximum time-to-live (TTL) for
cached ACL tokens. This does not affect servers, since they do not cache tokens.