Compare commits

..

2 Commits

Author SHA1 Message Date
51bc3fffc0 Merge pull request 'feat: add terraform-ldap service' (#54) from benvin/terraform-ldap into master
Reviewed-on: #54
2026-02-15 13:40:32 +11:00
dca26029c0 feat: add terraform-ldap service
- add consul role/policy/acls to allow terraform-ldap state management
- add approle to generate tokens for consul
2026-02-15 13:38:31 +11:00
4 changed files with 31 additions and 0 deletions

View 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

View File

@ -0,0 +1,5 @@
consul_roles:
- terraform-ldap
ttl: 60
max_ttl: 60
datacenters: []

View 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

View File

@ -0,0 +1,7 @@
key_prefix "infra/terraform/ldap/" {
policy = "write"
}
session_prefix "" {
policy = "write"
}