Skip to content

fix(mcp): derive MCP bridge and session keys with the FIPS provider's KBKDF - #50032

Merged
yucheng-berri merged 9 commits into
mainfrom
litellm_fips_b2_mcp_kdf
Nov 7, 2026
Merged

yucheng-berri merged 9 commits into
mainfrom
litellm_fips_b2_mcp_kdf

Conversation

@yucheng-berri

@yucheng-berri yucheng-berri commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Handwritten 1-3 sentence description

<make-me-human-readable>
With general_settings.fips_mode: true, every MCP gateway sign-in and every bridged MCP call failed with a 500, because the keys that sign those tokens were derived with scrypt, which a FIPS OpenSSL 3 refuses. With fips_mode on, those keys now come from the salt key through the FIPS provider's own key derivation, so MCP sign-in and bridged calls work. Without fips_mode nothing changes, on any OpenSSL, and tokens already issued keep working
</make-me-human-readable>

Details

TLDR

Problem this solves:

  • With fips_mode on, MCP session sign-in and bridge tokens always return 500
  • scrypt, used to derive their signing keys, is refused by FIPS OpenSSL 3
  • No workaround for bridge envelopes, RS256 only covers session tokens

How it solves it:

  • With general_settings.fips_mode: true, derive the three MCP keys from LITELLM_SALT_KEY
  • The switch is fips_mode_active(), B1's reader from feat(proxy): hash UI passwords with PBKDF2 in FIPS mode #49874, set when the boot gate accepts fips_mode
  • Derivation is SP 800-108r1 KBKDF run by the FIPS provider's EVP_KDF, fetched with fips=yes, from a helper in encrypt_decrypt_utils.py next to the other salt key helpers
  • The master key is the KBKDF context, so rotating it still signs everyone out
  • LITELLM_SALT_KEY must then be hex of at least 32 bytes
  • Without fips_mode, the scrypt keys are byte-identical on any OpenSSL, pinned by test vectors

Why the salt key and not the master key:

  • NIST SP 800-108r1 §4: "To comply with this Recommendation, a KDK shall be a cryptographic key"
  • The master key is a password, not a key. It is typed into the Admin UI login and sent in Authorization headers, and SP 800-57 Pt 1 r5 §5.1.1 defines a password as what "is used to acquire access to privileges"
  • A length check can't turn it into a key. SP 800-133r2 §6.2.3 counts a password's entropy as zero "unless the password is generated using an approved RBG", and the proxy can't tell how it was made
  • It would also give one key two jobs, and SP 800-57 Pt 1 r5 §5.2 says "a single key shall be used for only one purpose"
  • PBKDF2 over the master key doesn't fix it. FIPS 140-3 IG D.N says password-derived keys "may only be used in storage applications", and these keys sign tokens
  • The salt key is never typed or sent, and is only used to derive keys. IG D.M approves SP 800-108 KDFs when the KDK was "generated, entered or established using a method approved or allowed for keys in an approved mode", such as openssl rand -hex 32 run in the FIPS image, where every random generator comes from the fips provider
  • The fips provider also refuses KBKDF keys under 112 bits (SP 800-131Ar2 §8), so a short master key such as sk-1234 can't be a KDK at all. In the Chainguard image, openssl kdf ... KBKDF with it returns KDF parameter error
  • The master key stays in as the KBKDF context, so rotating it still signs everyone out

User Flow

Before: on a FIPS deployment, a user connecting an MCP client to the gateway can't sign in or call tools

  1. The proxy admin runs the proxy with general_settings.fips_mode: true on a FIPS host
  2. The user's MCP client registers at POST https://litellm-domain/register and signs in through https://litellm-domain/authorize
  3. The client's POST https://litellm-domain/token returns 500 Internal server error instead of a session token
  4. A bridged server's POST https://litellm-domain//token and POST https://litellm-domain/mcp/ also return 500

After: the same deployment signs the user in and serves tool calls

  1. The proxy admin runs the proxy with general_settings.fips_mode: true and LITELLM_SALT_KEY=sk-$(openssl rand -hex 32)
  2. The user's MCP client registers at POST https://litellm-domain/register and signs in through https://litellm-domain/authorize
  3. POST https://litellm-domain/token returns an llm_session_... token pair, and POST https://litellm-domain/mcp tool calls answer
  4. A bridged server's POST https://litellm-domain//token returns an llm_env_... token, and POST https://litellm-domain/mcp/ tool calls answer

