litellm/.github/CODEOWNERS
yuneng-jiang 93445e1fc0
build(docker): build the FIPS image from the main Dockerfile with FLAVOR=fips (#54994)
* build(docker): build the FIPS image from the main Dockerfile with FLAVOR=fips

Dockerfile.fips repeated most of the main Dockerfile, so every shared change had to be made twice. The FIPS steps now live in the main Dockerfile as stages that only --build-arg FLAVOR=fips reaches. The default flavor builds exactly what it built before, and it never pulls the Chainguard base or mounts the cgr-token secret.

The FIPS Scan workflow now runs on every Dockerfile change and reads its uv commands from the builder-deps-fips stage. The FIPS owners also own the shared Dockerfile and its dockerignore.

* test(docker): check the user each flavor's image actually ships with

The non-root test took the last USER line in the Dockerfile, which is now the
fips-check stage's USER root. That stage only feeds a report into final-fips,
so the test failed while both shipped images still run as 65532.

The test now follows each flavor's FROM chain from the final stage and checks
the USER it inherits, for both standard and fips.

* build(docker): keep the FIPS scan inputs out of the default build

The shared dockerignore let scan_bundled_crypto.sh and fips_elf_inventory.txt
into every build, so COPY . . put them in the standard builder image. The
dockerignore is back to main's, and fips-check now reads both files from a
fips-scan build context that FIPS builds pass with
--build-context fips-scan=litellm/deploy/docker. Without it, a FIPS build stops
with an error that names the flag, so the scan cannot be skipped by accident.

* build(docker): run the FIPS scan for every runnable FIPS target

EXPOSE and ENTRYPOINT sat in the shared runtime stage, before fips-check, so
FLAVOR=fips with --target runtime or --target final-standard built a runnable
FIPS image that never ran the scan. Dockerfile.fips only set them after its
scan.

The shared stage is now runtime-app, and runtime resolves to runtime-${FLAVOR},
where runtime-fips copies the fips-check report. EXPOSE and ENTRYPOINT move to
runtime, the last stage, so the default target and compose's target: runtime
build exactly what they built before for the default flavor, and every runnable
FLAVOR=fips target runs the scan. test_dockerfile_fips_scan.py checks that every
FLAVOR=fips stage with an ENTRYPOINT depends on fips-check.

* test(docker): count EXPOSE as runnable when checking the FIPS scan gate

The published FIPS image carries both ENTRYPOINT and EXPOSE, so a FLAVOR=fips stage that only adds EXPOSE is also a runnable image and must depend on fips-check.
2026-11-30 09:47:47 -08:00

13 lines
1.1 KiB
Text

/model_prices_and_context_window.json @mateo-berri @ryan-crabbe-berri @kerry-berri @joshua-berri
/litellm/model_prices_and_context_window_backup.json @mateo-berri @ryan-crabbe-berri @kerry-berri @joshua-berri
/litellm/scripts/ci_cd/cost_map_pins.json @mateo-berri @ryan-crabbe-berri @kerry-berri @joshua-berri
/litellm/deploy/helm/ @yassin-berriai
/litellm/deploy/terraform/ @yassin-berriai
/.github/workflows/zizmor.yml @yuneng-berri
/litellm/proxy/spend_tracking/legacy_spend_counters.py @narmstrong-berri
/litellm/proxy/spend_tracking/legacy_spend_log_rows.py @narmstrong-berri
/litellm/deploy/docker/Dockerfile @yuneng-berri @yucheng-berri @yassin-berriai @ojensen-berri
/litellm/deploy/docker/Dockerfile.dockerignore @yuneng-berri @yucheng-berri @yassin-berriai @ojensen-berri
/litellm/deploy/docker/fips_elf_inventory.txt @yuneng-berri @yucheng-berri @yassin-berriai @ojensen-berri
/litellm/deploy/docker/scan_bundled_crypto.sh @yuneng-berri @yucheng-berri @yassin-berriai @ojensen-berri
/.github/workflows/fips-scan.yml @yuneng-berri @yucheng-berri @yassin-berriai @ojensen-berri