Page MenuHome GnuPG

tofu: Missing entry in the bindings table for new key
Closed, ResolvedPublic

Description

% make -Ctests/openpgp check XTESTS=shell.scm
...-M0LDGj % echo trust-model tofu+pgp >> gpg.conf
...-M0LDGj % gpg2 --quick-generate-key foo@example.org
gpg: keybox '/tmp/gpgscm-20170124T124733-run-tests-M0LDGj/pubring.kbx' created
gpg: /tmp/gpgscm-20170124T124733-run-tests-M0LDGj/trustdb.gpg: trustdb created
gpg: key C924BC641AB636D7 marked as ultimately trusted
gpg: directory '/tmp/gpgscm-20170124T124733-run-tests-M0LDGj/openpgp-revocs.d'
created
gpg: revocation certificate stored as
'/tmp/gpgscm-20170124T124733-run-tests-M0LDGj/openpgp-revocs.d/5EB62490879A1C2EE9CF7E38C924BC641AB636D7.rev'
...-M0LDGj % gpg2 --sign gpg.conf
...-M0LDGj % gpg2 --verify gpg.conf.gpg
gpg: Signature made Tue Jan 24 13:47:52 2017 CET
gpg: using RSA key 5EB62490879A1C2EE9CF7E38C924BC641AB636D7
gpg: please do a --check-trustdb
gpg: Good signature from "foo@example.org" [ultimate]
gpg: error updating TOFU database: NOT NULL constraint failed: signatures.binding
gpg: TOFU: error registering signature: General error
gpg: WARNING: This key is not certified with a trusted signature!
gpg: There is no indication that the signature belongs to the owner.
Primary key fingerprint: 5EB6 2490 879A 1C2E E9CF 7E38 C924 BC64 1AB6 36D7

Event Timeline

justus set External Link to https://lists.gnupg.org/pipermail/gnupg-users/2017-January/057498.html.Jan 24 2017, 1:53 PM
justus set Version to master.
justus added subscribers: justus, neal.

The underlying problem is that bindings for ultimately trusted keys were not
registered with the TOFU data.

Fixed in 769272ba87f282a69e8d5f9bb27c86e6bec4496b

neal added a project: Restricted Project.Feb 2 2017, 2:25 PM
justus removed a project: Restricted Project.

So I believe that if we have a test that demonstrates this problem, then it is
safe to set the status to resolved.