kiwigrid/keycloak-controller

Role not assigned in Keycloak although exists in kcc GCP store

jackalski opened this issue · 1 comments

Created new client with Keycloak controller with specific serviceAccountRealmRoles:

 kubectl -n myNamespace get kcc myClient -oyaml | yq '.spec.serviceAccountRealmRoles'
[
"admin"
]

It was not added to Keycloak, and token does not have it.

Issue was due to duplicate roles entry in defaultClientScopes