﻿# LiteLLM applies access-group checks when a resource pins its deployment

Reuse a synthetic resource ID with allowed and denied keys and assert provider access is checked; routing identity is not itself an authorization grant.

Author: Retrivium team
Updated: 2026-11-15
Canonical URL: https://retrivium.ai/journal/week46-agent-litellm-pinned-deployment-access-groups/
Language: en

LiteLLM v1.111.0-dev.2, released on November 13 as a prerelease, enforces access groups on requests pinned to a deployment. A stored resource identifier can determine routing, but should not bypass the caller’s deployment permissions. Acceptance should separate knowing a resource ID from being permitted to use the deployment that owns it, while preserving legitimate explicit and wildcard grants.

## Pin two callers to the same synthetic resource

Create an inert stored resource through a private test deployment, then address it with keys in allowed and unrelated access groups. Instrument the provider boundary and assert the denied request stops before upstream access. A final error is insufficient if the provider already returned private data to an intermediate logger. Keep resource content synthetic and compare the selected deployment identity for both attempts.

## Known identity must not override permission

Repeat through the resource operations the application supports, such as retrieval and deletion, using inert fixtures. A resource ID is useful routing evidence but not an invitation to skip ordinary filters. Preserve the original owner and request identity in diagnostics. Avoid client workarounds that retry a denied pin against a public alias, because that can change the authorization question and conceal the rejected deployment’s ownership.

## Legitimate broad grants remain controls

Exercise explicit deployment permission, owning-group permission and a supported wildcard grant. The implementation preserves those paths, so a fixture that rejects every pinned request would not prove correctness. Keep the expected authorization matrix written before execution. A permitted caller should reach the intended upstream resource without accidentally broadening another key’s rights or requiring the application to discard useful deployment affinity.

## Review routing and authorization as paired decisions

Report resolved deployment, authenticated key scope, upstream-call observation and final outcome for each fixture. The release repairs a shared router boundary and does not establish every provider resource policy. No real confidential resources are needed to prove the control. A useful migration shows that pins retain correct routing while permissions still apply, and that existing allowed callers continue working without treating opaque identifiers as bearer authority.

## Sources

- [LiteLLM v1.111.0-dev.2 prerelease notes](https://github.com/BerriAI/litellm/releases/tag/v1.111.0-dev.2)
- [LiteLLM implementation and review #51442](https://github.com/BerriAI/litellm/pull/51442)

## Related reading

- [LiteLLM Proxy: when to operate your own model gateway](/journal/litellm-proxy-guide/)
- [LiteLLM virtual keys: separate access for each application](/journal/litellm-virtual-key-scopes/)
