09cd01a5f3
This PR adds e2e tests for Consul Namespaces for Nomad Enterprise with Consul ACLs enabled. Needed to add support for Consul ACL tokens with `namespace` and `namespace_prefix` blocks, which Nomad parses and validates before tossing the token. These bits will need to be picked back to OSS.
22 lines
443 B
HCL
22 lines
443 B
HCL
// The Nomad Client will be registering things into its buddy Consul Client.
|
|
// Note: because we also test the use of Consul namespaces, this token must be
|
|
// able to register services, read the keystore, and read node data for any
|
|
// namespace.
|
|
|
|
agent_prefix "" {
|
|
policy = "read"
|
|
}
|
|
|
|
namespace_prefix "" {
|
|
key_prefix "" {
|
|
policy = "read"
|
|
}
|
|
|
|
node_prefix "" {
|
|
policy = "read"
|
|
}
|
|
|
|
service_prefix "" {
|
|
policy = "write"
|
|
}
|
|
} |