feat: add terraform-ldap service
- add consul role/policy/acls to allow terraform-ldap state management - add approle to generate tokens for consul
This commit is contained in:
parent
d398911108
commit
dca26029c0
9
config/auth_approle_role/approle/terraform_ldap.yaml
Normal file
9
config/auth_approle_role/approle/terraform_ldap.yaml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
token_ttl: 60
|
||||||
|
token_max_ttl: 120
|
||||||
|
bind_secret_id: false
|
||||||
|
token_bound_cidrs:
|
||||||
|
- "10.10.12.200/32"
|
||||||
|
- "198.18.25.102/32"
|
||||||
|
- "198.18.26.91/32"
|
||||||
|
- "198.18.27.40/32"
|
||||||
|
use_deterministic_role_id: true
|
||||||
@ -0,0 +1,5 @@
|
|||||||
|
consul_roles:
|
||||||
|
- terraform-ldap
|
||||||
|
ttl: 60
|
||||||
|
max_ttl: 60
|
||||||
|
datacenters: []
|
||||||
10
policies/consul_root/au/syd1/creds/terraform-ldap.yaml
Normal file
10
policies/consul_root/au/syd1/creds/terraform-ldap.yaml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
# generate credentials for the terraform-ldap role in consul
|
||||||
|
---
|
||||||
|
rules:
|
||||||
|
- path: "consul_root/au/syd1/creds/terraform-ldap"
|
||||||
|
capabilities:
|
||||||
|
- read
|
||||||
|
|
||||||
|
auth:
|
||||||
|
approle:
|
||||||
|
- terraform_ldap
|
||||||
@ -0,0 +1,7 @@
|
|||||||
|
key_prefix "infra/terraform/ldap/" {
|
||||||
|
policy = "write"
|
||||||
|
}
|
||||||
|
|
||||||
|
session_prefix "" {
|
||||||
|
policy = "write"
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user