Proof Portal

Project overview

litellm

BerriAI117 findings · 107 requirements

LiteLLM Python->Rust migration audit (proof mirroring).

93 withheld (location undisclosed)

All requirements
RequirementSW-REQ-260812-0HHMSoftwareDraft

When a deployment-pinned api_key is configured for a routed call (responses, audio transcription, or ocr) and the client request supplies a blank api_key (empty string or null), the proxy/Router credential selection SHALL NOT let the blank value clobber the deployment credential and fall through to a host process provider secret (OPENAI_API_KEY / MISTRAL_API_KEY / DEEPGRAM_API_KEY).

Automated checks pass.
PriorityshallTypeguaranteeCategoryfunctionalComponentproxy_credential_selectionAssuranceEFindingsnone open

Specification

The requirement exactly as authored — its complete prose text and, where present, the formal FRETish sentence it compiles to.

Description

When a deployment-pinned api_key is configured for a routed call (responses, audio transcription, or ocr) and the client request supplies a blank api_key (empty string or null), the proxy/Router credential selection SHALL NOT let the blank value clobber the deployment credential and fall through to a host process provider secret (OPENAI_API_KEY / MISTRAL_API_KEY / DEEPGRAM_API_KEY). The deployment-pinned credential SHALL be used to sign the outbound request, or the request SHALL be rejected. A blank api_key is treated as omitted, not as an override. This does not govern direct SDK use with no deployment key configured, where empty-key env fallback is the normal SDK contract.

FRETish formula
when (deploy_key_configured & client_api_key_blank) the proxy_credential_selection shall always satisfy ((deploy_key_used | request_rejected) & (! host_env_secret_promoted))
View full formal model

Verification & provenance

How this requirement was checked: the review trail, edit history, and the machine-analysis status terms (each ⓘ explains what it means).

Assurance levelE
Formalizationvalid
Strategyfretish

Review

Status
pending

History

Created
Aug 12, 2026, 19:13 UTC · Claude Code · AI agent
Modified
Aug 12, 2026, 19:13 UTC · Claude Code · AI agent

Change history

Every recorded revision of this requirement's source file — newest first, each with its commit message and the diff for that change.

Obligations

What this requirement must witness to be considered satisfied — the required evidence, and the tests that discharge each one.

The tests that discharge each obligation need a synced audit

The evidence matrix behind each obligation comes from the audit index, which is produced by running an audit — not read from git. Nothing here means unknown — not that the requirement has no obligations.

Formula evidence

The formal formula behind this requirement, the variables it is written over, and the tests that exercise it (each term is explained inline).

FRETish formula

when (deploy_key_configured & client_api_key_blank) the proxy_credential_selection shall always satisfy ((deploy_key_used | request_rejected) & (! host_env_secret_promoted))

MC/DC truth table· 7 rows

Each row assigns the formula's conditions (T/F) and shows the Result— the formula's value for that input row, not a test pass/fail. A row proves a condition when flipping only that condition flips the outcome. The test that covers each row is linked.

Covereda test exercises this rowExempteda reviewed mcdc:ignoreNo-actionfalse-result row satisfied by designUncoveredneeds a covering test
#client_api_key_blankdeploy_key_configureddeploy_key_usedhost_env_secret_promotedrequest_rejectedResultProvesCovering test
1FTTTTTclient_api_key_blankUncovered
2TFTTTTdeploy_key_configuredUncovered
3TTFFFFdeploy_key_usedUncovered
4TTFFTTrequest_rejectedUncovered
5TTTFFTdeploy_key_usedUncovered
6TTTFTThost_env_secret_promotedUncovered
7TTTTTFclient_api_key_blankUncovered

Its place

How this requirement connects — what proves it, what it affects, and what it rests on. Authored links only here; automatically derived links come from the audit index.

Loading graph…

Trace evidence

The concrete artifacts linked to this requirement — implementing code, verifying tests, documents, and the findings raised against it.

No implementation linked

No source files are traced to this requirement yet.

Impact

Blast radius — authored trace links only (automatically derived links come from the audit index and aren't shown here).

If you change this

Nothing downstream depends on this yet

No downstream impact — "When a deployment-pinned api_key is configured for a routed…" has no downstream edges.

What this rests on

Discussions

Discuss this with the proof team. Nothing changes in your audit automatically — you open a request and a staff member records any outcome inside the thread.

Sign in to discuss this with the proof team.Sign in