litellm/.github
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
..
actions ci: start fewer jobs per pull request (#54757) 2026-11-26 18:21:09 -08:00
assets/scaledown chore(repo): remove committed Lens review screenshots (#53169) 2026-11-20 12:31:32 -08: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(github): move Caveats out of Details to right below the handwritten description in the PR template (#54626) 2026-11-26 00:18:58 -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: start fewer jobs per pull request (#54757) 2026-11-26 18:21:09 -08:00
semgrep/rules chore: move config and docs off the repo root (#50966) 2026-11-11 18:29:35 -08:00
workflows build(docker): build the FIPS image from the main Dockerfile with FLAVOR=fips (#54994) 2026-11-30 09:47:47 -08:00
AGENTS.md ci(unit): run the full unit and smoke matrix on every PR on standard runners (#54750) 2026-11-26 15:29:40 -08:00
ci-coverage-allowlist.yml build(docker): build the FIPS image from the main Dockerfile with FLAVOR=fips (#54994) 2026-11-30 09:47:47 -08:00
codecov.yml chore: move workspace packages under litellm (#51000) 2026-11-12 04:19:57 +00:00
CODEOWNERS build(docker): build the FIPS image from the main Dockerfile with FLAVOR=fips (#54994) 2026-11-30 09:47:47 -08: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 build(deps): remove beautifulsoup4 and the unrun Bedrock pricing scraper (#54903) 2026-11-27 11:36:13 -08:00
SECURITY.md docs: retire cosign.pub and document keyless release signing (#53884) 2026-11-23 19:19:05 +00:00
template.yaml fix(proxy): drop legacy telemetry key from persisted WORKER_CONFIG before initialize 2026-09-20 03:14:11 +00:00