Linear ticket

Resolves LIT-8426

Behavior changes

Removed / renamed

  • None

Silent regressions to watch

  • None without fips_mode: the scrypt keys are unchanged on any OpenSSL, so issued tokens keep opening
    • That includes a FIPS OpenSSL 1.1.1 host like RHEL 8, where scrypt works and MCP worked on main
  • With fips_mode: true, MCP session and bridge tokens are signed with keys from LITELLM_SALT_KEY, not master_key
    • These requests returned 500 on main, so no token minted with fips_mode on exists to break
    • A token minted without fips_mode stops opening once it is turned on (401, was 500)
    • Rotating master_key still invalidates them, since it is the KBKDF context
    • KBKDF is fetched with fips=yes, so if code in the process repoints OpenSSL's default provider after boot, these requests return 500 instead of using a non-FIPS key

Migration for existing customers

  • None without fips_mode. Deployments with fips_mode: true set LITELLM_SALT_KEY to sk-$(openssl rand -hex 32) or longer hex

Regression tests

  • test_envelope_keys_without_fips_stay_the_scrypt_keys_of_the_master_key and test_session_key_without_fips_stays_the_scrypt_key_of_the_master_key pin today's keys
  • test_envelope_keys_on_a_fips_openssl_without_fips_mode_stay_the_scrypt_keys and test_session_key_on_a_fips_openssl_without_fips_mode_stays_the_scrypt_key pin today's keys on a FIPS OpenSSL with fips_mode off
  • test_keys_under_fips_come_from_the_salt_key_are_distinct_and_the_same_on_every_call pins the three FIPS keys
  • test_keys_under_fips_all_change_when_the_master_key_rotates pins master key rotation under FIPS
  • test_envelope_keys_under_fips_refuse_a_salt_key_that_is_not_32_bytes_of_hex and test_session_key_under_fips_refuses_an_unset_salt_key pin the refusal
  • test_derive_key_from_salt_key_is_sp800_108_counter_mode_hmac_sha256 checks the KDF against the SP 800-108 formula computed by hand
  • test_derive_key_from_salt_key_refuses_an_openssl_without_a_fips_provider pins the fips=yes fetch

Mutations, each run on the four test files (141 tests) at 4842d13, red then restored green:

  • Session key switched back to openssl_enforces_fips(): 1 failed (FIPS OpenSSL without fips_mode)
  • Envelope keys switched back to openssl_enforces_fips(): 1 failed (same, envelope)
  • Boot gate never records fips_mode: 8 failed
  • Session key derived under the envelope signing label: 1 failed (distinct keys test)
  • FIPS branch removed from the session key: 2 failed
  • KBKDF digest SHA256 swapped for SHA384: 3 failed (formula and pinned FIPS keys)
  • Salt key minimum lowered from 32 to 16 bytes: 1 failed (refusal test)
  • Master key dropped from the KBKDF context: 4 failed (formula, pinned keys, rotation)

Pin mutations at 21abe3c, each run on test_encrypt_decrypt_utils.py and tests/unit/proxy/mcp_server/outbound_credentials (882 tests), red then restored green:

  • fips=yes query dropped: 1 failed (no-FIPS-provider test)
  • Query flipped to fips=no: 1 failed (same)
  • Fetch passes no query, constant kept: 1 failed (same)
  • Shared fips_openssl fixture keeps the pin: 4 failed, so the FIPS-mode tests run the real fetch

Pre-Submission checklist

  • I have added meaningful tests
  • The handful of test files covering my change pass locally, e.g. uv run pytest tests/unit/<your_test_file>.py -v
  • My PR passes all required CI/CD checks (e.g., lint, schema.d.ts sync check, etc.)
  • My PR's scope is as isolated as possible; it only solves 1 specific problem
  • Every automated review on my PR's latest commit has finished, and I have addressed or replied to each of its findings before requesting a maintainer review

Screenshots / Proof of Fix

Rig: a UBI 9 container with OpenSSL 3.5.8 and Red Hat's FIPS provider, CPython 3.13.14 and cryptography 50 built from source against that OpenSSL, plus Postgres 16. FIPS host means OPENSSL_CONF=/etc/ssl/openssl-fips.cnf, standard host means it is unset. All 225 migrations were applied with psql and the proxy ran with DISABLE_SCHEMA_UPDATE=true, because psycopg-binary breaks real migrations under OPENSSL_CONF. One worker, no Redis, so the QA recipe's two workers and shared Redis were dropped here. A scripted OAuth server and a local MCP server with an add tool sit behind the proxy. The Chainguard FIPS image results are in their own section at the end

