Krish Dholakia and GitHub
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
..
2025-01-17 20:20:49 -08:00
2025-01-01 18:33:20 -08:00
2025-01-01 18:33:20 -08:00
2025-01-01 18:33:20 -08:00
2024-06-05 17:20:57 -07:00
2024-01-29 09:43:55 -08:00
2024-09-17 23:00:04 -07:00
2024-06-03 13:39:38 -07:00
2024-02-28 21:25:39 -08:00
2024-06-14 19:04:16 -07: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-10-17 22:51:55 -07:00
2024-02-23 21:49:40 +05:30
2024-12-16 22:18:22 -08:00
2024-12-23 21:38:56 -08:00
2023-09-08 06:35:02 -07:00
2023-10-23 10:10:55 -07:00
2023-10-23 09:36:11 -07:00
2023-10-23 09:36:11 -07:00
2023-10-23 09:36:11 -07:00
2023-10-13 20:16:31 -07:00
2023-10-13 20:16:31 -07:00
2023-08-31 17:23:46 -07:00
2025-01-28 16:27:06 -08:00
2024-05-29 17:46:47 -07:00
2024-06-19 15:04:01 -07:00
2024-09-25 15:46:13 -07:00
2024-06-19 15:04:01 -07:00
2024-06-12 14:16:31 -07:00
2024-05-17 15:31:02 -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
2024-06-03 12:40:22 -07:00
2023-10-25 17:07:53 -07:00
2023-12-01 21:28:46 -08:00
2024-05-25 18:07:36 -07:00
2024-03-27 21:04:51 -07:00
2023-08-22 14:50:17 +03:00
2024-04-04 21:28:28 -07:00
2024-04-04 21:28:28 -07:00
2024-04-04 21:28:28 -07:00
2024-08-01 15:23:17 -07:00
2024-12-27 15:01:56 -08:00
2024-12-27 15:01:56 -08:00
2024-12-23 22:02:52 -08:00
2024-01-29 09:43:55 -08:00
2024-01-29 09:43:55 -08:00
2024-10-07 18:11:20 +05:30
2024-10-07 18:11:20 +05:30
2024-10-07 18:11:20 +05:30
2025-01-04 11:35:59 -08:00
2025-01-04 11:35:59 -08:00
2025-01-01 18:35:05 -08:00
2023-08-30 16:05:33 -07:00
2023-09-07 21:11:37 -07:00
2025-01-01 18:33:20 -08:00
2024-06-05 17:20:57 -07:00
2024-05-16 15:30:33 -07:00
2024-05-16 13:24:04 -07:00
2024-12-21 21:24:16 -08:00
2024-12-14 11:56:55 -08:00
2024-12-20 13:30:16 -08:00
2023-11-15 14:29:14 -08:00
2024-09-27 07:49:47 -07:00
2024-09-27 07:49:47 -07:00
2023-08-31 12:18:39 -07:00
2024-07-17 16:37:24 -07:00
2023-10-18 12:13:39 -07:00
2023-11-24 17:09:38 -08:00
2024-02-21 22:07:40 -08:00
2024-09-07 15:49:51 -07:00
2024-04-20 09:30:28 -07:00
2024-04-20 09:30:28 -07:00
2024-04-20 09:30:28 -07:00
2024-04-20 09:30:28 -07:00
2024-03-15 07:37:50 -07:00
2023-08-25 19:20:35 -07:00
2024-02-10 17:26:04 -08:00
2024-02-07 11:38:27 -08:00
2024-02-07 11:38:27 -08:00
2024-02-07 11:38:27 -08:00
2024-02-07 11:38:27 -08:00
2024-12-26 19:05:27 -08:00
2024-10-03 18:02:28 -04:00
2024-10-04 16:56:34 +05:30
2024-10-04 16:56:34 +05:30
2024-10-04 16:56:34 +05:30
2024-03-15 07:37:50 -07:00
2024-03-08 15:18:06 -08:00
2024-05-21 11:07:40 +04:00
2025-01-15 15:00:25 -08:00
2024-08-07 19:58:36 -07:00
2025-01-21 20:56:48 -08:00
2024-11-15 11:18:31 +05:30
2024-06-01 09:01:05 -07:00
2024-06-13 14:28:43 -07:00
2023-11-06 18:57:50 -08:00
2024-06-11 13:17:41 -07:00
2024-05-01 18:31:45 -07:00
2024-05-01 18:31:45 -07:00
2024-10-10 18:27:50 +05:30
2024-11-21 05:20:37 +05:30
2024-06-11 14:25:33 -07:00
2025-01-01 07:12:51 -08:00
2025-01-01 07:12:51 -08:00
2024-02-12 21:40:34 -08:00
2024-12-20 13:30:16 -08:00
2023-08-26 12:33:47 -07:00
2024-06-28 17:53:13 -07:00
2024-06-11 13:35:22 -07:00
2024-07-23 11:40:26 -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
2024-11-26 12:54:38 +05:30
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
2023-10-19 09:32:29 -07:00
2025-01-07 22:35:07 -08:00
2024-01-22 15:15:34 -08:00
2024-01-24 12:17:23 -08:00
2023-10-23 10:10:55 -07:00
2024-06-19 15:04:01 -07:00
2023-08-25 18:34:46 -07:00
2023-08-25 18:34:46 -07:00
2023-11-24 17:09:38 -08:00
2023-10-18 19:37:12 +02:00
2024-02-03 20:43:43 -08:00
2024-06-05 17:20:57 -07:00
2024-07-16 17:56:06 -07:00
2024-07-16 17:56:06 -07: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
2024-06-05 17:20:57 -07:00
2024-07-16 17:56:06 -07:00
2023-10-17 18:15:58 -07:00