feat: manage terraform access to vault

- add approle for terraform, tf_vault
- add policices to manage terraform access to vault
- add policices for default access to vault from ldap users
This commit is contained in:
2024-09-26 22:59:40 +10:00
parent 582f38c68f
commit f78416361b
21 changed files with 152 additions and 16 deletions
@@ -0,0 +1,3 @@
path "auth/approle/role/*" {
capabilities = ["create", "update", "read", "delete", "list"]
}
@@ -0,0 +1,3 @@
path "auth/approle/login" {
capabilities = ["create"]
}
+3
View File
@@ -0,0 +1,3 @@
path "auth/ldap/*" {
capabilities = ["create", "update", "read", "delete", "list"]
}
@@ -0,0 +1,7 @@
path "auth/token/create" {
capabilities = ["create", "read", "update", "list"]
}
path "auth/token/*" {
capabilities = ["create", "update"]
}
@@ -0,0 +1,4 @@
# Allow listing and reading tokens
path "auth/token/lookup" {
capabilities = ["read", "list"]
}
+4
View File
@@ -0,0 +1,4 @@
# Allow renewing tokens
path "auth/token/renew" {
capabilities = ["update"]
}
@@ -0,0 +1,3 @@
path "auth/token/roles/*" {
capabilities = ["create", "read", "update", "delete", "list"]
}
+14
View File
@@ -0,0 +1,14 @@
# Allow tokens to query themselves
path "auth/token/lookup-self" {
capabilities = ["read"]
}
# Allow tokens to renew themselves
path "auth/token/renew-self" {
capabilities = ["update"]
}
# Allow tokens to revoke themselves
path "auth/token/revoke-self" {
capabilities = ["update"]
}