🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #1643

Bug#1151505: apt: Signed-By with a subkey or "!" fails under the sqv method

#1643
From: Julian Andres Klode
Date: Wed, 21 Oct 2026 21:30
65 lines
4983 bytes
On Wed, Oct 21, 2026 at 11:26:30AM +0200, Julian Andres Klode wrote:
> Contrl: severity -1 minor
> 
> On Wed, Oct 21, 2026 at 02:31:26AM -0400, Christian Noé Ramos López wrote:
> > Package: apt
> > Version: 3.0.3
> > Severity: normal
> > X-Debbugs-Cc: chris@nortesoftware.dev
> > 
> > 
> > 
> > 
> > With sqv, the default method in apt 3.0.3, three forms of Signed-By
> > that sources.list(5) documents no longer work. A repository that uses
> > any of them fails as not signed, where the gpgv method accepts it.
> > 
> > sources.list(5) has Signed-By take "fingerprints of keys to select
> > from these keyrings", and an appended "!" stops a fingerprint from
> > also accepting "signatures by a subkey of this key". With K a primary
> > that only certifies and has a signing subkey, P a primary that signs,
> > and both in the keyring named before the fingerprint:
> > 
> >     Signed-By fingerprint   signed by    gpgv method   sqv method
> >     K's subkey              K's subkey   accepted      refused
> >     K's subkey, with "!"    K's subkey   accepted      refused
> >     P, with "!"             P            accepted      refused
> > 
> > Each row is apt-get update on 21 October 2026, apt 3.0.3 with sqv
> > 1.3.0 or gpgv 2.4.7, a file:// repository and a fresh root: accepted
> > means the InRelease landed in lists/, refused means "No good signature
> > from required signer: <fingerprint>" and "is not signed". Two runs
> > with new keys agree, and so do the controls under both methods: K's
> > primary is accepted for its subkey's signature, and P is refused
> > for it.
> > 
> > apt's own test already skips the subkey case for sqv: "This is only
> > supported for gpgv, so require an explicit gpgv command, otherwise the
> > default verification backend may be sqv."
> > (test/integration/test-releasefile-verification). The answer to
> > #863317 in 2017 was to pin keys with Signed-By: "you have to pin both
> > the master and the subkeys (actually only the latter)". With sqv it is
> > the other way round: the subkey alone is refused, and only the master
> > matches.
> 
> Yes this is not implemented or implementable - sqv returns us the
> primary key it verified with.
> 
> Given that key pinning is a bit antithetical to the whole idea of
> key files being atomic units, and also has been universally phased
> out in other ecosystems, it seems reasonable to remove it going
> forward.
> 
> Manual pages we could remove the mention of subkeys immediately,
> or all mentions of key pinning.

Deprecating fingerprints in
https://salsa.debian.org/apt-team/apt/-/merge_requests/633

as well as removing Signed-By pinning inside the Release file
which nobody used.


-- 
debian developer - deb.li/jak | jak-linux.org - free software dev
ubuntu core developer                              i speak de, en
Technical Details
Message-ID: <NQM2J-73hO-7@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!3.eu.feeder.erje.net!feeder.erje.net!news.roellig-ltd.de!open-news-network.org!weretis.net!feeder8.news.weretis.net!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
References: <NQy9s-6VzK-13@gated-at.bofh.it> <NQANX-6X1X-1@gated-at.bofh.it> <NQy9s-6VzK-13@gated-at.bofh.it> <NQANX-6X1X-1@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!3.eu.feeder.erje.net!feeder.erje.net!news.roellig-ltd.de!open-news-network.org!weretis.net!feeder8.news.weretis.net!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Julian Andres Klode <jak@debian.org>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1151505: apt: Signed-By with a subkey or "!" fails under the sqv method
Date: Wed, 21 Oct 2026 23:30:01 +0200
Message-ID: <NQM2J-73hO-7@gated-at.bofh.it>
References: <NQy9s-6VzK-13@gated-at.bofh.it> <NQANX-6X1X-1@gated-at.bofh.it> <NQy9s-6VzK-13@gated-at.bofh.it> <NQANX-6X1X-1@gated-at.bofh.it>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Wed Oct 21 21:21:16 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.9
Reply-To: Julian Andres Klode <jak@debian.org>, 1151505@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: deity@lists.debian.org
X-Debian-Pr-Message: followup 1151505
X-Debian-Pr-Package: apt
X-Debian-Pr-Source: apt
Accept-Language: de-DE, de, en-GB, en-US, en
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
X-Greylist: delayed 42809 seconds by postgrey-1.37 at buxtehude; Wed, 21 Oct 2026 21:20:03 UTC
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/1998008
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 65
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Wed, 21 Oct 2026 23:19:57 +0200
X-Original-Message-ID: <20261021231923.GA3678246@debian.org>
X-Original-References: <179256428629.576403.12838905591422709881.reportbug@debian> <20261021112032.GA3001067@debian.org> <179256428629.576403.12838905591422709881.reportbug@debian> <20261021112032.GA3001067@debian.org>