feat vault: add lease right in policy
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
vincent 2022-11-29 21:08:13 +01:00
parent 905d8fecd5
commit 8ddc3113f4

View File

@ -95,6 +95,14 @@ data "vault_policy_document" "admin_policy" {
path = "sys/mounts"
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" {
name = "admin_policy"