i would like to give certain user groups access to a subset of the flyteadmin resources via HTTP/grpc using oauth2. I configured Keycloak but don't know which scopes or claims i have to assign. As I understand it, the scope "all" gives access to everything. Can someone give me a hint?
David Espejo (he/him)
07/18/2023, 4:16 PM
Hi @Tim Hebbeler and welcome to the Flyte community.
I think what you mean here is more in the field of Role Based Access Control (RBAC) and the associated roles and privileges a user/group could enact after a successful authentication flow. If that's the case, that's not currently offered in OSS Flyte but on the managed service.
The `scopes`that can be configured in an IdP (Keycloak in this case) are Open ID scopes and they refer to what portions of the user's data can be accessed by the client application. So, for example, the
scope would give the client app access to the users' email address.
The internal auth server in Flyte is a wrapper for fosite yes. The current "integration" I see is only when, say, Keycloak provides identity only (OIDC) and Flyte's internal server performs the complete auth flows. Integration at a different level would be an interesting contribution I think 🙂