Repository navigation
Revert "feat(proxy): add LITELLM_FIPS_MODE startup gate with provider assertion and loud password migration failure" (#42700) - #46740
Conversation
|
Automatic reviews are disabled for this repository. |
There was a problem hiding this comment.
Devin Review found 2 potential issues.
1 flag not posted on this PR by your GitHub settings — view it in Devin Review. (Configure)
| enforce_fips_boot_verdict( | ||
| fips_boot_verdict( | ||
| raw_fips_mode=os.getenv(FIPS_MODE_ENV_VAR), | ||
| provider_enforces_fips=openssl_enforces_fips, | ||
| ssl_verify_environment=os.getenv(SSL_VERIFY_ENV_VAR), | ||
| ssl_verify_setting=litellm.ssl_verify, | ||
| ), | ||
| announce=announce_on_stderr_at_exit, |
There was a problem hiding this comment.
🟨 FIPS deployments accept unverified upstream TLS
With LITELLM_FIPS_MODE=true and SSL_VERIFY=false, the proxy now starts and sends upstream requests without certificate verification. An attacker controlling the network can intercept those requests.
Was this helpful? React with 👍 or 👎 to provide feedback.
| except Exception as e: | ||
| verbose_proxy_logger.warning("Password migration skipped: %s", e) | ||
|
|
||
| if is_fips_mode(): | ||
| await _run_pw_migration() | ||
| else: | ||
| asyncio.create_task(_run_pw_migration()) | ||
| asyncio.create_task(_run_pw_migration()) |
There was a problem hiding this comment.
🟨 Failed migration leaves plaintext passwords stored
On FIPS runtimes rejecting hashlib.scrypt, _run_pw_migration now catches the failure and serves with plaintext passwords still stored. The warning does not stop startup or require remediation.
Was this helpful? React with 👍 or 👎 to provide feedback.
Merging this PR will not alter performance
|
|
@litellm-stampbot |
litellm-stampbot: risk lowApproved at Rules (
Judge (gpt-6-luna): low, probability of high 0.80 (high at or above 0.90)
Pushes do not re-run this check. Comment |
kerry-berri
left a comment
There was a problem hiding this comment.
Low risk by rule and by judgement at 8820f76
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Reverts #42700.
Why: the
openssl_enforces_fips()probe this shipped with is broken on both real FIPS runtime shapes we verified against an enforcing OpenSSL provider:hashlib.md5entirely under an enforcing provider, so the probe crashes withAttributeErrorinstead of returning a verdict.fips=yesrebindshashlib.md5to the non-raising builtin, so the probe reports a genuinely enforcing runtime as non-enforcing and the gate refuses a compliant deployment.The boot gate therefore cannot yet reliably distinguish enforcing from non-enforcing runtimes. Reverting now; will re-land together with a probe based on
hashlib.new("md5", usedforsecurity=True)semantics (AttributeError⇒ enforcing), tested against both runtime shapes.Note for reviewers:
refused_boot_log/_is_readyintests/integration/_support/process.pyare kept (not reverted) — they were introduced by #42700 but have since been adopted by unrelated tests (test_harness_lifecycle.py).