Package: rust-sequoia-sqv
Version: 1.5.0-2

With sqv >> 1.4 (containing
gitlab.com/sequoia-pgp/sequoia-sqv/-/commit/f78639e) sqv has a way to
override reference time. The implementation broke the way now() is treated
in that way, because now it computes `time` to be always provided as
argument to `with_policy` on the side of sqv.

When it is passed into sequoia-openpgp, it eventually reaches
https://docs.rs/sequoia-openpgp/latest/sequoia_openpgp/packet/signature/subpacket/struct.SubpacketAreas.html#method.signature_alive,
which treats preset default and unset diefferently, in that it allows skew
for when the value is unset.

The smallest repro I can come up with (to roughly match where the problem
appears) is:

# T1 e.g. = 2026-12-03T15:52:00Z
# T2 e.g. = 2026-12-03T15:53:00Z
$ sq key generate --own-key --name Alice --email [email protected] --output
alice-priv.pgp
$ sq keyring merge ./alice-priv.pgp > ./alice-keyring.pgp
$ echo hello > ./hello.txt
$ sq sign --signer-file alice-priv.pgp --time <T1> --message --output
hello.gpg --overwrite hello.txt
$ sqv --keyring ./alice-keyring.pgp --message --output=parsed-hello.txt
--overwrite --not-after <T2> hello.gpg

When executred before T1 the last command would start failing with sqv >>
1.4, because of the issue described.

In the version built from
https://salsa.debian.org/rust-team/debcargo-conf/-/merge-requests/1619 (a
rough patch getting back the old behavior) it completes successfully as (I
think) it is intended.

-- 
Regards,
Andrey

Reply via email to