feat vault: add lease right in policy
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
905d8fecd5
commit
8ddc3113f4
@ -95,6 +95,14 @@ data "vault_policy_document" "admin_policy" {
|
|||||||
path = "sys/mounts"
|
path = "sys/mounts"
|
||||||
capabilities = ["read","list"]
|
capabilities = ["read","list"]
|
||||||
}
|
}
|
||||||
|
rule {
|
||||||
|
path = "sys/leases/*"
|
||||||
|
capabilities = ["create", "read", "update", "delete", "list", "sudo"]
|
||||||
|
}
|
||||||
|
rule {
|
||||||
|
path = "sys/leases/lookup"
|
||||||
|
capabilities = ["list","sudo"]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
resource "vault_policy" "admin_policy" {
|
resource "vault_policy" "admin_policy" {
|
||||||
name = "admin_policy"
|
name = "admin_policy"
|
||||||
|
Loading…
Reference in New Issue
Block a user