Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dnf trusts revoked public keys #1964

Open
mikhirev opened this issue Dec 18, 2024 · 3 comments
Open

dnf trusts revoked public keys #1964

mikhirev opened this issue Dec 18, 2024 · 3 comments
Labels
Priority: LOW RFE Request For Enhancement (as opposed to a bug) Triaged Someone on the DNF 5 team has read the issue and determined the next steps to take

Comments

@mikhirev
Copy link

Situation: I maintain a repo and sign it with my GPG key pair. The private key has been compromised, so I want to switch to a new key pair. Users should stop trusting the compromised key.

My actions: I revoke the old key and generate a new key pair. Then I export both public keys and replace the repo pubkey file.

My expectations: dnf imports the new public key and removes the revoked public key if it was imported earlier.

Actual behavior: dnf imports the new public key and does not touch the revoked public key if it was imported earlier. If the revoked key was not imported, it also imports this key.

@ppisar
Copy link
Contributor

ppisar commented Dec 18, 2024

Yes, it is so.

DNF5 uses librpm for processing PGP packets. librpm uses Sequoia. To implement revoking keys in DNF5, the whole chain needs to understand PGP revocations certificates. As far as I know all the libraries only understand key certificates.

@ppisar
Copy link
Contributor

ppisar commented Dec 18, 2024

This is specifically about a support for https://www.ietf.org/rfc/rfc4880.html#section-5.2.1:

  • Key revocation signature (0x20)
  • Subkey revocation signature (0x28)
  • and mabye Certification revocation signature (0x30)

@ppisar ppisar added RFE Request For Enhancement (as opposed to a bug) Priority: LOW Triaged Someone on the DNF 5 team has read the issue and determined the next steps to take labels Dec 18, 2024
@ppisar ppisar added this to DNF team Dec 18, 2024
@github-project-automation github-project-automation bot moved this to Backlog in DNF team Dec 18, 2024
@ppisar
Copy link
Contributor

ppisar commented Dec 18, 2024

I opened a ticket against RPM rpm-software-management/rpm#3495 to see an opinion of RPM people.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: LOW RFE Request For Enhancement (as opposed to a bug) Triaged Someone on the DNF 5 team has read the issue and determined the next steps to take
Projects
Status: Backlog
Development

No branches or pull requests

2 participants