Bind UI/CLI session tokens to their own AES-GCM context

refactor(auth): bind UI/CLI session tokens to their own AES-GCM context
Bind UI/CLI session tokens to their own AES-GCM context1d5fdc-refactor-bind-ui-cli-session-tokens-to-cve-2026-114612refactorbind cli session tokens own aes

Committed by yuneng-berri

commit message
refactor(auth): bind UI/CLI session tokens to their own AES-GCM context

Backport of BerriAI/litellm-private#5 (12981f93d3) onto stable/1.102.x, applied as
the PR's net diff so main-only intermediate refactors stay out.
 
The dashboard and lite CLI SSO specs under tests/e2e/ui/oidc are left out
because this line has no OIDC e2e harness to run them.

Editor assessment

This commit patches CVE-2026-114612. The subject and auth scope are clear, and the body explains the backport mechanics: the private PR, the net-diff approach, and which stable branch received it. What it never explains is why the token binding changed - the security rationale for giving UI/CLI session tokens their own AES-GCM context lives only in the private PR. For a backport that may be intentional, but as a commit message it teaches process rather than purpose. Clean structure, thin content. Formally the header and auth scope are correct and the body is properly separated; the only thing missing is the security rationale, which the private PR references but never states.

Browse categories

More refactor examples · Back to search