Skip to content

[BRE-2039] ci(docker): add distroless FIPS Dockerfile.gov variants#7875

Draft
fntyler wants to merge 1 commit into
mainfrom
bre-2039/chainguard-commericial-dockerfile
Draft

[BRE-2039] ci(docker): add distroless FIPS Dockerfile.gov variants#7875
fntyler wants to merge 1 commit into
mainfrom
bre-2039/chainguard-commericial-dockerfile

Conversation

@fntyler

@fntyler fntyler commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

🎟️ Tracking

BRE-2039

📔 Objective

Add Chainguard FIPS (Dockerfile.gov) build variants for the server services.

  • Add Dockerfile.gov for all services on cgr.dev/bitwarden.com FIPS images
  • Run services distroless on dotnet-runtime-fips:10 as nonroot (uid 65532)
  • Replace entrypoint.sh with a direct exec entrypoint; log to stdout
  • Drop gosu/shadow/curl/krb5 and in-image healthchecks (k8s probes)
  • Target linux/amd64 and linux/arm64 with a fail-fast platform guard
  • Keep MsSqlMigratorUtility on dotnet-runtime-fips:10-dev (shell entrypoint)
  • Add the build-chainguard CI job

📸 Screenshots

[BRE-2039](https://bitwarden.atlassian.net/browse/BRE-2039)

Add Chainguard FIPS (`Dockerfile.gov`) build variants for the server
services.

* Add `Dockerfile.gov` for all services on `cgr.dev/bitwarden.com` FIPS images
* Run services distroless on `dotnet-runtime-fips:10` as nonroot (uid 65532)
* Replace `entrypoint.sh` with a direct exec entrypoint; log to stdout
* Drop `gosu`/`shadow`/`curl`/`krb5` and in-image healthchecks (k8s probes)
* Target `linux/amd64` and `linux/arm64` with a fail-fast platform guard
* Keep `MsSqlMigratorUtility` on `dotnet-runtime-fips:10-dev` (shell entrypoint)
* Add the `build-chainguard` CI job and document the rework in the assessment
@sonarqubecloud

Copy link
Copy Markdown

@codecov

codecov Bot commented Jun 26, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 61.21%. Comparing base (eec4ece) to head (522cdcb).
⚠️ Report is 13 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7875      +/-   ##
==========================================
+ Coverage   61.20%   61.21%   +0.01%     
==========================================
  Files        2214     2219       +5     
  Lines       98033    98052      +19     
  Branches     8848     8846       -2     
==========================================
+ Hits        59997    60019      +22     
+ Misses      35921    35918       -3     
  Partials     2115     2115              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant