2016-11-01 19:23:10 +00:00
|
|
|
# Allow creating tokens under the role
|
|
|
|
path "auth/token/create/nomad-server" {
|
2016-11-01 12:53:13 +00:00
|
|
|
capabilities = ["create", "update"]
|
2016-11-01 19:23:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
# Allow looking up the role
|
|
|
|
path "auth/token/roles/nomad-server" {
|
2016-11-01 12:53:13 +00:00
|
|
|
capabilities = ["read"]
|
2016-11-01 19:23:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
# Allow looking up incoming tokens to validate they have permissions to
|
|
|
|
# access the tokens they are requesting
|
|
|
|
path "auth/token/lookup/*" {
|
2016-11-01 12:53:13 +00:00
|
|
|
capabilities = ["read"]
|
2016-11-01 19:23:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
# Allow revoking tokens that should no longer exist
|
|
|
|
path "/auth/token/revoke-accessor/*" {
|
2016-11-01 12:53:13 +00:00
|
|
|
capabilities = ["update"]
|
2016-11-01 19:23:10 +00:00
|
|
|
}
|