Updates and archlinux-keyring
I've always found it weird that archlinux-keyring does not receive priority in pacman for updating, and will update (disabling and/or adding keys) arbitrarily after other packages have been updated. If a key was disabled in archlinux-keyring and it which was used .5 seconds ago to validate a different package, is that not a concern?
About this post
- Posted
- Archived
- Score
- 13 · 100% up
- Kind
- Text
- ID
- 5altil
4 comments
Why would it be? It's not a new key, it replaces and old key, and thats in effect untill replaced? And the key change is not crucial for pacman updates.
I don't believe that's always the case. Frequently there are more revoked keys disabled/removed than new ones added.
My understanding is that package signing is fundamental for Arch security, and it seems like there's an opportunity with the current implementation to allow for installation of packages that are no longer trusted due to this race condition between pacman installing updates to archlinux-keyring (which may revoke certain keys) and the package(s) signed by the revoked key.
Ah, I see. Thanks for ELi5.
I guess you could do something like
I don't know enough to say anymore, but...
Seems like it would be a unlikely situation. Just in that if someone did something like this purposefully they'd have a decent window before the key was ever revoked. (I'd imagine they'd need access to an arch mirror at least, or they don't have access and its not a problem.)