litellm/litellm-rust/crates/gateway-inference/tests
Yujong Lee f55f452726 refactor(rust): carry provider credentials as typed ConnectionArguments
Provider credentials and endpoint settings rode inside optional_params, and
every route treated them differently: chat dropped aws_* in the projection
while Bedrock Converse still read them from params, OCR re-admitted them
through its own allowlist, and transcription never filtered them. Each
provider then looked them up by string.

Every route request now carries a ConnectionArguments beside its params,
built only by keeping the connection names out of a call's arguments, and
the AWS, Azure and Vertex parsers read only from it. One row per setting in
auth-types/src/fields.rs names the kwargs, the env vars that back them and
whether the value is secret; is_connection_name and each auth crate's
SECRET_NAMES derive from the rows, and parsers read both the kwarg and its
env fallback through the same row.

secret_fields on chat, Messages and Responses now lists the call's secret
connection names, so caller credentials are redacted in logged kwargs.
Bedrock Messages honors per-call AWS credentials and the runtime endpoint.
Both chat CONFIG_PARAMS lists, OCR's per-provider auth lists and the second
AWS env fallback are gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 09:21:17 -07:00
..
support refactor(rust): rename litellm-core to litellm-inference (#44802) 2026-10-06 07:17:24 -07:00
caching.rs feat(cache): select Rust caching through explicit cache objects (#43601) 2026-09-29 00:01:44 +00:00
messages.rs feat(rust): separate gateway authentication and authorization (#43467) 2026-09-27 19:18:59 -07:00
ocr.rs refactor(rust): add shared llms wire type derives (#43730) 2026-09-29 09:19:33 -07:00
responses.rs feat(rust): separate gateway authentication and authorization (#43467) 2026-09-27 19:18:59 -07:00
routes.rs refactor(rust): carry provider credentials as typed ConnectionArguments 2026-10-08 09:21:17 -07:00