Skip to content

Commit 5551f1f

Browse files
authored
feat: m2m service-group read access path for kubeconfig configurable ttl (#136)
1 parent a2867ae commit 5551f1f

File tree

1 file changed

+8
-0
lines changed
  • deployment/charts/cluster-connect-gateway/files/openpolicyagent

1 file changed

+8
-0
lines changed

deployment/charts/cluster-connect-gateway/files/openpolicyagent/policy.rego

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,11 @@ allow if {
1212
role := sprintf("%s_cl-rw", [input.project_id])
1313

1414
have_role if role == input.realm_access.roles[_]
15+
16+
allow if service_group_access
17+
18+
service_group_access if {
19+
"apps-m2m-service-account" in input.groups
20+
"clusters-read-role" in input.realm_access.roles
21+
input.preferred_username == "service-account-co-manager-m2m-client"
22+
}

0 commit comments

Comments
 (0)