mirror of
https://github.com/BerriAI/litellm.git
synced 2026-12-05 01:59:27 +00:00
`lite login` mints a self-contained encrypted UserAPIKeyAuth blob rather than a virtual key, so nothing about the session was stored server side and the auth path authenticated it by decrypting it. An admin had no way to see who held a live CLI credential and no way to cut one off before it expired. Every login now registers a row in LiteLLM_CLISessionTable, keyed by the sha256 of the session token, and the auth path refuses a session whose row is revoked. The lookup is cached in the shared auth DualCache for DEFAULT_IN_MEMORY_TTL, so a session costs one read per cache interval per replica and a revoke converges on every replica within that same interval. A CLI Sessions page in the dashboard lists the sessions with their user, issue time and expiry, and revokes one. Registration is fail-closed: a session that cannot be recorded is never handed to the CLI, since it could never be revoked. Sessions minted before this change have no row and keep working until they expire. A lookup that cannot reach the database follows the proxy-wide allow_requests_on_db_unavailable posture rather than inventing its own, so the credential's availability during an outage is whatever the operator already chose for every other DB-backed auth read. |
||
|---|---|---|
| .. | ||
| public | ||
| scripts | ||
| src | ||
| tests | ||
| .env.development | ||
| .env.production | ||
| .npmrc | ||
| .nvmrc | ||
| .prettierignore | ||
| .prettierrc | ||
| build_release_ui.sh | ||
| build_ui.sh | ||
| build_ui_custom_path.sh | ||
| CLAUDE.md | ||
| components.json | ||
| eslint-budgets.json | ||
| eslint-suppressions.json | ||
| eslint.config.mjs | ||
| knip.json | ||
| next.config.mjs | ||
| package-lock.json | ||
| package.json | ||
| postcss.config.js | ||
| README.md | ||
| tsconfig.json | ||
| tsconfig.tsbuildinfo | ||
| vitest.config.ts | ||
This is a Next.js project bootstrapped with create-next-app.
Getting Started
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.
This project uses next/font to automatically optimize and load Inter, a custom Google Font.
Learn More
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
Deploy on Vercel
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.