diff --git a/scripts/create-host/generators.py b/scripts/create-host/generators.py index bd1f1da..a202a39 100644 --- a/scripts/create-host/generators.py +++ b/scripts/create-host/generators.py @@ -144,7 +144,7 @@ resource "vault_approle_auth_backend_role" "generated_hosts" { backend = vault_auth_backend.approle.path role_name = each.key - token_policies = ["host-\${each.key}"] + token_policies = ["host-\${each.key}", "homelab-deploy"] secret_id_ttl = 0 # Never expire (wrapped tokens provide time limit) token_ttl = 3600 token_max_ttl = 3600 diff --git a/terraform/vault/hosts-generated.tf b/terraform/vault/hosts-generated.tf index 630a7bb..72def73 100644 --- a/terraform/vault/hosts-generated.tf +++ b/terraform/vault/hosts-generated.tf @@ -50,7 +50,7 @@ resource "vault_approle_auth_backend_role" "generated_hosts" { backend = vault_auth_backend.approle.path role_name = each.key - token_policies = ["host-${each.key}"] + token_policies = ["host-${each.key}", "homelab-deploy"] secret_id_ttl = 0 # Never expire (wrapped tokens provide time limit) token_ttl = 3600 token_max_ttl = 3600