More nuanced public key algorithm revocation
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
apt (Ubuntu) | Status tracked in Oracular | |||||
Noble |
Fix Committed
|
Undecided
|
Unassigned | |||
Oracular |
Fix Released
|
Undecided
|
Julian Andres Klode |
Bug Description
(This is uploaded to noble as 2.8.1 per https:/
[Impact]
We have received feedback from users that use NIST-P256 keys for their repositories that are upset about receiving a warning. APT 2.8.0 in noble-proposed would bump the warning to an error, breaking them.
We also revoked additional ECC curves, which may still be considered trusted, so we should not bump them to errors.
Also existing users may have third-party repositories that use 1024-bit RSA keys and we have not adequately informed them yet perhaps.
[Solution]
Hence we will restore all elliptic curve keys of 256 or more bit to trusted:
">=
At the same time we will also introduce a more nuanced approach to revocations by introducing a 'next' level that issues a warning if the key is not allowed in it and a 'future' level that will issue an audit message with the --audit option.
For the next level, we will set it to:
">=
This means we restrict warnings to Brainpool curves and the secp256k1 key, which we have not received any feedback about them being used yet.
For the future level, we will take a strong approach to best practices as it is only seen when explictly running with --audit and the intention is to highlight best practices. It will be set to
">=
Which corresponds to the NIST recommendations for 2031 (and as little curves as possible).
We are also introducing a mitigation for existing 24.04 systems to not upgrade the policy yet; by creating an apt.conf.d configuration file that temporarily allows the 1024-bit RSA keys if upgraded from apt 2.7.x; with the plan to remove them in 24.04.2.
[Test plan]
Tests are included in the library unit tests for parsing the specification strings; we have also included a test for the gpgv method to ensure that it produces the correct outcome for both 'next' and 'future' revoked keys.
The manual test cases are the same as for LP: #2060721.
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]
There could of course be bugs in the implementation of the new feature; this could result in verification of files failing. This also happens if you specify an invalid `next` or `future` string.
There cannot be any false positives: The new levels are only *additional* checks, anything not in the `Assert-
tags: | added: foundations-todo |
Changed in apt (Ubuntu): | |
assignee: | nobody → Julian Andres Klode (juliank) |
summary: |
- Only revoke RSA explicitly + More nuanced public key algorithm revocation |
Changed in apt (Ubuntu Noble): | |
milestone: | none → ubuntu-24.04.1 |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
Changed in apt (Ubuntu Oracular): | |
status: | New → Fix Committed |
tags: | added: regression-proposed |
description: | updated |
description: | updated |
description: | updated |
tags: | added: block-proposed-noble |
tags: | removed: block-proposed |
description: | updated |
description: | updated |
description: | updated |
Changed in apt (Ubuntu Noble): | |
milestone: | ubuntu-24.04.1 → none |
Implemented in https:/ /salsa. debian. org/apt- team/apt/ -/merge_ requests/ 365/