Skip to content

Permission Management - disable global guardrails by key/team - #16983

Merged
7 commits merged into
mainfrom
litellm_dev_11_22_2025_p2
Nov 22, 2025
Merged

Permission Management - disable global guardrails by key/team#16983
7 commits merged into
mainfrom
litellm_dev_11_22_2025_p2

Conversation

@ghost

@ghost ghost commented Nov 22, 2025

Copy link
Copy Markdown

Title

Screenshot 2025-11-22 at 3 41 18 PM

Relevant issues

Allows admin to disable global guardrails by key/team

Pre-Submission checklist

Please complete all items before asking a LiteLLM maintainer to review your PR

  • I have Added testing in the tests/litellm/ directory, Adding at least 1 test is a hard requirement - see details
  • I have added a screenshot of my new test passing locally
  • My PR passes all unit tests on make test-unit
  • My PR's scope is as isolated as possible, it only solves 1 specific problem

Type

🆕 New Feature
🐛 Bug Fix
🧹 Refactoring
📖 Documentation
🚄 Infrastructure
✅ Test

Changes

@vercel

vercel Bot commented Nov 22, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
litellm Error Error Nov 22, 2025 11:42pm

@ghost
ghost merged commit e11d34e into main Nov 22, 2025
10 of 57 checks passed
@ishaan-berri
ishaan-berri deleted the litellm_dev_11_22_2025_p2 branch March 26, 2026 21:52
rmabon added a commit to rmabon/litellm that referenced this pull request Apr 10, 2026
Rename disable_global_guardrail → disable_global_guardrails to match
the key name used by litellm_pre_call_utils.py, the API endpoints,
and the UI when propagating key/team metadata.

The singular form was introduced in PR BerriAI#16983 and has never matched
the plural form written by the rest of the codebase, so the feature
silently did nothing.
ryan-crabbe-berri added a commit that referenced this pull request Apr 12, 2026
Rename disable_global_guardrail → disable_global_guardrails to match
the key name used by litellm_pre_call_utils.py, the API endpoints,
and the UI when propagating key/team metadata.

The singular form was introduced in PR #16983 and has never matched
the plural form written by the rest of the codebase, so the feature
silently did nothing.

Re-applies fix originally from #25488. Original commit could not be
merged due to missing signature.

Co-Authored-By: Remi Mabon <remi.mabon@redcare-pharmacy.com>
fzowl pushed a commit to fzowl/litellm that referenced this pull request Jun 24, 2026
…I#16983)

* feat(teams.py): param for disabling guardrails by team

allows use-case where you don't run global guardrails for team - only run team-specific guardrails

* feat(custom_guardrail.py): add support for disabling global guardrails

only run guardrails requested for in the request/key/team

* feat: support adding disable_global_guardrails to metadata if present in key/team metadata

* feat(create_key_button.tsx): new disable global guardrails field

* feat(key_edit_view.tsx): support disabling global guardrails on key edit

* feat(teams.tsx): add disable global guardrails on create team on UI

* feat(team_info.tsx): allow disabling global guardrails on team update
fzowl pushed a commit to fzowl/litellm that referenced this pull request Jun 24, 2026
Rename disable_global_guardrail → disable_global_guardrails to match
the key name used by litellm_pre_call_utils.py, the API endpoints,
and the UI when propagating key/team metadata.

The singular form was introduced in PR BerriAI#16983 and has never matched
the plural form written by the rest of the codebase, so the feature
silently did nothing.

Re-applies fix originally from BerriAI#25488. Original commit could not be
merged due to missing signature.

Co-Authored-By: Remi Mabon <remi.mabon@redcare-pharmacy.com>
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants