APT 2.8.4+: Promote weak key warnings to errors
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apt (Ubuntu) |
Fix Released
|
Undecided
|
Julian Andres Klode | ||
Noble |
Fix Released
|
Undecided
|
Julian Andres Klode |
Bug Description
(2.8.3 update references this bug as previous uploads tried to fix it and have not been fully reverted, per discussion with rbasak we agreed to just ignore this bug for SRU verification; as in mark it verification-done, and then re-open the bug after the package migrated
For the discussion, see https:/
)
⚠️ Only land this in the release/updates pocket after PPAs have been resigned
(This bumps the apt version to 2.8.0. APT uses the odd/even number system, with 2.7.x being the development series for 2.8, and this is the only change left for the 2.8 release, save for some minor translation/test suite improvements)
(Please also look at bug 2073126 for the follow-up changes to mitigate regression potential).
[Impact]
APT is currently just warning about keys that it should be rejecting to give Launchpad time to resign PPAs. This needs to be bumped to an error such that the crypto policy is fully implemented and we only trust keys that are still being trusted. #2055193
A warning provides some help right now to third-parties to fix their repositories, but it's not *safe*: A repository could have multiple signing keys and be signed by a good key now, then later, a previous key still in trusted.gpg.d could be revoked and we'd degrade to warnings, which, given that we update in the background automatically, the user may not see.
Other fixes:
- The test suite has been made less flaky in two places
- Documentation translation has been unfuzzied for URL changes in 2.7.14
[Test plan]
The vast regression test suite prevents regression in other components.
Test Case A: Existing noble system (warning)
0. Update an existing noble container to the new APT
1. Observe/
2. Add a PPA with an old 1024-bit signing key
3. Run apt update
4. Observe that the PPA is updated with a warning
Test Case B: New noble system (error)
0. Bootstrap a new noble system including apt from proposed (using e.g. mmdebstrap)
1. Observe NO /etc/apt/
2. Add a PPA with an old 1024-bit signing key
3. Run apt update
4. Observe that the PPA is not updated, but the other repositories are
Test Case C: mantic -> noble (error)
0. Upgrade mantic to noble w/ apt from proposed, observe behavior as in B
Test Case D: jammy -> noble (error)
0. Upgrade jammy to noble w/ apt from proposed, observe behavior as in B
[Where problems could occur]
apt will start to fail updates of repositories with weak signing keys, but it will have warned users about that before. Given that it is still early in the cycle, and we only enable updates from 22.04.1 for 24.04.1, this seems the right tradeoff for future security.
description: | updated |
description: | updated |
summary: |
- Promote weak key warnings to errors + APT 2.8.0: Promote weak key warnings to errors |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
tags: | added: block-proposed block-proposed-noble |
tags: | removed: block-proposed-noble |
description: | updated |
Changed in apt (Ubuntu Noble): | |
status: | New → Triaged |
assignee: | nobody → Julian Andres Klode (juliank) |
description: | updated |
Changed in apt (Ubuntu Noble): | |
milestone: | none → ubuntu-24.04.1 |
description: | updated |
tags: | added: block-proposed-noble |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
summary: |
- APT 2.8.0: Promote weak key warnings to errors + APT 2.8.4+: Promote weak key warnings to errors |
description: | updated |
description: | updated |
> ⚠️ Only land this in the release pocket after PPAs have been resigned
I am marking this incomplete, as it is unclear to me what the intended timeline is for the resigning, or if your comment about the release pocket should also apply to -updates.