Skip to content

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?

13 points4 comments
Open on Reddit
About this post
Posted
Archived
Score
13 · 100% up
Kind
Text
ID
5altil

Author

15
posts
807
comments
3
media
View profile

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.

1 points

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.

1 points

I guess you could do something like

checkupdates | grep archlinux-keyring && pacman-key --refresh-keys

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.)

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.