general_settings:
  master_key: os.environ/LITELLM_MASTER_KEY
  database_url: os.environ/DATABASE_URL
  store_model_in_db: true
  fips_mode: true   # FIPS cases only
export LITELLM_MASTER_KEY=sk-$(openssl rand -hex 32) LITELLM_SALT_KEY=sk-$(openssl rand -hex 32)

Session sign-in is POST /register, GET /authorize with a UI session cookie, POST /authorize/complete, then POST /token with the code. The bridge server w5bridge is oauth_delegate with dcr_bridge: true. Tokens below are cut to their prefixes

Before (527d882)

fips_mode on, FIPS host

  1. POST /register, GET /authorize, POST /authorize/complete -> 201, 303, 303 with code=llm_gcode_...
  2. POST /token grant authorization_code -> 500 {"error":{"message":"Internal server error","type":"internal_server_error"}}
  3. POST /introspect with any session token, real or garbage -> the same 500
  4. POST /mcp with Bearer llm_session_... -> 500 {"error":"MCP request failed","details":"[digital envelope routines] unsupported"}
  5. POST /w5bridge/token -> 500, and POST /mcp/w5bridge with Bearer llm_env_... -> the same /mcp 500
  6. Proxy log: ValueError: [digital envelope routines] unsupported raised by hashlib.scrypt

FIPS host, fips_mode unset

  1. Same requests as above -> the same 500s

Standard host

  1. POST /token -> 200 llm_session_... pair, POST /mcp tools/call add(20, 22) -> 200 42
  2. POST /w5bridge/token -> 200 llm_env_... pair, POST /mcp/w5bridge tools/call -> 200 42

After (c63dc85)

The tip 3a3b8d3 only merges main: 5e24d9b drops the enforce_fips_mode docstring, 02d65fe takes #50305, whose OpenSSL check probes scrypt instead of MD5, so the test fakes refuse scrypt now, and 3a3b8d3 takes #49874, which lands fips_mode_active() and the shared fips_openssl and fips_mode test fixtures, so this branch drops its copies. None touches the key code, and with fips_mode unset the gate never runs that check. 4842d13 then moves the KBKDF helper from fips.py into encrypt_decrypt_utils.py, and its test into test_encrypt_decrypt_utils.py, with the code unchanged, so fips.py matches main again. 21abe3c then fetches KBKDF with fips=yes, so the derivation can't leave the FIPS provider, with the same key bytes

fips_mode on, FIPS host

  1. POST /register, GET /authorize, POST /authorize/complete -> 201, 303, 303 with code=llm_gcode_...
  2. POST /token grant authorization_code -> 200 {"token_type":"Bearer","expires_in":3600,"access_token":"llm_session_...","refresh_token":"llm_srefresh_..."}
  3. POST /introspect access and refresh -> 200 active: true, kinds session and session_refresh
  4. POST /mcp initialize, tools/list, tools/call add(20, 22) -> 200, ['w5bridge-add', 'w5math-add'], 42
  5. POST /token grant refresh_token -> 200 new pair, then POST /revoke -> 200, and the revoked token's refresh -> 400 invalid_grant "the refresh token was revoked"
  6. POST /w5bridge/token -> 200 llm_env_... pair, POST /mcp/w5bridge tools/call -> 200 42, and the MCP server got Authorization: Bearer up-access-...
  7. Bridge refresh grant -> 200 new pair, tools/call -> 200 42
  8. Garbage llm_session_not.a.token on /mcp and llm_env_not.an.envelope on /mcp/w5bridge -> 401 with WWW-Authenticate: Bearer error="invalid_token", and introspect -> active: false
  9. Proxy log has no ValueError, scrypt or digital envelope line

FIPS host, fips_mode unset

  1. Same as main: POST /token, POST /introspect, POST /w5bridge/token -> 500 Internal server error
  2. POST /mcp and POST /mcp/w5bridge -> 500 {"error":"MCP request failed","details":"[digital envelope routines] unsupported"}
  3. Turning fips_mode on fixes these, as in the case above

