feat: add packer-builder role

- limit access to workstation and gitea runners
This commit is contained in:
Ben Vincent 2025-01-11 21:01:17 +11:00
parent e4d80e42dc
commit f83ba13158
3 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,15 @@
resource "vault_approle_auth_backend_role" "packer_builder" {
role_name = "terraform_nomad"
bind_secret_id = false
token_policies = [
"default_access",
"packer_builder",
]
token_ttl = 60
token_max_ttl = 120
token_bound_cidrs = [
"10.10.12.200/32",
"198.18.13.67/32",
"198.18.13.68/32",
]
}

View File

@ -13,6 +13,7 @@ locals {
"policies/sshca",
"policies/kv/service/glauth/services",
"policies/kv/service/incus",
"policies/kv/service/packer",
"policies/kv/service/puppetapi",
"policies/kv/service/terraform",
]

View File

@ -0,0 +1,3 @@
path "kv/data/service/packer/builder/env" {
capabilities = ["read"]
}