litellm/.github
yucheng-berri aa63ed9609
feat(docker): add a FIPS 140-3 proxy image (#50330)
* feat(docker): add FIPS 140-3 image with build-time crypto verification

Dockerfile.fips builds on chainguard-base-fips with FIPS-provider-linked
python/node/openssl from the org apk repo (CMVP #5132). A fips-check
stage runs openssl-fips-test and an ELF allowlist gate: every native
binary must be in the reviewed fips_elf_inventory.txt or carry an
explicit bundled-crypto waiver, so new native deps fail the build until
reviewed. Known offenders are waived pending the dependency-fix
workstream and the report ships at /fips-scan-report.txt

* fix(docker): bring the FIPS image up to today's Dockerfile

Ports main's Dockerfile changes since #41802 was written: pgbouncer 1.26.0, the dashboard vendor folder, rust for the maturin build, libssl3, the packaging/litellm-proxy workspace member, the admin-mcp group and LITELLM_RELEASE_TAG. litellm-proxy, the opt-in Rust forwarding server, stays out of this image.

The Wolfi base now ships OpenSSL 4, so the scan also counts a binary linked against the system libcrypto.so.4 as system-linked. The inventory adds the amd64 binaries from today's lock and keeps #41802's arm64 entries.

* ci: list the FIPS Dockerfile in the CI coverage allowlist

No pull request job holds the Chainguard token its base image and apk repo need.

* fix(fips): fail the ELF scan on a missing root and add its tests

The scan now stops when a root is missing, find cannot read a directory, or no ELF binary is found,
instead of printing PASS for zero binaries. The enterprise admin UI build step gets the Chainguard
apk login like every other apk call in this Dockerfile.

* revert(fips): keep the Chainguard login out of the admin UI build

The pinned virtualapk repo answers without a login, so build_admin_ui.sh installs curl as is,
and exporting the token there would hand it to the nvm installer and the npm build.

* refactor(fips): pin scan waivers to exact binaries, move scan tests to their mirrored path

Each waiver now names the one binary seen in the image, so a new package next to a waived one
fails the scan. The unused xmlsec and libsodium waivers are gone. Build steps move from
Dockerfile comments to the docker README.

* test(fips): run the scan tests with main's other shell-script tests in test-linting

tests/unit forbids subprocesses, so the scan tests move next to test_e2e_idp_stack.py, which
already exercises a shell script the same way, and get their own test-linting step.

* docs(fips): note the PBMAC1 requirement for a PKCS#12 sslidentity in the FIPS image

* test(fips): pin the scan's match on wheel libs that carry an upstream and an auditwheel hash

* fix(fips): disable Prisma's update check in the FIPS image too

Ports CHECKPOINT_DISABLE=1 from main's Dockerfile (#52642), so the FIPS image stops leaving zombie Prisma processes the same way.

* fix(fips): close the crypto scan's path, name and symlink gaps

- Waivers match one exact path under the venv's site-packages or /opt/prisma,
  so a waived name nested deeper or inside a look-alike folder still fails
- Names with leading or trailing spaces are scanned, and a newline anywhere in
  a path fails the scan before it starts
- A symlink that points outside the roots is scanned at its own path; one that
  dangles or points at a folder outside the roots fails the scan
- A crypto library is flagged by its file name too, so psycopg-binary's libssl,
  libk5crypto and libcrypt are now waived by name instead of listed as clean
- The venv's three python links join the inventory

---------

Co-authored-by: Oliver Jensen <oliver@berri.ai>
2026-11-19 17:16:05 -08:00
..
actions Revert "ci: reuse Rust bridge builds across PR pushes and refresh the Cargo cache (#52718)" (#52770) 2026-11-18 23:07:25 -08:00
assets/scaledown feat(scaledown): add native text provider support (#44168) 2026-10-10 14:01:17 -07:00
codeql ci(codeql): run the default suite on full scans and security-extended on PRs (#45149) 2026-10-07 13:24:28 -07:00
e2e-stack test(mcp): replace the live Linear MCP OAuth e2e tests with integration coverage (#47154) 2026-10-17 14:29:59 -07:00
ISSUE_TEMPLATE ci: classify new issues into domain, provider, kind, priority and lift labels 2026-09-18 11:37:55 -07:00
linters chore(lint): flag conditionals with more than 3 boolean clauses via ruff PLR0916 (#51964) 2026-11-15 16:53:38 -05:00
packaging chore: move workspace packages under litellm (#51000) 2026-11-12 04:19:57 +00:00
pr-assets feat(customer-portal): complete hierarchy management (#51521) 2026-11-13 17:58:34 +00:00
prompts ci: classify new issues into domain, provider, kind, priority and lift labels 2026-09-18 11:37:55 -07:00
PULL_REQUEST_TEMPLATE docs(review): require live QA across shared translation routes (#52631) 2026-11-18 13:19:32 -08:00
screenshots fix(team_endpoints): auto-add SSO team members to org on move (proxy admin only) (#26377) 2026-04-24 08:36:25 -07:00
scripts ci(unit): run the proxy-extras tests when a pull request touches proxy-extras (#52917) 2026-11-19 11:52:05 -08:00
semgrep/rules chore: move config and docs off the repo root (#50966) 2026-11-11 18:29:35 -08:00
workflows feat(docker): add a FIPS 140-3 proxy image (#50330) 2026-11-19 17:16:05 -08:00
AGENTS.md ci: remove CircleCI (#50950) 2026-11-11 15:38:27 -08:00
ci-coverage-allowlist.yml feat(docker): add a FIPS 140-3 proxy image (#50330) 2026-11-19 17:16:05 -08:00
codecov.yml chore: move workspace packages under litellm (#51000) 2026-11-12 04:19:57 +00:00
CODEOWNERS chore: move scripts and runtime sources under litellm (#51006) 2026-11-12 04:19:57 +00:00
CONTRIBUTING.md chore: move scripts and runtime sources under litellm (#51006) 2026-11-12 04:19:57 +00:00
dependabot.yaml chore: fixes 2026-04-05 01:30:57 -07:00
deploy-on-aws.png feat: add LiteLLM Rust workspace with Mistral OCR bridge (#31033) 2026-06-23 13:16:47 -07:00
deploy-on-gcp.png feat: add LiteLLM Rust workspace with Mistral OCR bridge (#31033) 2026-06-23 13:16:47 -07:00
deploy-to-aws.png Add files via upload 2023-10-25 16:33:53 -07:00
FUNDING.yml Update FUNDING.yml 2023-09-22 09:51:35 -07:00
gitguardian.yaml chore: move scripts and runtime sources under litellm (#51006) 2026-11-12 04:19:57 +00:00
grype.yaml chore: move config and docs off the repo root (#50966) 2026-11-11 18:29:35 -08:00
issue-labels.json ci(issue-classifier): name every workflow, script and job after the issue it works on 2026-09-18 11:37:55 -07:00
mutmut-coverage.rc fix(ci): let the mutation workflow find covered lines so it generates mutants 2026-08-25 23:16:40 -07:00
osv-scanner.toml ci(osv): ignore picomatch GHSA-fc5q-39xc-vjpf until 2026-11-24 (#52337) 2026-11-17 21:18:01 +00:00
SECURITY.md chore: move config and docs off the repo root (#50966) 2026-11-11 18:29:35 -08:00
template.yaml fix(proxy): drop legacy telemetry key from persisted WORKER_CONFIG before initialize 2026-09-20 03:14:11 +00:00