🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.bugs.dist
1 messages
1 total messages Started by Julian Andres Klode Wed, 21 Oct 2026 09:50
Bug#1151504: apt: no default age limit for a Release file without Valid-Until
#1564
Author: Julian Andres Klode
Date: Wed, 21 Oct 2026 09:50
58 lines
4695 bytes
Not sure where the paragraphs went, so I reformatted this for you.

On Tue, Oct 20, 2026 at 11:31:54PM -0600, Christian Noé Ramos López wrote:
> Package: apt Version: 3.0.3 Severity: wishlist [en blanco] 

> For a repository whose Release file has no Valid-Until, apt by default puts
> no limit on how old that file may be. The one limit there was, the
> gpgv method refusing a signature by a key that has expired since, went
> away when sqv became the default method (da9a05e0), and nothing
> replaced it.
>
> I reported this privately to security@debian.org on 8
> October 2026, and it was closed on 12 October: sqv judges a key's
> expiry at the time of the signature by design, and I am not asking to
> change that. 
>
> The row from that report, run again on 21 October with
> apt 3.0.3, no lists yet and a file:// repository: an InRelease dated
> and signed on 1 June 2025 by a key that expired on 1 January 2026 is
> refused under the gpgv method (EXPKEYSIG) and accepted under the sqv
> method, sixteen months after its Date, without a warning.
>
> The controls come out the same under both methods: a signature made that day by a
> key that does not expire is accepted, and one made after its key
> expired is refused.
>
> Acquire::Max-ValidTime, or Valid-Until-Max in
> sources.list, sets such a limit: set to a week, it makes the sqv
> method refuse that InRelease as expired and still accept one dated
> that day. Its default is 0, "valid forever". apt could warn, or
> refuse, by default when a Release file without Valid-Until is older
> than some threshold measured against the current date; either would
> make the case in the original report visible. Debian's own trixie
> InRelease has no Valid-Until; trixie-updates and trixie-security have
> seven days.

This is being discussed but we run into a fundamental issue where Ubuntu
or Debian stable releases do not get resigned (Debian does until point
release), and the end of life may want to be bumped so there's no clear
end of life date to set.

We should, going forward, establish a maximum validity for repositories,
and tighten this progressively. I believe I good idea could be to say
that we define a cut-off date and all repositories will expire on:

    max(30 days after issuing time,a year after the cut-off date)

[30 days just for the sake of argument, further consultation to follow]

Unfortunately that's a significant shift that will also require some
additional infrastructure work on archive operators; and especially for
Debian stable releases, which are signed with offline keys currently
it is a significant shift in expectations.


-- 
debian developer - deb.li/jak | jak-linux.org - free software dev
ubuntu core developer                              i speak de, en
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads