feat: add puppetapi approle/policy
This commit is contained in:
parent
bfda3f2f72
commit
63dd355311
14
auth_approle_puppetapi.tf
Normal file
14
auth_approle_puppetapi.tf
Normal file
@ -0,0 +1,14 @@
|
||||
resource "vault_approle_auth_backend_role" "puppetapi" {
|
||||
role_name = "puppetapi"
|
||||
bind_secret_id = false
|
||||
token_policies = ["puppetapi_read_tokens"]
|
||||
token_ttl = 30
|
||||
token_max_ttl = 30
|
||||
token_bound_cidrs = [
|
||||
"198.18.17.3/32",
|
||||
"198.18.13.32/32",
|
||||
"198.18.13.33/32",
|
||||
"198.18.13.34/32",
|
||||
"198.18.13.46/32"
|
||||
]
|
||||
}
|
||||
@ -11,7 +11,8 @@ locals {
|
||||
"policies/rundeck",
|
||||
"policies/ssh-host-signer",
|
||||
"policies/sshca",
|
||||
"policies/kv/service/glauth/services"
|
||||
"policies/kv/service/glauth/services",
|
||||
"policies/kv/service/puppetapi",
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
3
policies/kv/service/puppetapi/puppetapi_read_tokens.hcl
Normal file
3
policies/kv/service/puppetapi/puppetapi_read_tokens.hcl
Normal file
@ -0,0 +1,3 @@
|
||||
path "kv/data/service/puppetapi/tokens" {
|
||||
capabilities = ["read"]
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user