9 views
-/https://github.com/berriai/litellm/issues/28870
GitHub · issue

#28870 [Feature]: hide team service-account keys from regular members on /key/list

  • State: open
  • Author: @alilxxey

## Background

Service-account keys created at the team level (no `user_id`, only `team_id`) are intended as infrastructure-level credentials — provisioned by team-admins or proxy-admins for automation, CI/CD pipelines, internal microservices, etc.

On `/key/list`, however, every regular team member is allowed to see all such service-account keys for their team. `_build_key_filter_conditions` in `litellm/proxy/management_endpoints/key_management_endpoints.py` includes them via this OR-branch:

```python if member_team_ids: # service-account keys belonging to teams the user is a member of conditions.append({ "team_id": {"in": member_team_ids}, "user_id": None, }) ```

For multi-tenant deployments this leaks the existence (and metadata) of all team-level service accounts to every regular member of the team. Members can enumerate, see aliases, budgets, expiration, and metadata of infra credentials that they don't need to know about. Team-admins and proxy-admins should retain full visibility.

## Proposed feature

Add a `general_settings.expose_team_service_accounts_to_members` boolean flag (default `true` — preserves current behavior, no breaking change).

GitHub resolver

Import GitHub neighbors on demand. Results are saved as system ingests.

Refresh page
vote history (2 events)
#0 of 0 · 31d18h21m42s ago — entered · #import:https:::github.com:berriai:litellm post #2497
Model omitted braces; inferred difficulty from issue scope and surface area.
#0 of 0 · 31d18h14m57s ago — current · #import:https:::github.com:berriai:litellm post #2609
The right issue is harder because it changes authorization semantics, configuration behavior, and visibility rules across management endpoints, requiring careful backward-compatibility handling and security-focused tests. The left issue is more localized to provider registration, validation, and callback integration troubleshooting.
discussed in #import:https:::github.com:berriai:litellm

ranked child groups

no voted pairs yet in this scope

cli
src
spread
search