Extend terraform-git Vault token and Consul lease TTLs (#186)
ci/woodpecker/push/apply Pipeline was successful
ci/woodpecker/push/apply Pipeline was successful
terraform-git's Consul lease (max_ttl 300s) and its Vault parent token expire before a long apply finishes, so the state save fails with `403 ACL not found` and resources created during the apply are lost from state. - Raise consul role `terraform-git` to ttl 1800 / max_ttl 3600 - Raise k8s role `woodpecker_terraform_git` to token_ttl/token_max_ttl 3600 - Raise approle `terraform_git` to token_ttl/token_max_ttl 3600 Reviewed-on: #186 Co-authored-by: unkin-agent <unkin-agent@unkin.net> Co-committed-by: unkin-agent <unkin-agent@unkin.net>
This commit was merged in pull request #186.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
token_ttl: 120
|
||||
token_max_ttl: 120
|
||||
token_ttl: 3600
|
||||
token_max_ttl: 3600
|
||||
bind_secret_id: false
|
||||
token_bound_cidrs:
|
||||
- "10.10.12.200/32"
|
||||
|
||||
@@ -2,6 +2,6 @@ bound_service_account_names:
|
||||
- terraform-git
|
||||
bound_service_account_namespaces:
|
||||
- woodpecker
|
||||
token_ttl: 600
|
||||
token_max_ttl: 600
|
||||
token_ttl: 3600
|
||||
token_max_ttl: 3600
|
||||
audience: https://kubernetes.default.svc.cluster.local
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
consul_roles:
|
||||
- terraform-git
|
||||
ttl: 120
|
||||
max_ttl: 300
|
||||
ttl: 1800
|
||||
max_ttl: 3600
|
||||
datacenters: []
|
||||
|
||||
Reference in New Issue
Block a user