mirror of https://github.com/hashicorp/consul
Update nomad policies to match https://developer.hashicorp.com/nomad/docs/integrations/consul/acl#nomad-agents
parent
f82f5207a1
commit
e495978eeb
|
@ -2,7 +2,7 @@ agent_prefix "" {
|
|||
policy = "read"
|
||||
}
|
||||
node_prefix "" {
|
||||
policy = "read"
|
||||
policy = "write"
|
||||
}
|
||||
service_prefix "" {
|
||||
policy = "write"
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
|
||||
acl = "write"
|
||||
acl = "write"
|
||||
mesh = "write"
|
||||
|
||||
agent_prefix "" {
|
||||
policy = "read"
|
||||
}
|
||||
node_prefix "" {
|
||||
policy = "read"
|
||||
policy = "write"
|
||||
}
|
||||
service_prefix "" {
|
||||
policy = "write"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"TemplateName": "builtin/nomad-client",
|
||||
"Schema": "",
|
||||
"Template": "agent_prefix \"\" {\n policy = \"read\"\n}\nnode_prefix \"\" {\n policy = \"read\"\n}\nservice_prefix \"\" {\n policy = \"write\"\n}\nkey_prefix \"\" {\n policy = \"read\"\n}",
|
||||
"Template": "agent_prefix \"\" {\n policy = \"read\"\n}\nnode_prefix \"\" {\n policy = \"write\"\n}\nservice_prefix \"\" {\n policy = \"write\"\n}\nkey_prefix \"\" {\n policy = \"read\"\n}",
|
||||
"Description": "Gives the token or role permissions required for integration with a nomad client."
|
||||
}
|
|
@ -8,7 +8,7 @@ agent_prefix "" {
|
|||
policy = "read"
|
||||
}
|
||||
node_prefix "" {
|
||||
policy = "read"
|
||||
policy = "write"
|
||||
}
|
||||
service_prefix "" {
|
||||
policy = "write"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"TemplateName": "builtin/nomad-server",
|
||||
"Schema": "",
|
||||
"Template": "\nacl = \"write\"\nagent_prefix \"\" {\n policy = \"read\"\n}\nnode_prefix \"\" {\n policy = \"read\"\n}\nservice_prefix \"\" {\n policy = \"write\"\n}",
|
||||
"Template": "\nacl = \"write\"\nmesh = \"write\"\n\nagent_prefix \"\" {\n policy = \"read\"\n}\nnode_prefix \"\" {\n policy = \"write\"\n}\nservice_prefix \"\" {\n policy = \"write\"\n}",
|
||||
"Description": "Gives the token or role permissions required for integration with a nomad server."
|
||||
}
|
|
@ -5,12 +5,14 @@ Example usage:
|
|||
consul acl token create -templated-policy builtin/nomad-server
|
||||
Raw Template:
|
||||
|
||||
acl = "write"
|
||||
acl = "write"
|
||||
mesh = "write"
|
||||
|
||||
agent_prefix "" {
|
||||
policy = "read"
|
||||
}
|
||||
node_prefix "" {
|
||||
policy = "read"
|
||||
policy = "write"
|
||||
}
|
||||
service_prefix "" {
|
||||
policy = "write"
|
||||
|
|
Loading…
Reference in New Issue