update vault token
This commit is contained in:
parent
a51635cebe
commit
99c058f9ec
|
|
@ -177,6 +177,14 @@ path "auth/token/renew-self" {
|
||||||
capabilities = ["update"]
|
capabilities = ["update"]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
path "auth/token/lookup-accessor" {
|
||||||
|
capabilities = ["update"]
|
||||||
|
}
|
||||||
|
|
||||||
|
path "auth/token/renew-accessor" {
|
||||||
|
capabilities = ["update"]
|
||||||
|
}
|
||||||
|
|
||||||
# Add other necessary permissions as needed
|
# Add other necessary permissions as needed
|
||||||
EOT
|
EOT
|
||||||
}
|
}
|
||||||
|
|
@ -184,6 +192,7 @@ EOT
|
||||||
resource "vault_token" "management" {
|
resource "vault_token" "management" {
|
||||||
policies = [vault_policy.management.name]
|
policies = [vault_policy.management.name]
|
||||||
renewable = true
|
renewable = true
|
||||||
ttl = "1h"
|
ttl = "24h"
|
||||||
period = "15m"
|
renew_min_lease = "12h"
|
||||||
|
renew_increment = "24h"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -105,6 +105,12 @@ path "auth/token/lookup-self" {
|
||||||
path "auth/token/renew-self" {
|
path "auth/token/renew-self" {
|
||||||
capabilities = ["update"]
|
capabilities = ["update"]
|
||||||
}
|
}
|
||||||
|
path "auth/token/lookup-accessor" {
|
||||||
|
capabilities = ["update"]
|
||||||
|
}
|
||||||
|
path "auth/token/renew-accessor" {
|
||||||
|
capabilities = ["update"]
|
||||||
|
}
|
||||||
# Add other necessary permissions
|
# Add other necessary permissions
|
||||||
EOT
|
EOT
|
||||||
}
|
}
|
||||||
|
|
@ -112,6 +118,7 @@ EOT
|
||||||
resource "vault_token" "cluster" {
|
resource "vault_token" "cluster" {
|
||||||
policies = [vault_policy.cluster.name]
|
policies = [vault_policy.cluster.name]
|
||||||
renewable = true
|
renewable = true
|
||||||
ttl = "1h"
|
ttl = "24h"
|
||||||
period = "15m"
|
renew_min_lease = "12h"
|
||||||
|
renew_increment = "24h"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue