<feed xmlns='http://www.w3.org/2005/Atom'>
<title>apt/apt-pkg/contrib/gpgv.cc, branch 3.3.1</title>
<subtitle>Debians commandline package manager</subtitle>
<id>https://git.kalnischkies.de/apt/atom?h=3.3.1</id>
<link rel='self' href='https://git.kalnischkies.de/apt/atom?h=3.3.1'/>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/'/>
<updated>2025-05-19T15:58:13Z</updated>
<entry>
<title>Fix error handling with getline</title>
<updated>2025-05-19T15:58:13Z</updated>
<author>
<name>Walter Lozano</name>
<email>walter.lozano@collabora.com</email>
</author>
<published>2022-10-14T12:13:00Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=91e8c456964d5ff4b3b7afe2f1cb074de9dfe592'/>
<id>urn:sha1:91e8c456964d5ff4b3b7afe2f1cb074de9dfe592</id>
<content type='text'>
The function getline is used to read data from different streams, however,
the error handling is not accurate.

From the man page, getline returns -1 on failure and sets errno accordingly,
but the current implementation only checks errno to see if there was a
failure. With this approach, in case getline returns success but also sets
errno it is consider and error.

Fix the issue but also checking the return value of getline.

Signed-off-by: Walter Lozano &lt;walter.lozano@collabora.com&gt;
</content>
</entry>
<entry>
<title>Return string_view from Apt::String::Strip(). Take string_view in VectorizeString(), StringSplit(), SubstVar()</title>
<updated>2025-02-14T18:45:12Z</updated>
<author>
<name>наб</name>
<email>nabijaczleweli@nabijaczleweli.xyz</email>
</author>
<published>2025-01-23T19:37:35Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=384cfa1fe9dfd30b35d6f8b0ae87be643ab75d06'/>
<id>urn:sha1:384cfa1fe9dfd30b35d6f8b0ae87be643ab75d06</id>
<content type='text'>
</content>
</entry>
<entry>
<title>sqv, gpgv: Do not fail if Dir::Etc::Trusted is set and trusted.gpg.d is missing</title>
<updated>2025-01-22T08:55:11Z</updated>
<author>
<name>Julian Andres Klode</name>
<email>julian.klode@canonical.com</email>
</author>
<published>2025-01-22T08:34:37Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=09c76cb29b61e1d523a30287f8a9bf0cb0b608e7'/>
<id>urn:sha1:09c76cb29b61e1d523a30287f8a9bf0cb0b608e7</id>
<content type='text'>
This should remain a warning case for now. So push the errors
to a stack and see if we can find any file.

Explictly warn again if Dir::Etc::trusted is set, as it is like
_super_ deprecated.

Reported-By: Cyril Brulebois &lt;kibi@debian.org&gt; in Bug#1032131
</content>
</entry>
<entry>
<title>Remove superseded warning about trusted.gpg fallback</title>
<updated>2025-01-21T11:16:34Z</updated>
<author>
<name>Julian Andres Klode</name>
<email>julian.klode@canonical.com</email>
</author>
<published>2025-01-20T11:31:55Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=e14417db27771ad85f45880974c8f59f05d138f1'/>
<id>urn:sha1:e14417db27771ad85f45880974c8f59f05d138f1</id>
<content type='text'>
This warning has been superseded by the missing sources.list
notice (which will also become a warning shortly)

Adjust the sqv exit to avoid introducing a new spurious
"No good signature" that we did not reach before.

moo
</content>
</entry>
<entry>
<title>Remove leftovers of the apt-key removal</title>
<updated>2025-01-05T22:16:09Z</updated>
<author>
<name>David Kalnischkies</name>
<email>david@kalnischkies.de</email>
</author>
<published>2024-12-27T02:16:56Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=25cd3ded69a79c2a7eb3d858e041f1509f5f5ed8'/>
<id>urn:sha1:25cd3ded69a79c2a7eb3d858e041f1509f5f5ed8</id>
<content type='text'>
References: a00fbbdb28cc31e78882301c2efe7218583ab4cb
</content>
</entry>
<entry>
<title>Drop APT_NORETURN usage</title>
<updated>2025-01-05T22:16:08Z</updated>
<author>
<name>David Kalnischkies</name>
<email>david@kalnischkies.de</email>
</author>
<published>2024-12-26T21:00:03Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=9000543eb219f83b6b9592b681fc6811bc56e26f'/>
<id>urn:sha1:9000543eb219f83b6b9592b681fc6811bc56e26f</id>
<content type='text'>
[[noreturn]] is a C++11 feature and so we can just use it
unconditionally.
</content>
</entry>
<entry>
<title>methods: Add new sqv method</title>
<updated>2024-12-22T22:51:22Z</updated>
<author>
<name>Julian Andres Klode</name>
<email>jak@debian.org</email>
</author>
<published>2024-12-07T15:44:18Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=da9a05e0b0b2150dbb67090e8b0c3922e46bd5cf'/>
<id>urn:sha1:da9a05e0b0b2150dbb67090e8b0c3922e46bd5cf</id>
<content type='text'>
The new sqv method uses sequoia's sqv tool to verify files. The
tool's interface is quite simple: It returns 0 on success, and
prints one line per good signer with the fingerprint.

