Skip to content

fix: harden ubuntu-fips Dockerfile and cleanup non-FIPS kernels#566

Merged
santhoshdaivajna merged 2 commits intomainfrom
fix/ubuntu-fips-dockerfile-hardening
Mar 13, 2026
Merged

fix: harden ubuntu-fips Dockerfile and cleanup non-FIPS kernels#566
santhoshdaivajna merged 2 commits intomainfrom
fix/ubuntu-fips-dockerfile-hardening

Conversation

@nianyush
Copy link
Contributor

Summary

  • Move pro detach into the same RUN layer as pro attach to prevent bearer token from being persisted in an intermediate Docker layer
  • Purge all non-FIPS linux packages (installed or residual configs) after removing the default kernel
  • Add linux-headers-fips to installed packages
  • Add .netrc to .gitignore

Test plan

  • Build the ubuntu-fips 22.04 image and verify only FIPS kernel packages remain (dpkg -l | grep linux-)
  • Verify pro attach token is not visible in any intermediate Docker layer (docker history)
  • Verify FIPS kernel boots correctly

🤖 Generated with Claude Code

nianyush and others added 2 commits March 13, 2026 12:32
…n-FIPS kernels

Move pro detach into the same RUN layer as pro attach to prevent the
bearer token from being persisted in an intermediate Docker layer.
Purge all non-FIPS linux packages (installed or residual configs) after
removing the default kernel. Add linux-headers-fips to installed packages.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@santhoshdaivajna santhoshdaivajna merged commit b7f54fc into main Mar 13, 2026
2 checks passed
@santhoshdaivajna santhoshdaivajna deleted the fix/ubuntu-fips-dockerfile-hardening branch March 13, 2026 19:38
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.

2 participants