feat: add packer-builder role
- limit access to workstation and gitea runners
This commit is contained in:
parent
e4d80e42dc
commit
f83ba13158
15
auth_approle_packer_builder.tf
Normal file
15
auth_approle_packer_builder.tf
Normal 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",
|
||||
]
|
||||
}
|
||||
@ -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",
|
||||
]
|
||||
|
||||
3
policies/kv/service/packer/packer-builder.hcl
Normal file
3
policies/kv/service/packer/packer-builder.hcl
Normal file
@ -0,0 +1,3 @@
|
||||
path "kv/data/service/packer/builder/env" {
|
||||
capabilities = ["read"]
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user