Proof Portal

Project overview

litellm

BerriAI117 findings · 107 requirements

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

93 withheld (location undisclosed)

All requirements
RequirementINT-REQ-260812-CBLKInterfaceReview

The OCR handler-to-shared-reqwest-client interface shall bound outbound concurrency with a bulkhead and shall apply an explicit redirect policy that never forwards provider credentials cross-origin.

0/2 obligations satisfied, automated checks pass.
PriorityshallTypeguaranteeCategoryinterfaceComponentai_gateway_ocr_clientAssuranceCFindingsnone open

Specification

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

Description

The OCR handler-to-shared-reqwest-client interface shall bound outbound concurrency with a bulkhead and shall apply an explicit redirect policy that never forwards provider credentials cross-origin. Today execute_ocr_provider_call and poll_document_intelligence issue calls on the process-wide http_client, which has no semaphore and the default redirect policy (follow up to 10). Both controls are absent and tracked as debt

Rationale & tags

Why this requirement exists, and how it is categorised.

The shared reqwest client is the boundary every outbound OCR/audio call crosses. Its concurrency bound and redirect policy were unspecified as a Rust-subject interface requirement; the two controls are absent and owned by existing KIs

rustoutbound-httpinterface

Verification & provenance

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

Assurance levelC
Formalizationnone
Strategyinformal

Review

Status
pending

History

Created
Aug 12, 2026, 18:30 UTC · Claude Opus 4 8 · AI agent
Modified
Aug 12, 2026, 18:30 UTC · Claude Opus 4 8 · AI agent

Hazard review

Reviewed Aug 12, 2026, 18:30 UTCby agent:claude-opus-4-8catalog v1.3.0
  • domainreviewed

    Both controls that would own the shared clients network behavior are absent in the Rust gateway and owned by existing characterization-backed KIs; the integrated call path itself is witnessed by an integration test

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 deferred

Browse the catalogue
Deferred

Outbound concurrency to each external dependency shall be capped (semaphore / bulkhead / circuit breaker) so that one stalled dependency cannot exhaust caller capacity.

Worst case if violatedMedium

With no bulkhead, enough concurrent calls to a slow or degraded upstream (each held up to the 600s client ceiling) exhaust connections, file descriptors, and async workers, head-of-line-blocking every proxy client on the gateway

Deferred — tracked by a finding withheld pending disclosure.

Discharging evidence0/1 required witnessed
  • nominalrequireddeferred
    Witnessing deferred — accepted while the tracking known issue stays open.
  • negativerecommendedpresent
    Covered by 1 test
Deferred

HTTP clients shall declare their redirect-following policy (max hops, scheme/host invariants, header propagation).

Worst case if violatedMedium

A caller- or config-controlled api_base that 3xx-redirects cross-origin makes the shared client forward the Ocp-Apim-Subscription-Key (and the request body) to an attacker sink, exfiltrating a live provider credential

Deferred — tracked by a finding withheld pending disclosure.

Discharging evidence0/1 required witnessed
  • nominalrequireddeferred
    Witnessing deferred — accepted while the tracking known issue stays open.
  • negativerecommendedpresent
    Covered by 1 test

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.

Impact

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

If you change this

Requirements
0
Files
1
Tests
1
At-risk contracts
0

Files to re-check (1)

  • common_utils.rslitellm-rust/crates/ai-gateway/src/ocr/common_utils.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.

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