TECHNOLOGY

LiteLLM spend logs distinguish authorized customer identity from asserted user labels

In this article
THE QUICK TAKE

Review stored identity provenance as well as display labels; an Asserted user field cannot substitute for the customer hierarchy used at authorization.

LiteLLM v1.111.0-dev.2, released on November 13 as a prerelease, improves customer identity in spend logs. Labels come from the authorized snapshot, legacy user-only identity is marked Asserted, and customer details move below metrics. The important operational distinction is provenance: a caller-supplied user string should not appear to prove that another customer hierarchy was authorized for the request.

Use recognizable names and stable identifiers

Create synthetic organization, team and member names that differ from their identifiers. Inspect the collapsed customer details, copy the IDs and follow the scope links available to the reviewer. Human-readable labels help investigation, but stable IDs are needed to reconcile a log with a budget row. Two customers sharing a display name should remain distinguishable without guessing from the request’s free-form user field.

Rejected identity must not become trusted history

Send a harmless request asserting a customer outside the synthetic key’s authorized scope. Inspect its refusal log and ensure it does not persist that other customer’s hierarchy as authorized context. Logging the caller’s assertion can be useful when clearly identified, but promoting it to a trusted relationship can mislead incident review. The evidence should show both the supplied value and the gateway’s actual authorization outcome where the product exposes them.

Snapshot labels describe the recorded decision

Rename a synthetic customer after a request has completed, then inspect the older log. The implementation persists aliases from the authorized snapshot without an extra log-time lookup. Establish the expected historical meaning before comparing labels with today’s management page. A name that differs from current configuration may accurately describe the earlier decision. Keep identifier equality in the comparison so a legitimate historical rename is not confused with cross-customer attribution.

Legacy assertions need an honest interpretation

Open a legacy user-only record beside a fully authorized customer record and inspect the Asserted distinction. Test the reviewer’s ability to reach the right scope without inventing missing relationships. This release improves evidence presentation and persistence; it does not retroactively authenticate every historical user string. A useful adoption record contains a denied assertion, an authorized snapshot, a rename comparison and a legacy case, showing how each supports a different conclusion.

Sources

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles