State of Package Signing
Greetings Arch folks,
Looking to move from Ubuntu to starting Arch from scratch. Never done anything like that before so I am doing some research on Arch. One thing that came up concerns me a little and that is Package Signing from pacman or the lack of. I'm not a developer by any means (sysadmin) but I'm a huge fan of making sure the packages I get are signed and verified.
I have googled around and found some articles but they are typically about 3 or 4 years old. I was wondering what the current state is and how Package Signing has progressed since what seems like a huge controversy that happened a few years ago.
Thanks Folks!
About this post
- Posted
- Archived
- Score
- 0 · 100% up
- Kind
- Text
- ID
- 3a40pg
6 comments
https://wiki.archlinux.org/index.php/Package_signing
Man that wiki is super helpful. Should've checked there. I'm learnin' promise!
So what happens if a package is requested that is NOT signed? Does pacman give me any warning?
pacman.conf's man page covers it. The default pacman.conf has
SigLevel = Required DatabaseOptional.If I understand it right, signatures are required on every pacakges, but not on the database. This is okay, I believe, since I do not think anything wrong could happen if the database is not signed properly. Well, a bad person could in theory feed you an older package version though, but the packages could not be modified from the trusted ones.
EDIT: I overlooked locally installed packages.
LocalFileSigLevel = Optionalmakes them optional for locally installed packages. I did not see anything in pacman's manpage to change this for a certain invocation. This means that apacman -U $pkgfilewould not need to be signed. I do not know the details of package enough to say whether a signed package installed with-Uthat does not validate would trip up pacman. I think this is mostly done for easier AUR compiling, as otherwise you'd need to sign everything you compile locally.If I haven't updated in awhile I usually get something like this when trying to install new packages:
This can also occur if your system clock is off. Basically if something is amiss with the signature the upgrade fails. So in a sense this is a warning. I believe this answers your question, but please excuse my ignorance if not.
Edit: My example comes from the same wiki: https://wiki.archlinux.org/index.php/Pacman-key#Troubleshooting