Add LiteLLM RBAC: akP-litellm groups + role claim mapping #10
Reference in New Issue
Block a user
Delete Branch "benvin/litellm-rbac"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
Bring LiteLLM into the two-tier Authentik RBAC and map groups to LiteLLM roles (admin vs user), so
akR-global-adminmembers become LiteLLM proxy admins automatically.Change
akR-global-admin/akR-standard-user.role_mappingson oauth2 providers (reusable): emits an app role claim computed from effective (hierarchical) group membership — first matching rule wins, else default.litellm_role=proxy_admin(akP-litellm-admin) /internal_user(akP-litellm-user) /internal_user_view_only(default). LiteLLM reads it viaGENERIC_USER_ROLE_ATTRIBUTE(paired argocd-apps change).Validation
terragrunt plan: 5 to add (2 perm groups, 2 access bindings, 1 role mapping), 3 to change (roles gain akP-litellm-*; litellm provider gets the role mapping). Generated role expression renders correctly.Pairs with
argocd-apps#268 (adds
litellm_roleto GENERIC_SCOPE +GENERIC_USER_ROLE_ATTRIBUTE=litellm_role).