Skip to content

add Azure marketplace ARM64 FIPS image definition#10526

Merged
rmhsawyer merged 1 commit intomainfrom
minghe/fips-arm64
Sep 27, 2024
Merged

add Azure marketplace ARM64 FIPS image definition#10526
rmhsawyer merged 1 commit intomainfrom
minghe/fips-arm64

Conversation

@rmhsawyer
Copy link
Copy Markdown
Contributor

@rmhsawyer rmhsawyer commented Sep 23, 2024

Merge Checklist

All boxes should be checked before merging the PR (just tick any boxes which don't apply to this PR)

  • The toolchain has been rebuilt successfully (or no changes were made to it)
  • The toolchain/worker package manifests are up-to-date
  • Any updated packages successfully build (or no packages were changed)
  • Packages depending on static components modified in this PR (Golang, *-static subpackages, etc.) have had their Release tag incremented.
  • Package tests (%check section) have been verified with RUN_CHECK=y for existing SPEC files, or added to new SPEC files
  • All package sources are available
  • cgmanifest files are up-to-date and sorted (./cgmanifest.json, ./toolkit/scripts/toolchain/cgmanifest.json, .github/workflows/cgmanifest.json)
  • LICENSE-MAP files are up-to-date (./LICENSES-AND-NOTICES/SPECS/data/licenses.json, ./LICENSES-AND-NOTICES/SPECS/LICENSES-MAP.md, ./LICENSES-AND-NOTICES/SPECS/LICENSE-EXCEPTIONS.PHOTON)
  • All source files have up-to-date hashes in the *.signatures.json files
  • sudo make go-tidy-all and sudo make go-test-coverage pass
  • Documentation has been updated to match any changes to the build system
  • Ready to merge

Summary

What does the PR accomplish, why was it needed?
This commit adds a new Azure VM ARM64 image with FIPS enabled by default.

Change Log

This image definition is identical to the current marketplace ARM64 image definition, except for the following specific changes:

  1. Include the fips-packages.json package list before the initramfs package in the overall package list

  2. Set KernelCommandLine.EnableFIPS to true, to inform image generation tools to enable FIPS during image creation

  3. Set basename for image as "cblmariner-arm64-gen2-fips"

Does this affect the toolchain?

NO

Issue

https://microsoft.visualstudio.com/OS/_workitems/edit/46521359

Test Methodology
  • local arm image build and test on Azure
  • Check FIPS is enabled by:
    sudo cat /proc/sys/crypto/fips_enabled (returns 1 if enabled)
    sudo sysctl crypto.fips_enabled (returns crypto.fips_enabled = 1 if enabled)
    openssl md5 (# Check if openssl library is running in fips mode)

@rmhsawyer rmhsawyer changed the base branch from 3.0 to main September 23, 2024 20:06
@microsoft-github-policy-service microsoft-github-policy-service Bot added Schema Changes to image configurations main PR Destined for main labels Sep 23, 2024
@rmhsawyer rmhsawyer changed the title Minghe/fips arm64 add Azure marketplace ARM64 FIPS image definition Sep 23, 2024
@rmhsawyer rmhsawyer marked this pull request as ready for review September 27, 2024 04:55
@rmhsawyer rmhsawyer requested a review from a team as a code owner September 27, 2024 04:55
@christopherco christopherco reopened this Sep 27, 2024
@rmhsawyer rmhsawyer merged commit 2340f8b into main Sep 27, 2024
@rmhsawyer rmhsawyer deleted the minghe/fips-arm64 branch September 27, 2024 22:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

main PR Destined for main Schema Changes to image configurations

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants