[Bug 1903776] Please test proposed package
Brian Murray
1903776 at bugs.launchpad.net
Tue Mar 22 21:18:28 UTC 2022
Hello Simon, or anyone else affected,
Accepted landscape-client into focal-proposed. The package will build
now and be available at https://launchpad.net/ubuntu/+source/landscape-
client/19.12-0ubuntu4.3 in a few hours, and then in the -proposed
repository.
Please help us by testing this new package. See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how
to enable and use -proposed. Your feedback will aid us getting this
update out to other Ubuntu users.
If this package fixes the bug for you, please add a comment to this bug,
mentioning the version of the package you tested, what testing has been
performed on the package and change the tag from verification-needed-
focal to verification-done-focal. If it does not fix the bug for you,
please add a comment stating that, and change the tag to verification-
failed-focal. In either case, without details of your testing we will
not be able to proceed.
Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in
advance for helping!
N.B. The updated package will be released to -updates after the bug(s)
fixed by this package have been verified and the package has been in
-proposed for a minimum of 7 days.
** Changed in: landscape-client (Ubuntu Bionic)
Status: In Progress => Fix Committed
** Tags added: verification-needed-bionic
--
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1903776
Title:
Changed ubuntu-keyring paths breaks upgrade to focal.
Status in Landscape Client:
Fix Committed
Status in landscape-client package in Ubuntu:
Fix Released
Status in landscape-client source package in Bionic:
Fix Committed
Status in landscape-client source package in Focal:
Fix Committed
Status in landscape-client source package in Groovy:
Won't Fix
Status in landscape-client source package in Hirsute:
Won't Fix
Status in landscape-client source package in Impish:
Fix Committed
Status in landscape-client source package in Jammy:
Fix Released
Bug description:
[Impact]
* When launching an Ubuntu release-upgrade through landscape-client, the
upgrade-tool fails GPG verification due to trusted apt key having changed
location as of 18.04 LTS.
* The proposed patch extends gpg lookup path to include all
/etc/apt/trusted.gpg.d/*.gpg files in addition to /etc/apt/trusted.gpg
when verifying the upgrade-tool signature.
[Test Case]
* Install and register the landscape-client against a landscape-server
on a series supporting an upgrade.
* Wait for it to sync up packages.
* On the computer packages page, there is a link at the bottom to request a
release upgrade of that machine, if a supported version is available.
* The upgrade fails and /var/log/landscape/release-upgrader.log will indicate
a failed gpg verification.
[Where problems could occur]
* One thing which has been considered in this fix is how someone could have
worked around the issue by re-creating the old key path. The fix covers
such a case by still reading the deprecated trusted.gpg file.
* Although some care has been taken to only load valid gpg keys from apt
trusted keychain, there could be unforeseen scenarios where invalid data
gets read from the keychain. In such a case, the strict nature of gpg would
reject the signature verification, thus being no worse than without the fix.
* The affected callsite is used for verifying the release-upgrader code prior
to running it. One bad thing which we could imagine with this code path is
falsely accepting an invalid file signature, which may create a security
issue. This would likely take shape of injecting a gpg key, without
having root access, in the search path.
[Other Info]
* There is no way to directly verify this issue on 20.10 Groovy and later
(without faking a release) due to the lack of upgrade path to a supported
LTS. The ubuntu-keyring package having the same file layout, the same
validation failure is however to be expected if left unpatched.
[Original description]
Since bionic, ubuntu-keyring removed `/etc/apt/trusted.gpg` in favor
of `/etc/apt/trusted.gpg.d/`
This breaks signature verification for the upgrade-tool.
Trying to release-upgrade through landscape yields a failure on signature check:
2020-11-10 15:47:51,019 WARNING [MainThread] Invalid signature for upgrade-tool tarball: /usr/bin/gpg failed (out='', err='gpg: keybox '/etc/apt/trusted.gpg' created
gpg: Signature made Fri Oct 16 03:28:09 2020 UTC
gpg: using RSA key 3B4FE6ACC0B21F32
gpg: Can't check signature: No public key
To manage notifications about this bug go to:
https://bugs.launchpad.net/landscape-client/+bug/1903776/+subscriptions
More information about the Ubuntu-sponsors
mailing list