Proof Portal
litellm
BerriAI117 findings · 107 requirementsLiteLLM Python->Rust migration audit (proof mirroring).
93 withheld (location undisclosed)
validate_environment builds an Authorization Bearer header from a resolved api_key (the api_key parameter, else the AZURE_AI_API_KEY env var), raising ValueError when no key resolves and again when no api_base resolves (parameter else AZURE_AI_API_BASE env var); it preserves caller-supplied headers, sets Content-Type application/json, and never logs the key
Specification
The requirement exactly as authored — its complete prose text and, where present, the formal FRETish sentence it compiles to.
validate_environment builds an Authorization Bearer header from a resolved api_key (the api_key parameter, else the AZURE_AI_API_KEY env var), raising ValueError when no key resolves and again when no api_base resolves (parameter else AZURE_AI_API_BASE env var); it preserves caller-supplied headers, sets Content-Type application/json, and never logs the key
the azure_ocr shall always satisfy (bearer_header_built <-> (!api_key_absent & !api_base_absent))
Verification & provenance
How this requirement was checked: the review trail, edit history, and the machine-analysis status terms (each ⓘ explains what it means).
Review
- Status
- pending
History
- Created
- Aug 1, 2026, 20:52 UTC · Claude Opus 4 8 · AI agent
- Modified
- Aug 1, 2026, 20:53 UTC · Claude Opus 4 8 · 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.
2 obligations · 2 discharged
Browse the catalogueHappy-path behavior with valid inputs.
- nominalrequiredpresentNo covering test recorded
Authorization headers, session IDs, secrets, and PII never appear in logs.
If the Azure AI API key or the assembled Authorization Bearer header is written to debug/verbose logs, anyone with access to log aggregation, support bundles, or a shared console exfiltrates a live Azure AI credential and can bill usage to the customer and read every document they submit
- nominalrequiredpresentCovered by 1 test
- negativerecommendedpresentCovered by 1 test
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).
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
the azure_ocr shall always satisfy (bearer_header_built <-> (!api_key_absent & !api_base_absent))
MC/DC truth table· 4 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.
mcdc:ignoreNo-actionfalse-result row satisfied by designUncoveredneeds a covering test| # | api_base_absent | api_key_absent | bearer_header_built | Result | Proves | Covering test |
|---|---|---|---|---|---|---|
| 1 | F | F | F | F | api_base_absent | Exempted · defensive — when both key and base resolve the Bearer header is always built, so a both-present-yet-no-header state is a correctness violation unreachable in a correct build (positive row api_base_absent=F,api_key_absent=F,bearer_header_built=T is witnessed) (reviewed: agent:claude-opus-4-8) |
| 2 | F | F | T | T | bearer_header_built | — |
| 3 | F | T | F | T | api_key_absent | — |
| 4 | T | F | F | T | api_base_absent | — |
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.
Mirrors
Ports this requirement participates in — it carries a reviewed exemption on one side, or a finding raised against it is tracked as part of the port.
Mirrors
Ports this requirement participates in — it carries a reviewed exemption on one side, or a finding raised against it is tracked as part of the port.
- Azure AI OCR: Python -> RustMIR-007DiffersPython → RustView in Mirrors
Impact
Blast radius — authored trace links only (automatically derived links come from the audit index and aren't shown here).
Impact
Blast radius — authored trace links only (automatically derived links come from the audit index and aren't shown here).
If you change this
Files to re-check (2)
- transformation.pylitellm/llms/azure_ai/ocr/transformation.py
- transformation.rslitellm-rust/crates/core/src/providers/azure_ai/ocr/transformation.rs
Tests to re-run (1)
- tests.rslitellm-rust/crates/ai-gateway/src/ocr/tests.rs
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.