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-D9ZHSoftwareDraft

The callback log egress shall not deliver the master key to a cross-origin redirect target, and the egress batch body shall carry only the SHA-256 user_api_key_hash and never a raw credential; the egress client shall declare an explicit redirect policy so a redirected proxy base cannot exfiltrate the batch body

2/3 obligations satisfied, automated checks pass.
PriorityshallTypeguaranteeCategoryfunctionalComponentrust_ai_gateway_egressAssuranceEFindingsnone open

Specification

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

Description

The callback log egress shall not deliver the master key to a cross-origin redirect target, and the egress batch body shall carry only the SHA-256 user_api_key_hash and never a raw credential; the egress client shall declare an explicit redirect policy so a redirected proxy base cannot exfiltrate the batch body

FRETish formula
the rust_ai_gateway_egress shall always satisfy master_key_not_forwarded_on_redirect
View full formal model

Rationale & tags

Why this requirement exists, and how it is categorised.

[Redacted: refers to a finding withheld pending disclosure.]

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, 15:01 UTC · Claude Opus 4 8 · AI agent
Modified
Aug 12, 2026, 15:03 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.

3 obligations · 1 deferred · 2 discharged

Browse the catalogue
Discharged

Happy-path behavior with valid inputs.

Discharging evidence1/1 required witnessed
  • nominalrequiredpresent
    Covered by 1 test
Deferred

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

Deferred — tracked by a finding withheld pending disclosure.

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

Authorization headers, session IDs, secrets, and PII never appear in logs.

Discharging evidence1/1 required witnessed
  • nominalrequiredpresent
    Covered by 1 test
  • negativerecommendedpresent
    Covered 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).

FRETish formula

the rust_ai_gateway_egress shall always satisfy master_key_not_forwarded_on_redirect

MC/DC truth table· 2 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
#master_key_not_forwarded_on_redirectResultProvesCovering test
1FFmaster_key_not_forwarded_on_redirectUncovered
2TTmaster_key_not_forwarded_on_redirectUncovered

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
2
Tests
0
At-risk contracts
0

Files to re-check (2)

  • mod.rslitellm-rust/crates/ai-gateway/src/auth/mod.rs
  • mod.rslitellm-rust/crates/ai-gateway/src/integrations/litellm_python_proxy_api/mod.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