Merge pull request 'feat: add rpmbuilder approle' (#34) from benvin/rpmbuilder into master

Reviewed-on: #34
This commit is contained in:
Ben Vincent 2025-11-29 18:01:37 +11:00
commit 3a2ecc9b23
3 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,16 @@
resource "vault_approle_auth_backend_role" "rpmbuilder" {
role_name = "rpmbuilder"
bind_secret_id = false
token_policies = [
"kv/service/github/neoloc/tokens/read-only-token",
"kv/service/gitea/unkinben/tokens/read-only-packages",
]
token_ttl = 30
token_max_ttl = 30
token_bound_cidrs = [
"10.10.12.200/32",
"198.18.25.102/32",
"198.18.26.91/32",
"198.18.27.40/32",
]
}

View File

@ -0,0 +1,3 @@
path "kv/data/service/gitea/unkinben/tokens/read-only-packages" {
capabilities = ["read"]
}

View File

@ -0,0 +1,3 @@
path "kv/data/service/github/neoloc/tokens/read-only-token" {
capabilities = ["read"]
}