Skip to content

Feat(ai-gateway): Add model/provider access controls on virtual keys#3625

Merged
gorkem-bwl merged 5 commits intodevelopfrom
feature/virtual-key-model-provider-acls
Mar 31, 2026
Merged

Feat(ai-gateway): Add model/provider access controls on virtual keys#3625
gorkem-bwl merged 5 commits intodevelopfrom
feature/virtual-key-model-provider-acls

Conversation

@Br0wnHammer
Copy link
Copy Markdown
Member

Describe your changes

  • Adds 4 new fields to virtual keys — allowed_models, blocked_models, allowed_providers, blocked_providers — enabling admins to restrict which models and providers a key can access
  • Enforces ACLs at proxy time with 403 responses, supporting wildcard patterns (e.g. claude-haiku*)
  • Includes frontend fields in the create modal and ACL chips on key cards

Please ensure all items are checked off before requesting a review:

  • I deployed the code locally.
  • I have performed a self-review of my code.
  • I have included the issue # in the PR.
  • I have labelled the PR correctly.
  • The issue I am working on is assigned to me.
  • I have avoided using hardcoded values to ensure scalability and maintain consistency across the application.
  • I have ensured that font sizes, color choices, and other UI elements are referenced from the theme.
  • My pull request is focused and addresses a single, specific feature.
  • If there are UI changes, I have attached a screenshot or video to this PR.

@Br0wnHammer Br0wnHammer added this to the 2.3 milestone Mar 27, 2026
@Br0wnHammer Br0wnHammer requested a review from gorkem-bwl March 27, 2026 19:23
@Br0wnHammer Br0wnHammer self-assigned this Mar 27, 2026
@Br0wnHammer Br0wnHammer added enhancement New feature or request ai-feature AI-powered feature labels Mar 27, 2026
@gorkem-bwl gorkem-bwl merged commit abbc251 into develop Mar 31, 2026
3 of 4 checks passed
@gorkem-bwl gorkem-bwl deleted the feature/virtual-key-model-provider-acls branch March 31, 2026 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai-feature AI-powered feature enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants