** Description changed:

  [ Impact ]
  
  When enabling fips-updates on an AWS GovCloud instance (cloud-id: aws-
  gov), the Pro Client fails to map the platform to aws because the
  backend contract server only recognizes aws.
  
  As a result, the client issues a warning regarding kernel mismatch and
  proceeds to install generic FIPS packages (e.g., linux-fips) rather than
  the expected AWS-optimized FIPS packages (linux-aws-fips).
  
  The fix updates the client to present aws-gov instances as aws when
  communicating with the contract server, ensuring the correct AWS-
  specific FIPS packages are queued and installed.
  
  [ Test Plan ]
+ 
+ The full integration test suite provides coverage. On top of this, you
+ can also run the following steps:
  
  Reproduction (Unfixed Package):
  
  Provision an AWS GovCloud instance (or mock /run/cloud-init/cloud-id
  with aws-gov).
  
  Run sudo pro enable fips-updates.
  
  Confirm the client warns about falling back to the "generic" variant
  kernel.
  
  Confirm via dpkg -l | grep fips that generic packages (linux-fips) are
  installed.
  
  Verification (Proposed Package):
  
  Install the updated ubuntu-pro-client package from -proposed.
  
  Run sudo pro enable fips-updates.
  
  Confirm the warning is no longer displayed.
  
  Confirm via dpkg -l | grep fips that the AWS-specific FIPS packages are
  selected and installed.
  
  [ Where problems could occur ]
  
  Mapping aws-gov directly to aws client-side could override intended
  server-side behaviors if native aws-gov entitlements are introduced in
  the future.
  
  [ Other Info ]
  
  Here is the original description of the bug:
  
  Hello! In doing some testing, it was discovered that, upon enabling 
fips-updates on an AWS instance in their US Gov't cloud, it will install the 
generic FIPS packages rather than the AWS-specific debs:
  ---
  ubuntu@ip-172-31-20-210:~$ cat /run/cloud-init/cloud-id
  aws-gov
  
  ubuntu@ip-172-31-20-210:~$ sudo pro enable fips-updates
  One moment, checking your subscription first
  This will install the FIPS packages including security updates.
  Warning: This action can take some time and cannot be undone.
  Are you sure? (y/N) y
  The "generic" variant of fips-updates is based on the "generic" Ubuntu
  kernel but this machine is running the "aws" kernel.
  The "aws" kernel may have significant hardware support
  differences from "generic" fips-updates.
  
  Warning: Installing generic fips-updates may result in lost hardware support
           and may prevent the system from booting.
  ---
  
  Continuing on will indeed just give generic FIPS packages:
  ---
  ubuntu@ip-172-31-20-210:~$ dpkg -l|grep fips
  ii  fips-initramfs                     0.0.30                                 
 amd64        FIPS 140-3 kernel tests
  ii  linux-fips                         6.8.0-106.106+fips1                    
 amd64        Complete FIPS 140-3 Linux kernel and headers
  ii  linux-fips-headers-6.8.0-106       6.8.0-106.106+fips1                    
 all          Header files related to Linux kernel version 6.8.0
  ii  linux-fips-tools-6.8.0-106         6.8.0-106.106+fips1                    
 amd64        Linux kernel version specific tools for version 6.8.0-106
  ii  linux-headers-6.8.0-106-fips       6.8.0-106.106+fips1                    
 amd64        Linux kernel headers for version 6.8.0 on 64 bit x86 SMP
  ii  linux-headers-fips                 6.8.0-106.106+fips1                    
 amd64        FIPS 140-3 Linux kernel headers
  ii  linux-image-6.8.0-106-fips         6.8.0-106.106+fips1                    
 amd64        Signed kernel image fips
  ii  linux-image-fips                   6.8.0-106.106+fips1                    
 amd64        FIPS 140-3 Linux kernel image
  ii  linux-image-hmac-6.8.0-106-fips    6.8.0-106.106+fips1                    
 amd64        HMAC file for linux kernel image 6.8.0-106-fips
  ii  linux-modules-6.8.0-106-fips       6.8.0-106.106+fips1                    
 amd64        Linux kernel extra modules for version 6.8.0 on 64 bit x86 SMP
  ii  linux-modules-extra-6.8.0-106-fips 6.8.0-106.106+fips1                    
 amd64        Linux kernel extra modules for version 6.8.0 on 64 bit x86 SMP
  ii  linux-tools-6.8.0-106-fips         6.8.0-106.106+fips1                    
 amd64        Linux kernel version specific tools for version 6.8.0-106
  ii  openssl-fips-module-3:amd64        3.0.13-0ubuntu3.6+Fips1                
 amd64        Secure Sockets Layer toolkit - FIPS module
  ii  ubuntu-fips                        1.4.0~rc12+updates0                    
 amd64        Install and configure linux-fips kernel and user space modules
  ii  ubuntu-fips-userspace              1.4.0~rc12+updates0                    
 amd64        Install FIPS user space modules
  ---
  
  In internal discussions it was discovered that the contracts server is
  only aware of the "aws" cloud, and indeed on a normal AWS instance this
  behavior is not seen. I'm opening this LP pursuant that discussion to
  explore reconfiguring the Pro client to present an "aws-gov" instance as
  simply "aws" to the contracts server so the correct deb's are queued up
  for installation.
  
  Thank you!
  
  [ Changelog ]
  
  ubuntu-advantage-tools (38ubuntu0) stonking; urgency=medium
  
-   * d/apparmor: add cap perfmon to cloud_id AppArmor profile (LP: #2153472)
-   * d/apparmor: add perfmon systemctl unix socket in AppArmor profiles
-     (LP: #2143251)
-   * d/apparmor: fix denied audit messages when devicetree exists
-     (LP: #2131292)
-   * d/apparmor: include PID directory in ubuntu_pro_esm_cache profile (GH: 
#3555)
-   * d/apparmor: allow /usr/share/coreutils/locales/** in ubuntu_pro_esm_cache
-     profile (GH: #3570)
-   * New upstream release 38:
-     - security:
-       + fix CVE-2026-12391
-       + fix CVE-2026-11386
-       + fix CVE-2026-9494
-     - clouds:
-       + add support for GCE Marketplace Pro licenses (GH: #3573)
-       + add resolute GCP license IDs (GH: #3532)
-       + map aws-gov to aws for correct FIPS flavor (LP: #2144693)
+   * d/apparmor: add cap perfmon to cloud_id AppArmor profile (LP: #2153472)
+   * d/apparmor: add perfmon systemctl unix socket in AppArmor profiles
+     (LP: #2143251)
+   * d/apparmor: fix denied audit messages when devicetree exists
+     (LP: #2131292)
+   * d/apparmor: include PID directory in ubuntu_pro_esm_cache profile (GH: 
#3555)
+   * d/apparmor: allow /usr/share/coreutils/locales/** in ubuntu_pro_esm_cache
+     profile (GH: #3570)
+   * New upstream release 38:
+     - security:
+       + fix CVE-2026-12391
+       + fix CVE-2026-11386
+       + fix CVE-2026-9494
+     - clouds:
+       + add support for GCE Marketplace Pro licenses (GH: #3573)
+       + add resolute GCP license IDs (GH: #3532)
+       + map aws-gov to aws for correct FIPS flavor (LP: #2144693)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2144693

Title:
  Ubuntu Pro Client does not install AWS FIPS bits on aws-gov cloud

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/2144693/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to