RHEL 8 FIPS host (OpenSSL 1.1.1k), fips_mode unset, base vs head

UBI 8 with openssl-libs-1.1.1k-18.el8_6, system Python 3.12, FIPS forced with OPENSSL_FORCE_FIPS_MODE=1, Postgres 16. OpenSSL 1.1.1 FIPS still allows scrypt, so MCP worked here on main

  1. Base: POST /token 200 pair, introspect active: true, /mcp initialize 200, refresh 200, garbage introspect active: false, garbage /mcp 401
  2. Head on the same DB: base's access and refresh tokens introspect active: true, /mcp initialize 200, base's refresh 200
  3. Head mints its own: the same results as base, and the proxy log has no ValueError or LITELLM_SALT_KEY line
  4. With LITELLM_SALT_KEY unset, base and head give the same results again
  5. Direct call: session_keys_from_master_key and envelope_keys_from_master_key return the same keys on base and head, with the salt key set or unset
  6. fips_mode: true can't boot there on main or head: the gate needs cryptography's OpenSSL in FIPS mode, and cryptography 47+ requires OpenSSL 3
  7. Bridge servers couldn't be created there on base or head: POST /v1/mcp/server returns 500 ('digest_size' is an invalid keyword argument for openssl_blake2b()), an existing main issue

Standard host, tokens minted on base open on head

  1. Base proxy mints a session pair and a bridge pair, then stops; head boots on the same DB with the same keys
  2. POST /introspect base access and refresh -> 200 active: true
  3. POST /mcp tools/call with base's access token -> 200 42, and the refresh grant with base's refresh token -> 200
  4. POST /mcp/w5bridge tools/call with base's llm_env_ -> 200 42, and the bridge refresh with base's llm_refresh_ -> 200
  5. Head mints and opens its own session and bridge tokens the same way -> 200 42

A standard host's token presented under FIPS

  1. Head's standard-host access, refresh and llm_env_ tokens sent to the fips_mode on proxy -> introspect active: false, /mcp 401 invalid_token, refresh grants 400 invalid_grant

fips_mode on with LITELLM_SALT_KEY=sk-1234

  1. The proxy boots and admin routes work
  2. POST /token, POST /introspect, POST /w5bridge/token -> 500 Internal server error, and the OAuth server gets no request
  3. POST /mcp -> 500 {"error":"MCP request failed","details":"With general_settings.fips_mode on, LITELLM_SALT_KEY must be at least 32 bytes of hex, such as sk-$(openssl rand -hex 32)"}

fips_mode on, master key rotated

  1. Sign in and mint a session pair and a bridge pair, then restart with a new LITELLM_MASTER_KEY, same salt key and DB
  2. Old access and refresh -> introspect active: false, /mcp 401 invalid_token, refresh 400 invalid_grant
  3. Old llm_env_ -> /mcp/w5bridge 401, old llm_refresh_ -> 400 invalid_grant, and the OAuth server gets no request
  4. A fresh sign-in under the new master key -> /token 200, /mcp tools/call 200 42, bridge tools/call 200 42

fips_mode on with RS256 mcp_session_token_signing

  1. Session sign-in, introspect, /mcp tools/call, refresh -> all 200 on the RS256 key as on main
  2. Bridge mint and tools/call -> 200 42

The key derivation runs in the FIPS provider

hex() { printf %s "$1" | od -An -tx1 | tr -d ' \n'; }
H=$(openssl rand -hex 32); M=sk-$(openssl rand -hex 32)
openssl kdf -keylen 32 -kdfopt mac:HMAC -kdfopt digest:SHA256 -kdfopt hexkey:$H \
  -kdfopt hexsalt:$(hex litellm-mcp-gateway:session-signing:) -kdfopt hexinfo:$(hex "$M") KBKDF
LITELLM_SALT_KEY=sk-$H M=$M python -c 'import os; from litellm.proxy.common_utils import encrypt_decrypt_utils as e; print(e.derive_key_from_salt_key(b"litellm-mcp-gateway:session-signing:", os.environ["M"].encode()))'
OPENSSL_CONF /etc/ssl/openssl-fips.cnf | get_fips_mode 1 | openssl_enforces_fips() True
EVP_KDF_fetch(KBKDF) comes from provider: fips
enforce_fips_mode(fips_mode: true) accepted | fips_mode_active() True
derive_key_from_salt_key(session label, master key bytes) -> 32 bytes | equals openssl kdf KBKDF CLI output: True
production keys for the same master key equal the CLI output: session signing True | envelope signing True | envelope encryption True
rotated master key, same salt key: all three keys differ: True True True
hashlib.scrypt in the same process: ValueError [digital envelope routines] unsupported