sqv has a configurable crypto policy. We have defined apt-specific
override mechanisms for sequoia's standard policy, allowing both
users, distributions, and apt package to provide overrides for
Sequoia's default policy in meaningful ways.

The sqv method will be built and be the standard method for
verifying OpenPGP signatures provided that `sqv` is in the
PATH during building. It is not built if there was no sqv
at build time, so you need a rebuild to enable sqv later
on.

On the flip side, the gpgv method is always built, but it
does need to be always built: If APT::Key::GPGVCommand is
set, we need to fallback to it - this is important to
support existing users of that interface such as
mmdebstrap. Also we want to fall back to it when /usr/bin/sqv
disappears - for example in our CI :D

A couple of concessions have been made for test suite purposes:

- Failure to split a clearsigned file only shows the summary,
  as the gpgv method also only showed it, and no details why
  it failed.
- We write "Got GOODSIG &lt;fingerprint&gt;" in debug mode to mimic
  the gpgv code to keep the test suite happy.

- In various places in the test suite we assert minimal output
  from sqv, but sqv's human output is not intended to be stable.
  This will incur additional work when it breaks. However we do
  not _parse_ the output, so actual operation of apt is unaffected.

A couple of things are suboptimal here:

- We are still doing clearsigned splitting ourselves. sqv only
  has support for detached signatures right now, whereas sqopv
  has support for clearsigned files as well (but sqopv does not
  provide any reasons for why signature verification fails or
  means to set a policy).

- Deprecation of algorithms happens on a timebomb basis in
  sequoia. We have no means to give users warnings ahead of
  time if their configuration is outdated.

We have implemented various bits that probably should be going away:

- Fallback to trusted.gpg
  This is just annoying...
- Support for fingerprints in Signed-By (no subkey matching though)
  The extra work here is arguably less compared to gpgv.
- Check the keyring for correctness.
  With Signed-By everywhere, we should just error out rather than
  skip broken keyrings.

Moo
</content>
</entry>
<entry>
<title>Remove gnupg and versioned gpgv test depends</title>
<updated>2024-12-20T07:59:48Z</updated>
<author>
<name>Julian Andres Klode</name>
<email>julian.klode@canonical.com</email>
</author>
<published>2024-12-20T07:59:48Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=becf3fed0f5f3da225eb1df2cd306add1fdf5ab8'/>
<id>urn:sha1:becf3fed0f5f3da225eb1df2cd306add1fdf5ab8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>gpgv: Extract VerifyDetachedSignatureFile()</title>
<updated>2024-12-17T18:21:21Z</updated>
<author>
<name>Julian Andres Klode</name>
<email>jak@debian.org</email>
</author>
<published>2024-12-17T18:20:50Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=f54a561bc81d1bcbce6a107ad535f0c6d6e88d38'/>
<id>urn:sha1:f54a561bc81d1bcbce6a107ad535f0c6d6e88d38</id>
<content type='text'>
This is a pretty standalone function, extract it for later
reuse.
</content>
</entry>
<entry>
<title>gpgv: Drop references to apt-key</title>
<updated>2024-12-07T14:14:33Z</updated>
<author>
<name>Julian Andres Klode</name>
<email>julian.klode@canonical.com</email>
</author>
<published>2024-12-04T10:12:34Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=2f9775ed580656214e62e7916ee896776fabc9e7'/>
<id>urn:sha1:2f9775ed580656214e62e7916ee896776fabc9e7</id>
<content type='text'>
</content>
</entry>
</feed>
