litellm/.github/ci-coverage-allowlist.yml
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

82 lines
4.1 KiB
YAML

description: >-
Paths deliberately outside CI coverage, each with the reason it is exempt.
assert_ci_coverage.py fails when a test file or Dockerfile is neither invoked
by a job nor listed here, so every entry below is a decision on the record.
test_paths:
- reason: ran only in CircleCI, removed
paths:
- tests/e2e/migrations/test_legacy.py
- tests/e2e/migrations/test_pooling.py
- tests/e2e/migrations/test_recovery.py
- tests/e2e/migrations/test_rolling_upgrade.py
- tests/e2e/migrations/test_shaped_database.py
- tests/e2e/migrations/test_startup.py
- tests/e2e/migrations/test_upgrade.py
- tests/integration/database/test_roi_observed.py
- reason: >-
litellm.agent() end-to-end suite. It drives the real claude, codex, opencode and pi CLIs and
deepagents against a live LiteLLM AI Gateway, so it needs those binaries on PATH plus
LITELLM_PROXY_API_BASE / LITELLM_PROXY_API_KEY, and skips without them. Run manually
before changing litellm/harness; the mocked coverage runs in tests/unit/harness and
tests/unit/llms/*/harness
paths:
- tests/harness_e2e
- reason: >-
The Rust/Python parity harness is run manually through its local CLI. Recorded replay,
fixture generation, and harness checks are intentionally outside pull request CI
paths:
- tests/rust-python-harness
- reason: >-
Owned by the open pull request that moves the Rust/Python parity checks (#45135). It ran in
the retired build_and_test job that globbed tests/test_*.py,
and that pull request gives it a new home
paths:
- tests/test_rust_python_harness.py
- reason: >-
The end-to-end suite runs against a deployed proxy from its own in-cluster rig rather than
from a pull request; it needs a live gateway and provider credentials no PR job holds
paths:
- tests/e2e
- reason: >-
The documentation and code-quality workflows execute four files in this directory by name as
scripts and pytest never collects the directory, so these six run nowhere; listed individually
so a seventh cannot inherit the exemption
paths:
- tests/documentation_tests/test_exception_types.py
- tests/documentation_tests/test_general_setting_keys.py
- tests/documentation_tests/test_optional_params.py
- tests/documentation_tests/test_readme_providers.py
- tests/documentation_tests/test_requests_lib_usage.py
- tests/documentation_tests/test_standard_logging_payload.py
- reason: >-
Named like a test but shaped like a benchmark: it fetches live image URLs, times aiohttp
against httpx, prints the ratio, and asserts nothing, so pytest cannot collect it (its
functions take arguments, not fixtures) and running it beside its siblings in the
code-quality workflow would add a network dependency for a number nothing reads. Exempt
as a script rather than as an unresolved gap; revisit by deleting it once the aiohttp
choice it informed is settled
paths:
- tests/code_coverage_tests/test_aio_http_image_conversion.py
- reason: >-
Third-party integration tests that skip themselves without OCI configuration or sandbox
credentials, neither of which a pull request job holds
paths:
- tests/integration/sandbox/test_e2b_sandbox.py
- tests/integration/test_oci_integration.py
- tests/integration/test_oci_proxy_integration.py
dockerfiles:
- reason: >-
The FIPS image builds on the pinned cgr.dev/berri.ai chainguard-base-fips base and every apk
call authenticates to virtualapk.cgr.dev with a Chainguard token supplied as a build secret;
no pull request job holds that token, so no job can build it
paths:
- litellm/deploy/docker/Dockerfile.fips
- reason: >-
The Rust gateway image compiles the whole workspace in release mode, which is too slow for
a per-pull-request job while the gateway binary is still being assembled; the Rust lint,
clippy, and compile jobs already cover the code it packages. Revisit when the gateway is
published
paths:
- litellm/rust/crates/gateway/Dockerfile