dotfiles/hashicorp/vault/vault.toothpick.vault-policy.hcl
Magic_RB f237370f02
Update vault.toothpick vault policy to 24h
Signed-off-by: Magic_RB <magic_rb@redalder.org>
2021-10-05 21:47:09 +02:00

67 lines
1.4 KiB
HCL

path "auth/cert/certs/vault.toothpick" {
capabilities = [ "update" ]
allowed_parameters = {
ttl = [ "24h" ]
policies = [ "vault.toothpick" ]
display_name = [ "vault.toothpick" ]
certificate = []
}
}
path "pki_dynra/issue/vault.toothpick" {
capabilities = [ "update" ]
allowed_parameters = {
common_name = [ "vault.toothpick.dyn.redalder.org" ]
ttl = [ "24h" ]
alt_names = [ "localhost" ]
ip_sans = [ "127.0.0.1" ]
}
}
path "pki_dynra/issue/consul.toothpick" {
capabilities = [ "update" ]
allowed_parameters = {
common_name = [ "consul.toothpick.dyn.redalder.org" ]
ttl = [ "24h" ]
alt_names = [ "localhost" ]
ip_sans = [ "127.0.0.1" ]
}
}
path "pki_dynta/cert/ca" {
capabilities = [ "read" ]
allowed_parameters = {}
}
path "kv/data/systems/toothpick/nomad" {
capabilities = [ "read" ]
allowed_parameters = {}
}
path "kv/data/systems/toothpick/consul" {
capabilities = [ "read" ]
allowed_parameters = {}
}
# Consul Managed PKI Mounts
path "/sys/mounts" {
capabilities = [ "read" ]
}
path "/sys/mounts/connect_root" {
capabilities = [ "create", "read", "update", "delete", "list" ]
}
path "/sys/mounts/connect_inter" {
capabilities = [ "create", "read", "update", "delete", "list" ]
}
path "/connect_root/*" {
capabilities = [ "create", "read", "update", "delete", "list" ]
}
path "/connect_inter/*" {
capabilities = [ "create", "read", "update", "delete", "list" ]
}