Chainguard FIPS image

litellm-fips-b2cg:head, built from #50330's docker/Dockerfile.fips: OpenSSL 4.0.3 with the Chainguard FIPS Provider 3.4.0 (CMVP #5132), CPython 3.13.18. This branch's four files at 21abe3c are mounted over the image's copies, and 4842d13's files are the comparison. Same results under the image defaults and CHAINGUARD_LEGACY_ALLOWED=0

In-process probe after enforce_fips_mode(fips_mode: true), with code in the process then changing OpenSSL's default properties:

after the boot gate                      KBKDF fetch: no query -> fips, fips=yes -> fips | MCP keys equal the SP 800-108 formula
EVP_default_properties_enable_fips(0)    no query -> fips, fips=yes -> fips | MCP keys, same bytes
EVP_set_default_properties(provider=default)
                                         no query -> default, fips=yes -> NOT FOUND
  4842d1388df                            MCP keys returned, derived in the default provider
  21abe3c59d3                            ValueError: OpenSSL could not run KBKDF

Live proxy through the image's own entrypoint, with Postgres 16, a scripted OAuth server and a local MCP server:

  1. fips_mode on: /register 201, /login 303, /authorize/complete 303, /token 200, /mcp tools/call add(20, 22) -> 200 42, refresh 200 then 3
  2. Bridge mint 200, /mcp/w2bridge tools/call -> 200 42, bridge refresh 200 then 11, garbage tokens -> 401 invalid_token
  3. The live session token verifies under the KBKDF key and not the scrypt key, and the live llm_env_ envelope opens only under the KBKDF keys
  4. fips_mode on, LITELLM_SALT_KEY unset: /token and bridge mint -> 500 with no upstream request, /mcp -> 500 with the salt key message
  5. fips_mode unset: head and base give the same [digital envelope routines] unsupported 500s

Unit at 21abe3c: test_encrypt_decrypt_utils.py plus tests/unit/proxy/mcp_server/outbound_credentials pass, 882 tests, on Python 3.12 with OpenSSL 3.0.13, and tests/unit/proxy/common_utils, tests/unit/proxy/mcp_server and the seven other test files that use the shared FIPS fixtures give 10592 passed and 1 skipped. The ruff strict, type discipline, test quality and type check gates are OK against a94118c. The full tests/unit/proxy sweep ran at 3a3b8d3, before the move, and gave 50908 passed and 7 failed. 5 of those 7 fail on base a94118c too (test_input_tokens.py), and the other 2 (test_lifecycle.py) pass on head and base when run alone

Type

🐛 Bug Fix

Caveats (if any)

Severe

  • Turning fips_mode on for an existing deployment signs out its MCP clients
    • Their session and bridge tokens get 401 or invalid_grant, so they sign in again
    • FIPS is for new deployments only, and with fips_mode on those requests returned 500 on main

Medium

  • A bad LITELLM_SALT_KEY with fips_mode on fails on the first MCP token request, not at boot
    • /token and bridge mint return a plain 500, /mcp shows the format message
  • The bridge envelope still encrypts its inner grant with PyNaCl, outside the FIPS module
    • Only the key derivation changes here, the cipher is a separate slice

Low

Final Attestation

  • The tests check the right things, including the edge cases, and regressions in the respective real-world customer use-cases are not possible after this PR

Note

High Risk
Changes authentication/signing key derivation for MCP tokens under FIPS mode and introduces ctypes/OpenSSL FIPS-provider dependency; invalid or missing salt keys surface as runtime 500s on MCP token routes.

Overview
When general_settings.fips_mode is enabled, MCP bridge envelope and session signing keys no longer use hashlib.scrypt (blocked on FIPS OpenSSL 3). They are derived via a new derive_key_from_salt_key helper in encrypt_decrypt_utils, which runs SP 800-108 counter-mode KBKDF (HMAC-SHA256) through OpenSSL’s FIPS EVP_KDF with fips=yes, using LITELLM_SALT_KEY as the KDF key and the master key as context.

