diff --git a/config/auth_approle_role/approle/terraform_git.yaml b/config/auth_approle_role/approle/terraform_git.yaml new file mode 100644 index 0000000..cec109a --- /dev/null +++ b/config/auth_approle_role/approle/terraform_git.yaml @@ -0,0 +1,9 @@ +token_ttl: 120 +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 diff --git a/policies/consul_root/au/syd1/creds/terraform-git.yaml b/policies/consul_root/au/syd1/creds/terraform-git.yaml index 228f586..f5db59c 100644 --- a/policies/consul_root/au/syd1/creds/terraform-git.yaml +++ b/policies/consul_root/au/syd1/creds/terraform-git.yaml @@ -5,5 +5,7 @@ rules: - read auth: + approle: + - terraform_git k8s/au/syd1: - woodpecker_terraform_git diff --git a/policies/kv/service/gitea/gitadmin/tokens/terraform-git/read.yaml b/policies/kv/service/gitea/gitadmin/tokens/terraform-git/read.yaml new file mode 100644 index 0000000..bc2dfc1 --- /dev/null +++ b/policies/kv/service/gitea/gitadmin/tokens/terraform-git/read.yaml @@ -0,0 +1,12 @@ +# Allow reading Gitea admin token +--- +rules: + - path: "kv/data/service/gitea/gitadmin/tokens/terraform-git" + capabilities: + - read + +auth: + approle: + - terraform_git + k8s/au/syd1: + - woodpecker_terraform_git