8 views
-/https://github.com/berriai/litellm/issues/33702
GitHub · issue

#33702 [Bug]: Admin UI cannot delete virtual keys referenced by JWT key mappings

  • State: open
  • Author: @srgustafson8
  • Labels: bug, ui-dashboard

### Check for existing issues

- [x] I have searched the existing issues and checked that my issue is not a duplicate.

### What happened?

A virtual key created through JWT auto_register cannot be deleted from the Admin UI. The deletion fails because LiteLLM_JWTKeyMapping still references the key. I expected deleting the key to remove its associated JWT mapping, or for the UI to offer to delete both. Instead, the UI exposes a foreign-key constraint error and leaves the records in place. Deleting the mapping first through POST `/jwt/key/mapping/delete` allows the key to be deleted. This appears related to the JWT key-mapping functionality introduced in [PR #22372](https://github.com/BerriAI/litellm/pull/22372).

### Steps to Reproduce

1. Configure JWT authentication with:

```yaml general_settings: enable_jwt_auth: true litellm_jwtauth: user_id_jwt_field: sub virtual_key_claim_field: sub unregistered_jwt_client_behavior: auto_register ```

2. Authenticate with a JWT identity that has not previously been registered. 3. Confirm that LiteLLM creates a JWT key mapping and virtual key. 4. Open the Admin UI and attempt to delete the virtual key. 5. Observe the foreign-ke…

GitHub resolver

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

Refresh page
vote history (2 events)
#0 of 0 · 31d19h3m43s ago — entered · #import:https:::github.com:berriai:litellm post #2127
The right-hand task requires a new cross-cutting request-path integration with configuration, provider/model behavior, observability, failure handling, and compatibility coverage. The left-hand task is comparatively localized to deletion workflow and referential-integrity handling across existing API/UI paths.
#0 of 0 · 31d18h18m26s ago — current · #import:https:::github.com:berriai:litellm post #2869
Model omitted braces; inferred difficulty from issue scope and surface area.
discussed in #import:https:::github.com:berriai:litellm

ranked child groups

no voted pairs yet in this scope

cli
src
spread
search