envelope_keys_from_master_key and session_keys_from_master_key branch on fips_mode_active(): FIPS path uses KBKDF with domain-specific labels; otherwise behavior and scrypt test vectors are unchanged. With FIPS on, LITELLM_SALT_KEY must be at least 32 bytes of hex (optional sk- prefix) or derivation raises ValueError.

Tests add KBKDF correctness and FIPS-provider requirements, pin scrypt vs FIPS key material, and extend shared FIPS fixtures (including cache clearing for lru_cache key helpers).

Reviewed by Cursor Bugbot for commit 21abe3c. Bugbot is set up for automated code reviews on this repo. Configure here.

… KBKDF

With OpenSSL enforcing FIPS, hashlib.scrypt raises, so every MCP session
token and bridge envelope request failed with a 500. Under FIPS the keys
now come from LITELLM_SALT_KEY through SP 800-108r1 KBKDF run by the
provider's EVP_KDF. Without FIPS the scrypt keys are unchanged
@veria-ai

veria-ai Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

PR overview

All previously flagged issues have been addressed. No open security concerns remain on this pull request.

Security review

No open security issues remain on this pull request.

Fixed/addressed: 1 · PR risk: 0/10

@codspeed

codspeed Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

✅ 43 untouched benchmarks


Comparing litellm_fips_b2_mcp_kdf (21abe3c) with main (cdbb487)

Open in CodSpeed

@codecov

codecov Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Pass the master key as the KBKDF context, so rotating it changes the
three FIPS-mode keys as it changes the scrypt keys
@yucheng-berri

Copy link
Copy Markdown
Contributor Author

bugbot run

@greptile-apps

greptile-apps Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge, with no new actionable issues established.

Summary

This PR derives MCP session and bridge keys through OpenSSL KBKDF when fips_mode is enabled. The latest change requires fips=yes when fetching KBKDF.

  • MCP session and bridge keys use the FIPS provider when FIPS mode is on.

Reviews (8) · Last reviewed commit: "Pin the MCP key KBKDF fetch to the FIPS ..." · Reviewed by Greptile

Comment thread litellm/proxy/common_utils/fips.py Resolved

@cursor cursor Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

@yucheng-berri

Copy link
Copy Markdown
Contributor Author

bugbot run

@cursor cursor Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

…de is on

On a FIPS OpenSSL 1.1.1 host (RHEL 8) scrypt still works, so keying the switch on
openssl_enforces_fips() sent those hosts to the OpenSSL 3 only KBKDF and broke MCP
sessions and bridge envelopes that worked on main. fips_mode_active() is the same
reader B1 adds, set by enforce_fips_mode at startup.
@yucheng-berri

Copy link
Copy Markdown
Contributor Author

bugbot run

Comment thread litellm/proxy/common_utils/fips.py Resolved

@cursor cursor Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

# Conflicts:
#	litellm/proxy/common_utils/fips.py
@yucheng-berri

Copy link
Copy Markdown
Contributor Author

bugbot run

@cursor cursor Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

@CLAassistant

CLAassistant commented Nov 5, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

# Conflicts:
#	tests/unit/proxy/common_utils/test_fips.py
@yucheng-berri

Copy link
Copy Markdown
Contributor Author

@greptileai

@yucheng-berri

Copy link
Copy Markdown
Contributor Author

bugbot run

@cursor cursor Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

#49874 landed fips_mode_active, so this branch drops its copy and its
test fixtures now build on the shared fips_openssl and fips_mode ones.
@yucheng-berri

Copy link
Copy Markdown
Contributor Author

@greptileai

@yucheng-berri

Copy link
Copy Markdown
Contributor Author

bugbot run

@cursor cursor Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

The KBKDF helper derives keys from LITELLM_SALT_KEY, so it now sits next to the other salt key helpers, and fips.py goes back to main's version.
@yucheng-berri

Copy link
Copy Markdown
Contributor Author

@greptileai

@yucheng-berri

Copy link
Copy Markdown
Contributor Author

bugbot run

@cursor cursor Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

Fetch KBKDF with the property query fips=yes, so a change to the process's default
properties after boot can't move the derivation to a non-FIPS provider. The shared
fips_openssl test fixture drops the pin, since the test OpenSSL has no FIPS provider.
@yucheng-berri

Copy link
Copy Markdown
Contributor Author

bugbot run

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 21abe3c. Configure here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants