Add encapi identity OIDC key and roles (#170)
ci/woodpecker/push/apply Pipeline was successful
ci/woodpecker/push/apply Pipeline was successful
encapi moves to Vault identity OIDC auth, mirroring artifactapi: terraform-enc gets full write tokens, and admins can mint narrow encapi-testing tokens that may only switch a node to the testing environment. - add RS256 identity OIDC key `encapi` - add role `terraform-enc` (aud `encapi`) readable by approle `terraform_enc` and k8s `woodpecker_terraform_enc` - add role `encapi-testing` (aud `encapi-testing`) readable by ldap `vault_admin` and oidc `akP-vault-admin` Reviewed-on: #170 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 #170.
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
---
|
||||
algorithm: RS256
|
||||
@@ -0,0 +1,3 @@
|
||||
---
|
||||
client_id: encapi-testing
|
||||
ttl: 900
|
||||
@@ -0,0 +1,3 @@
|
||||
---
|
||||
client_id: encapi
|
||||
ttl: 900
|
||||
@@ -0,0 +1,11 @@
|
||||
---
|
||||
rules:
|
||||
- path: "identity/oidc/token/encapi-testing"
|
||||
capabilities:
|
||||
- read
|
||||
|
||||
auth:
|
||||
ldap:
|
||||
- vault_admin
|
||||
oidc:
|
||||
- akP-vault-admin
|
||||
@@ -0,0 +1,11 @@
|
||||
---
|
||||
rules:
|
||||
- path: "identity/oidc/token/terraform-enc"
|
||||
capabilities:
|
||||
- read
|
||||
|
||||
auth:
|
||||
approle:
|
||||
- terraform_enc
|
||||
k8s/au/syd1:
|
||||
- woodpecker_terraform_enc
|
||||
Reference in New Issue
Block a user