Skip to content

Revert "feat(proxy): add LITELLM_FIPS_MODE startup gate with provider assertion and loud password migration failure" (#42700) - #46740

Merged
yucheng-berri merged 1 commit into
mainfrom
revert-42700
Oct 15, 2026
Merged

yucheng-berri merged 1 commit into
mainfrom
revert-42700

Conversation

@yucheng-berri

@yucheng-berri yucheng-berri commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

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:

  • RH-patched CPython removes hashlib.md5 entirely under an enforcing provider, so the probe crashes with AttributeError instead of returning a verdict.
  • Upstream CPython under fips=yes rebinds hashlib.md5 to 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_ready in tests/integration/_support/process.py are kept (not reverted) — they were introduced by #42700 but have since been adopted by unrelated tests (test_harness_lifecycle.py).


Devin Review

… assertion and loud password migration failure (#42700)"

This reverts commit 1238cfe.
@greptile-apps

greptile-apps Bot commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

Automatic reviews are disabled for this repository.

@devin-ai-integration devin-ai-integration 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.

Devin Review found 2 potential issues.

1 flag not posted on this PR by your GitHub settings — view it in Devin Review. (Configure)

Devin Review

Comment on lines -1435 to -1442
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,

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.

🟨 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.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

Comment on lines 1468 to +1471
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())

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.

🟨 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.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

@codspeed

codspeed Bot commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

⚠️ 1 benchmark spent significant time in system calls

System calls cannot be consistently instrumented, so they are not included in the measure, which understates the real cost. Please switch to the Walltime instrument to accurately measure system calls.

Measurement and system calls

✅ 31 untouched benchmarks


Comparing revert-42700 (8820f76) with main (fac0135)

Open in CodSpeed

@yuneng-berri

Copy link
Copy Markdown
Contributor

@litellm-stampbot

@litellm-stampbot

Copy link
Copy Markdown

litellm-stampbot: risk low

Approved at 8820f76.

Rules (stampbot/risk_rules.yml):

  • low: no rule flagged it

Judge (gpt-6-luna): low, probability of high 0.80 (high at or above 0.90)

  • risk: high (probability of high 0.80)

Pushes do not re-run this check. Comment @litellm-stampbot again to re-check the new head.

@litellm-stampbot litellm-stampbot Bot added the risk:low Small, isolated, low-risk change label Oct 15, 2026

@kerry-berri kerry-berri 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.

Low risk by rule and by judgement at 8820f76

@yucheng-berri
yucheng-berri merged commit d9b5d9e into main Oct 15, 2026
105 of 109 checks passed
@yucheng-berri
yucheng-berri deleted the revert-42700 branch October 15, 2026 19:39
@codecov

codecov Bot commented Oct 15, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

This branch was successfully deployed

No deployments
e2e-changed — 8820f76b Deployed Oct 15, 2026 by yucheng-berri via oauth #5315
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk:low Small, isolated, low-risk change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants