Skip to content

Ubuntu noble - FIPS - #693

Open
stackunderfl0w wants to merge 3 commits into
cloudfoundry:ubuntu-noblefrom
canonical:ubuntu-noble
Open

Ubuntu noble - FIPS#693
stackunderfl0w wants to merge 3 commits into
cloudfoundry:ubuntu-noblefrom
canonical:ubuntu-noble

Conversation

@stackunderfl0w

Copy link
Copy Markdown

Update package lists and kernel versions to match release Ubuntu Noble Fips images.
The current specs hardcode the packages and kernel verions used by Jammy Fips, including the now entirely removed libgcrypt20-hmac.

Current config has been tested to build working Noble FIPS images, though full BOSH deployments currently require pending, out-of-tree changes to credhub-release and uaa-release. Their pre-start keystore generation is incompatible with the stricter PKCS#12 requirements enforced by OpenSSL 3.0’s FIPS provider.

@linux-foundation-easycla

linux-foundation-easycla Bot commented Jul 21, 2026

Copy link
Copy Markdown

CLA Signed
The committers listed above are authorized under a signed CLA.

@coderabbitai

coderabbitai Bot commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Team

Run ID: 4f90e861-526d-4ca9-93a4-da5c7f2eee1b

📥 Commits

Reviewing files that changed from the base of the PR and between 1ed694c and 72755b0.

📒 Files selected for processing (1)
  • stemcell_builder/lib/prelude_apply.bash

Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review.


Walkthrough

The change updates Ubuntu FIPS package inventories from kernel version 5.15 to 6.8. It removes libgcrypt20-hmac from FIPS package installation and adds architecture qualifiers to two development packages. Static-library configuration now uses kernel version 6.8. The FIPS static-library path rewrite applies only to kernels with a major version below 6.

Merge Risk: ⚪ Minimal · up to 72755

This updates Noble FIPS package and kernel handling, including 6.8 static-library behavior. No current merge-blocking risk remains.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 1 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description check ✅ Passed The description clearly explains the Noble FIPS package and kernel updates, the removal of libgcrypt20-hmac, build testing, and current deployment limitations. It does not document the merge-forward s…
Title check ✅ Passed The title identifies the Ubuntu Noble FIPS change and is concise. It is related to the primary purpose of the pull request.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Full details: Description check

Explanation

The description clearly explains the Noble FIPS package and kernel updates, the removal of libgcrypt20-hmac, build testing, and current deployment limitations. It does not document the merge-forward steps, but the main change and validation details are complete.

  • Fix all pre-merge checks with AI
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@neddp

neddp commented Jul 23, 2026

Copy link
Copy Markdown
Member

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@stemcell_builder/lib/prelude_apply.bash`:
- Around line 62-64: Update the condition in the FIPS rewrite block to extract
and numerically compare the kernel’s major component against 6, rather than
comparing dotted version strings lexically. Preserve the existing rewrite
behavior only for FIPS kernels with a numeric major version below 6.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: c463db26-48c1-4972-a4a2-9432c8701aba

📥 Commits

Reviewing files that changed from the base of the PR and between 480058d and 1ed694c.

📒 Files selected for processing (6)
  • bosh-stemcell/spec/assets/dpkg-list-ubuntu-aws-fips.txt
  • bosh-stemcell/spec/assets/dpkg-list-ubuntu-fips.txt
  • bosh-stemcell/spec/assets/dpkg-list-ubuntu.txt
  • stemcell_builder/lib/prelude_apply.bash
  • stemcell_builder/stages/base_fips_apt/apply.sh
  • stemcell_builder/stages/static_libraries_config/apply.sh

Comment thread stemcell_builder/lib/prelude_apply.bash
@github-project-automation github-project-automation Bot moved this from Inbox to Waiting for Changes | Open for Contribution in Foundational Infrastructure Working Group Jul 23, 2026
@beyhan
beyhan requested review from a team, mariash, neddp and selzoc and removed request for a team July 23, 2026 14:50
The noble fips-updates pocket does not ship libgcrypt20-hmac.
Noble FIPS uses kernel 6.8, not 5.15. The hardcoded major_kernel_version
caused the find for linux-headers-5.15.*-fips to return nothing and fail
the build.

Also guard the objtool path rewrite so it only applies to pre-6.0
kernels, since noble FIPS (6.8) uses the new objtool/libsubcmd path.
Update dpkg-list-ubuntu-aws-fips.txt and dpkg-list-ubuntu-fips.txt to
expect 6.8 kernel packages instead of 5.15. Fix arch suffixes on
libgcrypt20-dev and libgpg-error-dev in dpkg-list-ubuntu.txt to match
dpkg --get-selections output on noble.
@aramprice
aramprice requested a balanced review from Copilot August 19, 2026 16:41

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@aramprice

Copy link
Copy Markdown
Member

@stackunderfl0w - as a first pass we ask that folks address (either by making changes or dismissing) the AI comments.

Based on your comments above it sounds like coderabbit's suggestion is probably fine to dismiss - as long as we don't end up with a kernel major version 10 on ubuntu-noble (?).

It may be worthwhile though as any changes to ubuntu-noble will be merged forward to ubuntu-resolute (and whatever is next) so having code that is safe when the kernel hits v10 might save someone heartache in the future.

@rkoster
rkoster requested a balanced review from Copilot August 20, 2026 15:10

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated no new comments.

Suppressed comments (1)

stemcell_builder/lib/prelude_apply.bash:65

  • The path migration is documented as occurring at kernel 6.5, but this comparison only checks the major component. A FIPS kernel in the 6.0–6.4 range would therefore retain the new objtool/libsubcmd/libsubcmd.a path even though it still needs the old path, leaving a nonexistent entry in static_libraries_list. Compare both major and minor components against 6.5.
  if [[ "${stemcell_operating_system_variant}" == 'fips' ]] && (( kernel_major < 6 )); then

@aramprice aramprice changed the title Ubuntu noble Ubuntu noble - FIPS Aug 25, 2026
@aramprice

Copy link
Copy Markdown
Member

I added - FIPS to the title for clarity. Feel free to remove it this doesn't seem correct.

@stackunderfl0w

stackunderfl0w commented Aug 31, 2026

Copy link
Copy Markdown
Author

I could have been a bit more clear with my comment. The suggestion was already added at the time.

@beyhan
beyhan requested a review from a-hassanin September 3, 2026 14:58
@github-project-automation github-project-automation Bot moved this from Waiting for Changes | Open for Contribution to Pending Merge | Prioritized in Foundational Infrastructure Working Group Sep 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Pending Merge | Prioritized

Development

Successfully merging this pull request may close these issues.

5 participants