litellm/tests/test_litellm/proxy/agent_endpoints
milan dd6a6e2fdf fix(agents): stop treating an empty agent permission set as unrestricted
A key restricted to one agent inside a team restricted to another intersected to an
empty list, and every caller read an empty list as 'no restrictions set', so adding
the second restriction handed the key every agent on the proxy. The same empty list
came out of the except blocks around the permission lookups, so a database outage
widened access the same way.

Resolution now returns a tagged union of unrestricted, restricted to a concrete set,
or unresolvable, and the callers match on it: a restricted caller with no agents left
reaches none, and a grant that cannot be read denies rather than allows.

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-08-03 22:12:12 +00:00
..
auth fix(agents): stop treating an empty agent permission set as unrestricted 2026-08-03 22:12:12 +00:00
__init__.py [Feat] Agent Gateway - Allow tracking request / response in "Logs" Page (#17449) 2025-12-03 18:57:18 -08:00
test_a2a_endpoints.py feat(a2a): support a2a-sdk 1.x proxy routing for 0.3 and 1.0 agents (#30950) 2026-06-29 09:32:39 +05:30
test_a2a_version_e2e.py feat(a2a): support a2a-sdk 1.x proxy routing for 0.3 and 1.0 agents (#30950) 2026-06-29 09:32:39 +05:30
test_agent_header_isolation.py feat(a2a): support a2a-sdk 1.x proxy routing for 0.3 and 1.0 agents (#30950) 2026-06-29 09:32:39 +05:30
test_agent_headers.py fix(a2a): forward agent_extra_headers through completion bridge (#28277) 2026-06-11 21:56:18 -07:00
test_agent_registry.py fix(a2a): keep config-defined agents registered and accept the documented agents: key (#35163) 2026-08-01 12:39:13 -07:00
test_databricks_oauth.py Support OAuth M2M for Databricks Apps A2A agents (#29586) 2026-06-04 23:03:37 -07:00
test_endpoints.py fix(a2a): reject malformed protocolVersion suffixes while keeping semver prereleases 2026-07-21 13:24:58 -07:00
test_model_list_helpers.py fix(agents): stop treating an empty agent permission set as unrestricted 2026-08-03 22:12:12 +00:00