Skip to content

feat(acl): add FIPS image builds for Azure Container Linux#8463

Merged
hbeberman merged 4 commits into
mainfrom
hebeberm/acl-fips
May 11, 2026
Merged

feat(acl): add FIPS image builds for Azure Container Linux#8463
hbeberman merged 4 commits into
mainfrom
hebeberm/acl-fips

Conversation

@hbeberman
Copy link
Copy Markdown
Contributor

What this PR does / why we need it:
This PR adds two FIPS enabled image builds (AMD64 and ARM64) for Azure Container Linux. Distinct images are required because FIPS enablement must be determined pre-boot, in-line with other AKS distros.

Which issue(s) this PR fixes:
Fixes #

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds support for building and validating new FIPS-enabled Azure Container Linux (ACL) Trusted Launch Gen2 VHDs (AMD64 + ARM64), wiring them through the VHD builder, SIG image config, and e2e coverage.

Changes:

  • Add an ACL-specific installFIPS implementation and invoke it during ACL VHD build when ENABLE_FIPS=True.
  • Introduce new ACL FIPS distro identifiers and SIG image definitions/templates to make the images selectable/servable.
  • Add pipeline jobs/parameters for the two new builds and add validation for ACL FIPS behavior (VHD content tests + e2e).

Reviewed changes

Copilot reviewed 14 out of 14 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
vhdbuilder/scripts/linux/acl/tool_installs_acl.sh Adds ACL installFIPS that installs the UKI addon and writes a marker file.
vhdbuilder/packer/test/linux-vhd-content-test.sh Extends FIPS validation to ACL and checks ACL-specific marker/addon files.
vhdbuilder/packer/pre-install-dependencies.sh Calls installFIPS for ACL builds when FIPS is enabled.
spec/vhdbuilder/packer/ensure_sig_image_name_linux_spec.sh Adds ShellSpec coverage for new ACL FIPS SKU naming.
pkg/agent/datamodel/types.go Adds new ACL FIPS distro constants and registers them as VHD-available.
pkg/agent/datamodel/types_test.go Extends ACL detection tests to cover new FIPS distros.
pkg/agent/datamodel/sig_config.go Adds SIG config templates + distro mappings for ACL FIPS images.
pkg/agent/datamodel/sig_config_test.go Updates expected SIG config map contents/counts and validates new entries.
pkg/agent/bakerapi_test.go Ensures API-level tests include new ACL FIPS distros.
e2e/validators.go Adds an ACL FIPS validator and ensures algif_aead validation isn’t skipped for ACL.
e2e/scenario_test.go Adds an e2e scenario for the AMD64 ACL FIPS TL Gen2 image.
e2e/config/vhd.go Adds image definitions for ACL FIPS TL Gen2 (amd64 + arm64).
.pipelines/.vsts-vhd-builder.yaml Adds CI build jobs for ACL FIPS TL Gen2 (amd64 + arm64).
.pipelines/.vsts-vhd-builder-release.yaml Adds release-pipeline parameters/jobs for the two new builds.

Comment thread vhdbuilder/scripts/linux/acl/tool_installs_acl.sh Outdated
Comment thread e2e/scenario_test.go
Comment thread e2e/scenario_test.go
hbeberman added 2 commits May 11, 2026 11:54
Adds a pre-flight check that /boot/acl/uki-addons/fips.addon.efi exists
before attempting to install it, producing a clear error message if the
source addon is missing. The Packer invocation already runs the script
under bash -eux so a missing addon would fail the build either way, but
the explicit check yields a much clearer diagnostic than the raw
'install: cannot stat' stderr.
Copilot AI review requested due to automatic review settings May 11, 2026 18:56
@hbeberman hbeberman force-pushed the hebeberm/acl-fips branch from fb97eeb to 4ec4d64 Compare May 11, 2026 18:56
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 14 out of 14 changed files in this pull request and generated no new comments.

@hbeberman hbeberman merged commit fd64ae4 into main May 11, 2026
42 of 44 checks passed
@hbeberman hbeberman deleted the hebeberm/acl-fips branch May 11, 2026 23:45
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.

3 participants