On 27/11/2026 17:10, Emiliano G.O. wrote:
Per-pkgbase keys were never meant for the bot case. They were meant for the human maintainer who holds a few hundred packages and pushes from one laptop, where a stolen key is a stolen key and splitting it costs nothing.


What's the point of having multiple keys if they all live in the same place? If an attacker can steal a key, they can steal a million keys just as easily. Multikeys is actually *only* useful in the bot case, because that's where you can have isolated silos (private keys are scoped per-repository, where keys are strictly isolated from each other, and no two keys can be accessed at the same time).

For the bot case, the answer is not more keys, it is not giving the bot a long-lived key at all. Trusted Publishing, short-lived tokens minted per workflow run, scoped to the pkgbase and the pipeline that requested them. That is the PyPI model and it exists precisely because per-package keys do not survive contact with CI.


Trusted Publisher isn't the silver bullet people think it is. It make the authentication and authorisation much more complicated than traditional SSH keys, aurweb has to trust all platforms that people might want to publish from (GitHub, GitLab Cloud, Codeberg, ...), and that excludes people who self-host their own software forge and/or CD pipeline. Trusted Publisher works on the premise that GitHub (or any other hosted platform) is more trustworthy of key management than the repository administrator.

But the kicker is that this is ONLY about the storage of key material, and (unsurprisingly to anyone who knows a bit about security) it did not solve supply chain issues *at all* (and lead to "staged publish" be put together hastily by npm after yet another attack on a network of packages published via TP). To extract private key material means executing adverse code in a place that is, with TP, the exact same place where TP credentials are queried from. Which makes it entirely possible to publish malware that way.

It's only marginally harder to misuse and admittedly more convenient for package publishers, but it changes very little in the real world otherwise. Attackers don't sit on a stash of keys and attack out of the blue; as soon as they can they just blast off malware and try to spread it as fast as possible. A securely stored long-lived credential isn't intrinsically insecure. As I said, TP's root keys are themselves long lived (otherwise package registries would have to rotate them constantly!)...


Where I still disagree is the conclusion you draw from it. "How many keys doesn't matter at all" is true for the bot and false for the archive. The top eight accounts hold 10% of all packages. Six of those are not bots. A compromised session on any of them is still a trusted update to hundreds or thousands of machines, and the platform still gives nobody a signal that it happened.


The problem in your reasoning is the assumption that "trusted update" is a concept that exists/makes sense. Security works this way: ANY system that relies on trust is insecure to some degree; either adopt a zero-trust scheme and personally verify everything, or place your trust in select entities and hope they don't s#!t the bed. The latter is how TLS works, and very recently a certain Indian tech company showed why *anything* that relies on trust is flawed, including the backbone of the modern Internet.

Would enforcement of hardware keys improve how trustworthy updates are? Maybe. Can we enforce such policies meaningfully, knowing that some of the most downloaded packages are maintained by people who maintain less than 5 packages? I'm highly unsure, and I'd even argue that raising the barrier of entry to the AUR this much is a net negative for the greater Arch community.


Don't trust people on the Internet! Especially in today's dystopia created by a the lamest people who ever lived on earth and the butthole shaped logos... :)


~Cynthia

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to