mirror of https://github.com/hashicorp/consul
Update policies to scope agent access.
parent
b00c1a8b59
commit
1ba81be2f8
|
@ -1,4 +1,4 @@
|
||||||
agent_prefix "" {
|
agent "{{.Name}}" {
|
||||||
policy = "read"
|
policy = "read"
|
||||||
}
|
}
|
||||||
node "{{.Name}}" {
|
node "{{.Name}}" {
|
||||||
|
@ -9,4 +9,4 @@ service_prefix "" {
|
||||||
}
|
}
|
||||||
key_prefix "" {
|
key_prefix "" {
|
||||||
policy = "read"
|
policy = "read"
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
|
|
||||||
acl = "write"
|
acl = "write"
|
||||||
mesh = "write"
|
mesh = "write"
|
||||||
|
|
||||||
agent_prefix "" {
|
agent "{{.Name}}" {
|
||||||
policy = "read"
|
policy = "read"
|
||||||
}
|
}
|
||||||
node "{{.Name}}" {
|
node "{{.Name}}" {
|
||||||
|
@ -10,4 +9,4 @@ node "{{.Name}}" {
|
||||||
}
|
}
|
||||||
service_prefix "" {
|
service_prefix "" {
|
||||||
policy = "write"
|
policy = "write"
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"TemplateName": "builtin/nomad-client",
|
"TemplateName": "builtin/nomad-client",
|
||||||
"Schema": "",
|
"Schema": "",
|
||||||
"Template": "agent_prefix \"\" {\n policy = \"read\"\n}\nnode \"{{.Name}}\" {\n policy = \"write\"\n}\nservice_prefix \"\" {\n policy = \"write\"\n}\nkey_prefix \"\" {\n policy = \"read\"\n}",
|
"Template": "agent \"{{.Name}}\" {\n policy = \"read\"\n}\nnode \"{{.Name}}\" {\n policy = \"write\"\n}\nservice_prefix \"\" {\n policy = \"write\"\n}\nkey_prefix \"\" {\n policy = \"read\"\n}\n",
|
||||||
"Description": "Gives the token or role permissions required for integration with a nomad client."
|
"Description": "Gives the token or role permissions required for integration with a nomad client."
|
||||||
}
|
}
|
|
@ -5,7 +5,7 @@ Input variables:
|
||||||
Example usage:
|
Example usage:
|
||||||
consul acl token create -templated-policy builtin/nomad-client -var name:node-1
|
consul acl token create -templated-policy builtin/nomad-client -var name:node-1
|
||||||
Raw Template:
|
Raw Template:
|
||||||
agent_prefix "" {
|
agent "{{.Name}}" {
|
||||||
policy = "read"
|
policy = "read"
|
||||||
}
|
}
|
||||||
node "{{.Name}}" {
|
node "{{.Name}}" {
|
||||||
|
@ -17,3 +17,4 @@ service_prefix "" {
|
||||||
key_prefix "" {
|
key_prefix "" {
|
||||||
policy = "read"
|
policy = "read"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"TemplateName": "builtin/nomad-server",
|
"TemplateName": "builtin/nomad-server",
|
||||||
"Schema": "",
|
"Schema": "",
|
||||||
"Template": "\nacl = \"write\"\nmesh = \"write\"\n\nagent_prefix \"\" {\n policy = \"read\"\n}\nnode \"{{.Name}}\" {\n policy = \"write\"\n}\nservice_prefix \"\" {\n policy = \"write\"\n}",
|
"Template": "acl = \"write\"\nmesh = \"write\"\n\nagent \"{{.Name}}\" {\n policy = \"read\"\n}\nnode \"{{.Name}}\" {\n policy = \"write\"\n}\nservice_prefix \"\" {\n policy = \"write\"\n}\n",
|
||||||
"Description": "Gives the token or role permissions required for integration with a nomad server."
|
"Description": "Gives the token or role permissions required for integration with a nomad server."
|
||||||
}
|
}
|
|
@ -5,11 +5,10 @@ Input variables:
|
||||||
Example usage:
|
Example usage:
|
||||||
consul acl token create -templated-policy builtin/nomad-server -var name:node-1
|
consul acl token create -templated-policy builtin/nomad-server -var name:node-1
|
||||||
Raw Template:
|
Raw Template:
|
||||||
|
|
||||||
acl = "write"
|
acl = "write"
|
||||||
mesh = "write"
|
mesh = "write"
|
||||||
|
|
||||||
agent_prefix "" {
|
agent "{{.Name}}" {
|
||||||
policy = "read"
|
policy = "read"
|
||||||
}
|
}
|
||||||
node "{{.Name}}" {
|
node "{{.Name}}" {
|
||||||
|
@ -18,3 +17,4 @@ node "{{.Name}}" {
|
||||||
service_prefix "" {
|
service_prefix "" {
|
||||||
policy = "write"
|
policy = "write"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue