Files
litellm/docs/my-website/img
Krish DholakiaandGitHub 2eaa0079f2 feat(handle_jwt.py): initial commit adding custom RBAC support on jwt… (#8037)
* feat(handle_jwt.py): initial commit adding custom RBAC support on jwt auth

allows admin to define user role field and allowed roles which map to 'internal_user' on litellm

* fix(auth_checks.py): ensure user allowed to access model, when calling via personal keys

Fixes https://github.com/BerriAI/litellm/issues/8029

* feat(handle_jwt.py): support role based access with model permission control on proxy

Allows admin to just grant users roles on IDP (e.g. Azure AD/Keycloak) and user can immediately start calling models

* docs(rbac): add docs on rbac for model access control

make it clear how admin can use roles to control model access on proxy

* fix: fix linting errors

* test(test_user_api_key_auth.py): add unit testing to ensure rbac role is correctly enforced

* test(test_user_api_key_auth.py): add more testing

* test(test_users.py): add unit testing to ensure user model access is always checked for new keys

Resolves https://github.com/BerriAI/litellm/issues/8029

* test: fix unit test

* fix(dot_notation_indexing.py): fix typing to work with python 3.8
2025-01-28 16:27:06 -08:00
..
2024-01-29 09:43:55 -08:00
2024-02-28 21:25:39 -08:00
2023-08-24 15:39:41 -07:00
2024-08-19 14:36:55 -07:00
2024-08-19 14:36:55 -07:00
2024-08-19 14:36:55 -07:00
2024-12-23 21:38:56 -08:00
2023-09-08 06:35:02 -07:00
2023-08-31 17:23:46 -07:00
2024-06-12 14:16:31 -07:00
2023-08-24 09:34:41 -07:00
2023-08-24 15:39:41 -07:00
2024-03-18 17:06:00 -07:00
2023-12-01 21:28:46 -08:00
2024-05-25 18:07:36 -07:00
2023-08-22 14:50:17 +03:00
2024-08-01 15:23:17 -07:00
2024-01-29 09:43:55 -08:00
2024-01-29 09:43:55 -08:00
2023-08-30 16:05:33 -07:00
2023-08-31 12:18:39 -07:00
2024-07-17 16:37:24 -07:00
2023-11-24 17:09:38 -08:00
2024-09-07 15:49:51 -07:00
2024-02-10 17:26:04 -08:00
2024-03-08 15:18:06 -08:00
2024-06-11 14:25:33 -07:00
2023-08-26 12:33:47 -07:00
2023-10-24 21:28:37 -07:00
2023-10-24 21:28:37 -07:00
2024-06-29 11:35:57 -07:00
2023-09-04 21:53:52 -07:00
2023-09-04 21:53:52 -07:00
2023-09-04 21:53:52 -07:00
2023-09-04 21:53:52 -07:00
2023-10-27 16:33:12 -07:00
2025-01-07 22:35:07 -08:00
2024-01-24 12:17:23 -08:00
2023-10-23 10:10:55 -07:00
2023-11-24 17:09:38 -08:00
2024-02-03 20:43:43 -08:00
2024-12-27 21:41:21 -08:00
2024-01-31 19:54:04 -08:00
2024-06-13 20:54:08 -07:00
2023-10-17 18:15:58 -07:00