Page MenuHome GnuPG
Feed Advanced Search

Tue, Dec 23

werner changed the status of T7983: gpg: the validity of a secret key is changed by making a certification with it from Open to Testing.
Tue, Dec 23, 12:34 PM · keyboxd, Bug Report, gpd5x, gnupg26

Mon, Dec 22

werner triaged T7983: gpg: the validity of a secret key is changed by making a certification with it as High priority.
Mon, Dec 22, 5:29 PM · keyboxd, Bug Report, gpd5x, gnupg26
werner added a comment to T7983: gpg: the validity of a secret key is changed by making a certification with it.

This has likely a similar cause as T1794

Mon, Dec 22, 3:14 PM · keyboxd, Bug Report, gpd5x, gnupg26
pl13 added a comment to T7983: gpg: the validity of a secret key is changed by making a certification with it.

I have been able to reproduce this on linux with gnupg 2.5.14.
I had two users (named Alice and Bob in the example), each generating a key pair.
These are the steps:

  • Both users have the "use-keyboxd" option in their common.conf (i could not reproduce the bug without this option)
Mon, Dec 22, 9:03 AM · keyboxd, Bug Report, gpd5x, gnupg26

Thu, Dec 18

werner placed T7730: gpg: retrieve a certificate from an LDAP server before sending it to the LDAP server up for grabs.
Thu, Dec 18, 12:11 PM · gnupg22, gnupg26, Feature Request, gpd5x
werner moved T7730: gpg: retrieve a certificate from an LDAP server before sending it to the LDAP server from WIP to QA on the gnupg26 board.
Thu, Dec 18, 12:11 PM · gnupg22, gnupg26, Feature Request, gpd5x
werner added a comment to T7730: gpg: retrieve a certificate from an LDAP server before sending it to the LDAP server.

Well, I tested this again. I created a new key and saved a copy. The I updated the expiration date to 2035 and sent the key to the LDAP server. Then I deleted the updated key locally and imported the old copy. Thus I have now:

Thu, Dec 18, 12:09 PM · gnupg22, gnupg26, Feature Request, gpd5x
werner added a comment to T7983: gpg: the validity of a secret key is changed by making a certification with it.

Yesterday I was able to reproduce it once. But despite more than a dozen more tries yesterday and this morning, I could not anymore replicate it. I tested on Unix and one oddity was that I forgot to kill the keyboxd for a clean new test and thus it could serve old keys despite that the pubring.db was already deleted (but the inode still open by keyboxd).

Thu, Dec 18, 10:21 AM · keyboxd, Bug Report, gpd5x, gnupg26

Wed, Dec 17

ebo added a project to T7983: gpg: the validity of a secret key is changed by making a certification with it: keyboxd.
Wed, Dec 17, 4:19 PM · keyboxd, Bug Report, gpd5x, gnupg26
ebo added a project to T7983: gpg: the validity of a secret key is changed by making a certification with it: Bug Report.
Wed, Dec 17, 4:14 PM · keyboxd, Bug Report, gpd5x, gnupg26
ebo added a comment to T7983: gpg: the validity of a secret key is changed by making a certification with it.

This is really weird behavior. It seems other secret keys in the keyring may also change to "undefined" validity when the certification is done with another key. And something about the key which is certified is important.
But it can also happen that it is enough to just import a secret key without certifying anything with it for it to be shown as "undefined" validity.

Wed, Dec 17, 3:04 PM · keyboxd, Bug Report, gpd5x, gnupg26
ebo created T7983: gpg: the validity of a secret key is changed by making a certification with it.
Wed, Dec 17, 12:28 PM · keyboxd, Bug Report, gpd5x, gnupg26

Tue, Dec 16

ebo renamed T7892: keyboxd: subkey listing issue with ADSKs from keyboxd: a new subkey is sometimes not stored in the fingerprint table. to keyboxd: subkey listing issue with ADSKs.
Tue, Dec 16, 12:28 PM · gnupg26, Bug Report, keyboxd, gnupg
ebo moved T7892: keyboxd: subkey listing issue with ADSKs from QA to Backlog on the gnupg26 board.

This relates to T7917: Check for revocation of the ADSK's original subkey

Tue, Dec 16, 12:25 PM · gnupg26, Bug Report, keyboxd, gnupg
ebo added a comment to T7892: keyboxd: subkey listing issue with ADSKs.

The expected behavior is that only "Ted" (the key from where the ADSK originates) is listed, regardless of ADSKs, on every listing.
Because for regular keys there can only ever be one, "gpg -k" shows always only one key.
Subkeys which are ADSKs shall therefore never be listed with this command.

Tue, Dec 16, 12:23 PM · gnupg26, Bug Report, keyboxd, gnupg
ebo changed the status of T7892: keyboxd: subkey listing issue with ADSKs from Testing to Open.

Tested with Gpg4win-5.0.0-beta446, identically to the procedure from the description:

Tue, Dec 16, 11:57 AM · gnupg26, Bug Report, keyboxd, gnupg

Mon, Dec 15

timegrid edited projects for T6853: GpgTar: S/MIME decryption fails with input/output error, added: gpd5x, gnupg26; removed gnupg, Restricted Project.
Mon, Dec 15, 11:17 AM · gnupg26, gpd5x, gpgtar
timegrid edited projects for T4446: please add --quick-revoke-subkey, added: gnupg26; removed Restricted Project, gnupg24.
Mon, Dec 15, 11:14 AM · gnupg26, Feature Request

Fri, Dec 12

ebo closed T7759: Kleopatra: Notepad encryption with S/MIME fails as Resolved.
Fri, Dec 12, 3:54 PM · gnupg26, gpgme, kleopatra, gpd5x
ebo edited projects for T7015: gpgsm: Add status messages reporting imported certificates on --learn-card, added: gnupg26; removed gnupg, Restricted Project.
Fri, Dec 12, 3:41 PM · gnupg26, S/MIME
ebo edited projects for T7099: Disable the import of certain card objects, added: gpd5x; removed Restricted Project.
Fri, Dec 12, 3:34 PM · gpd5x, gnupg26, scd, Feature Request
timegrid moved T1825: Add a re-encrypt to additional key from Backlog to QA on the gpd5x board.
Fri, Dec 12, 2:57 PM · gpd5x, gnupg26, Feature Request
timegrid edited projects for T1825: Add a re-encrypt to additional key, added: gpd5x; removed Restricted Project.
Fri, Dec 12, 2:57 PM · gpd5x, gnupg26, Feature Request
timegrid edited projects for T7101: Automagically create a PGP key from a X.509 cert, added: gnupg26; removed Restricted Project, gnupg.
Fri, Dec 12, 2:56 PM · gnupg26, Feature Request, S/MIME, OpenPGP
timegrid edited projects for T7593: Check the trustlist de-vs flag in the per key compliance check, added: gpd5x; removed Restricted Project.
Fri, Dec 12, 2:55 PM · gpd5x, gnupg26, vsd, Feature Request
ebo removed a project from T1235: adding automatic refresh-key: Restricted Project.
Fri, Dec 12, 2:27 PM · gnupg26, gnupg22, Feature Request
ebo closed T5447: Add feature to delete a key from an LDAP server as Resolved.

setting this to resolved, werner already tested this

Fri, Dec 12, 1:52 PM · gnupg22 (gnupg-2.2.49), vsd33 (vsd-3.3.3), gnupg26, LDAP
ebo moved T7730: gpg: retrieve a certificate from an LDAP server before sending it to the LDAP server from QA to WIP on the gnupg26 board.
Fri, Dec 12, 1:30 PM · gnupg22, gnupg26, Feature Request, gpd5x
ebo renamed T7548: Wrong error message when unblocking PIN from Kleopatra: Wrong error message when unblocking PIN to Wrong error message when unblocking PIN.
Fri, Dec 12, 12:00 PM · gnupg26, gpd5x

Thu, Dec 4

timegrid closed T7855: keybox/keydb locking issue in 2.6 as Resolved.

I also don't think, that a backport to 2.2 is neccessary.
As gnupg26 was tested in gpg4win5 beta413 as well, I also move this to done on the gnup26 workboard and mark this issue as resolved.

Thu, Dec 4, 3:01 PM · gnupg26, gpd5x
gniibe added a comment to T7855: keybox/keydb locking issue in 2.6 .

If we need to backport the locking fixes to 2.2, these two will be the start of changes:


Thu, Dec 4, 6:22 AM · gnupg26, gpd5x

Nov 28 2025

ebo moved T7759: Kleopatra: Notepad encryption with S/MIME fails from QA to Done on the gnupg26 board.
Nov 28 2025, 2:13 PM · gnupg26, gpgme, kleopatra, gpd5x
ebo moved T7759: Kleopatra: Notepad encryption with S/MIME fails from WIP to Done on the gpd5x board.

I would say this is done.

Nov 28 2025, 2:12 PM · gnupg26, gpgme, kleopatra, gpd5x
timegrid changed the status of T7730: gpg: retrieve a certificate from an LDAP server before sending it to the LDAP server from Testing to Open.

This seems not to work in Kleopatra/gpg in gpg4win-5.0.0-beta413 @ win11.

Nov 28 2025, 9:59 AM · gnupg22, gnupg26, Feature Request, gpd5x

Nov 27 2025

timegrid changed the status of T7866: Allow separate LDAP keyserver for uploading from Testing to Open.

Tested on gpg4win-5.0.0-beta413 @ win11 with the following entries in dirmngr.conf:

Nov 27 2025, 2:04 PM · gnupg22, vsd34, LDAP, Feature Request, gnupg26

Nov 25 2025

werner triaged T7947: Add feature to gpg-card to set the retry count to a different value. as Normal priority.

Yubikeys allow that. See my mail to the mailing list.

Nov 25 2025, 3:00 PM · Feature Request, scd, gnupg26
gniibe added a comment to T7873: Decrypt to foo.gpg.part files and rename.

The extension .part is used by Mozilla/Firefox. Curl uses .tmp. Is that OK for Windows machine to use .part?

Nov 25 2025, 5:41 AM · Feature Request, gnupg26

Nov 24 2025

rodolfoser added a comment to T7947: Add feature to gpg-card to set the retry count to a different value..

Seems like the OpenPGP Card Specification does not allow the change of retry counters.

Nov 24 2025, 10:41 PM · Feature Request, scd, gnupg26
werner triaged T7944: GnuPG: full-gen-key for kyber keys without passphrase will ask for passphrase twice as Low priority.

That is a feature not a bug. Make also sense if your threat model is store-trafic-no-decrypt-later. If you can get the key you will also be abale to get the cleartext. Any nobody can remember a passphrase on par with the claimed Kyber security level.

Nov 24 2025, 6:01 PM · PQC, Feature Request, gnupg26
timegrid added a comment to T7759: Kleopatra: Notepad encryption with S/MIME fails.

Yes, sorry, a typo, I corrected it.

Nov 24 2025, 9:30 AM · gnupg26, gpgme, kleopatra, gpd5x
ikloecker added a comment to T7759: Kleopatra: Notepad encryption with S/MIME fails.

Forgot to note: Setting S/MIME debug level in kleopatra via GnuPG System will write the right key to gpg.conf (if I understood it right, this was also a problem)

Nov 24 2025, 9:14 AM · gnupg26, gpgme, kleopatra, gpd5x

Nov 22 2025

werner created T7947: Add feature to gpg-card to set the retry count to a different value..
Nov 22 2025, 11:34 AM · Feature Request, scd, gnupg26

Nov 21 2025

timegrid moved T7855: keybox/keydb locking issue in 2.6 from Backlog to Done on the gpd5x board.

As this looks good to me on gpg4win-5.0.0-beta413 @ win11, I move this to done on the gpd5x board.

Nov 21 2025, 5:27 PM · gnupg26, gpd5x
alexk added a project to T7866: Allow separate LDAP keyserver for uploading: gnupg22.
Nov 21 2025, 4:09 PM · gnupg22, vsd34, LDAP, Feature Request, gnupg26
werner added a project to T7866: Allow separate LDAP keyserver for uploading: vsd34.
Nov 21 2025, 4:08 PM · gnupg22, vsd34, LDAP, Feature Request, gnupg26
timegrid created T7944: GnuPG: full-gen-key for kyber keys without passphrase will ask for passphrase twice.
Nov 21 2025, 2:25 PM · PQC, Feature Request, gnupg26
timegrid added a comment to T7759: Kleopatra: Notepad encryption with S/MIME fails.

Forgot to note: Setting S/MIME debug level in kleopatra via GnuPG System will write the right key to gpgsm.conf (if I understood it right, this was also a problem)

Nov 21 2025, 12:07 PM · gnupg26, gpgme, kleopatra, gpd5x
timegrid added a comment to T7759: Kleopatra: Notepad encryption with S/MIME fails.

I think last time I didn't test the actual problem.

Nov 21 2025, 11:12 AM · gnupg26, gpgme, kleopatra, gpd5x
gniibe added a comment to T7873: Decrypt to foo.gpg.part files and rename.

When --output option is used and the user uses temporary file and is ready for checking an error, that is, it's already prepared, it's redundant and useless, indeed.

Nov 21 2025, 7:23 AM · Feature Request, gnupg26

Nov 19 2025

werner moved T7315: Allow export and import of PQC secret keys. from WIP to QA on the gnupg26 board.
Nov 19 2025, 5:47 PM · gnupg26, OpenPGP, PQC, gnupg
werner moved T7893: GnuPG: Decryption fails if the pinentry dialog for the first tried recipient is canceled from Backlog to QA on the gnupg26 board.
Nov 19 2025, 5:46 PM · gnupg26, gnupg
werner added a project to T7893: GnuPG: Decryption fails if the pinentry dialog for the first tried recipient is canceled: gnupg26.
Nov 19 2025, 5:45 PM · gnupg26, gnupg
werner moved T7892: keyboxd: subkey listing issue with ADSKs from WIP to QA on the gnupg26 board.
Nov 19 2025, 5:44 PM · gnupg26, Bug Report, keyboxd, gnupg
werner moved T7914: Card s/n number missing in gpgsm from WIP to QA on the gnupg26 board.
Nov 19 2025, 5:42 PM · gnupg22, scd, S/MIME, Feature Request, gnupg26
werner added a comment to T7917: Check for revocation of the ADSK's original subkey .

With the next gpg release (2.5.14) the keyboxd has an extended fingerprint table which carries a flags column. A bit in this column can eventually be used to mark subkeys with the "R" key flag and the search funtion can be enhanced to ignore keys with that flag set. This way we can more easily lookup the actual ADSK key (with the "E" key flag) and check whether this subkey has been revoked.

Nov 19 2025, 11:04 AM · Feature Request, OpenPGP, gnupg26

Nov 18 2025

werner changed the status of T7892: keyboxd: subkey listing issue with ADSKs from Open to Testing.
Nov 18 2025, 5:29 PM · gnupg26, Bug Report, keyboxd, gnupg

Nov 17 2025

ebo added a project to T7892: keyboxd: subkey listing issue with ADSKs: gnupg26.
Nov 17 2025, 12:09 PM · gnupg26, Bug Report, keyboxd, gnupg
gniibe updated subscribers of T7873: Decrypt to foo.gpg.part files and rename.

@ikloecker says that Kleo already support this feature. (I didn't know that.)
So, compatibility flag to switch on/off the feature would be needed,
or this feature is not needed in GnuPG at all.

Nov 17 2025, 10:26 AM · Feature Request, gnupg26
gniibe added a comment to T7873: Decrypt to foo.gpg.part files and rename.

Here is my attempt to do that:

Nov 17 2025, 8:19 AM · Feature Request, gnupg26

Nov 16 2025

werner moved T7914: Card s/n number missing in gpgsm from Backlog to WiP on the gnupg22 board.
Nov 16 2025, 7:12 PM · gnupg22, scd, S/MIME, Feature Request, gnupg26
werner edited projects for T7914: Card s/n number missing in gpgsm, added: gnupg22; removed gnupg.
Nov 16 2025, 7:12 PM · gnupg22, scd, S/MIME, Feature Request, gnupg26
werner changed the status of T7914: Card s/n number missing in gpgsm from Open to Testing.

Fix applied. Thanks.

Nov 16 2025, 7:10 PM · gnupg22, scd, S/MIME, Feature Request, gnupg26
werner renamed T7290: Handle creation date in private key files for re-use of an existing key. from Handle creation date in private key files for re-use of an existing. to Handle creation date in private key files for re-use of an existing key..
Nov 16 2025, 6:57 PM · gnupg26, OpenPGP, gnupg
werner added a comment to T7290: Handle creation date in private key files for re-use of an existing key..

This is not a composite key specific thing despite that this is an extra challenge. The creation date is used to reconstruct a key if the public key has been lost and only the fingerprint is still available. A solution might be to test the all combinations of stored creation dates to match the fingerprint.

Nov 16 2025, 6:57 PM · gnupg26, OpenPGP, gnupg
werner renamed T7290: Handle creation date in private key files for re-use of an existing key. from Kyber+ECC with smartcards to Handle creation date in private key files for re-use of an existing..
Nov 16 2025, 6:54 PM · gnupg26, OpenPGP, gnupg
werner changed the status of T7315: Allow export and import of PQC secret keys. from Open to Testing.
Nov 16 2025, 6:50 PM · gnupg26, OpenPGP, PQC, gnupg
werner changed the status of T7315: Allow export and import of PQC secret keys., a subtask of T6815: PQC encryption for GnuPG, from Open to Testing.
Nov 16 2025, 6:50 PM · gnupg26, OpenPGP, PQC, gnupg

Nov 14 2025

werner moved T7315: Allow export and import of PQC secret keys. from Backlog to WIP on the gnupg26 board.
Nov 14 2025, 4:01 PM · gnupg26, OpenPGP, PQC, gnupg
werner renamed T7315: Allow export and import of PQC secret keys. from Allow exporting of PQC keys. to Allow export and import of PQC secret keys..
Nov 14 2025, 3:56 PM · gnupg26, OpenPGP, PQC, gnupg
werner moved T7759: Kleopatra: Notepad encryption with S/MIME fails from Done to WIP on the gpd5x board.
Nov 14 2025, 12:47 PM · gnupg26, gpgme, kleopatra, gpd5x
werner triaged T7914: Card s/n number missing in gpgsm as Normal priority.
Nov 14 2025, 12:42 PM · gnupg22, scd, S/MIME, Feature Request, gnupg26
werner renamed T7914: Card s/n number missing in gpgsm from Kleopatra: wrong info given for S/MIME secret key location on card to Card s/n number missing in gpgsm.
Nov 14 2025, 12:40 PM · gnupg22, scd, S/MIME, Feature Request, gnupg26
werner added projects to T7914: Card s/n number missing in gpgsm: gnupg26, Feature Request.
Nov 14 2025, 12:38 PM · gnupg22, scd, S/MIME, Feature Request, gnupg26
werner triaged T7917: Check for revocation of the ADSK's original subkey as High priority.
Nov 14 2025, 11:03 AM · Feature Request, OpenPGP, gnupg26

Nov 13 2025

ikloecker abandoned D615: gpg: Emit status error for unsupported export of secret dual key.

Werner is going to add the missing implementation so that the error will soon be gone.

Nov 13 2025, 3:18 PM · gnupg26

Nov 10 2025

werner created T7917: Check for revocation of the ADSK's original subkey .
Nov 10 2025, 11:06 AM · Feature Request, OpenPGP, gnupg26

Nov 6 2025

ikloecker requested review of D615: gpg: Emit status error for unsupported export of secret dual key.
Nov 6 2025, 8:11 AM · gnupg26
gniibe added a comment to T7873: Decrypt to foo.gpg.part files and rename.

Here is my idea to implement the feature:
(1) Extend struct iobuf_struct to have a field of temporary output (of int), just after real_fname.

  • OUTPUTFILE: When it's 1, it means that a temporary output file generated with real_fname original suffix removed and appended .tmp

(2) Modify get_output_file in plaintext.c and make_outfile_name in openfile.c, so that OUTPUTFILE semantics above is used and the field in iobuf_struct is marked accordingly.
(3) Modify proc_encrypted in mainproc.c so that it can rename .tmp file to the OUTPUTFILE or it can remove it when failure, when the field is active.

Nov 6 2025, 3:54 AM · Feature Request, gnupg26
gniibe added a comment to T7649: gnupg: Use KEM interface for encryption/decryption.

Let me explain the background.

Nov 6 2025, 12:57 AM · gnupg26

Nov 5 2025

onickolay added a comment to T7649: gnupg: Use KEM interface for encryption/decryption.

@gniibe Thanks for the detailed reply. Looks like we were lucky to hit v2.5.12 when building our CI containers few weeks ago, rebuilding those now with 2.5.13 fixed the problem. Thanks again!

Nov 5 2025, 7:25 PM · gnupg26
ebo edited projects for T7333: Allow gpg to auto-upload a new own key to LDAP servers, added: vsd34; removed vsd33.
Nov 5 2025, 11:56 AM · vsd34, gnupg26, gnupg22
gniibe closed T7845: gpgsm: Use KEM interface for encryption as Resolved.
Nov 5 2025, 2:25 AM · gnupg26
gniibe closed T7845: gpgsm: Use KEM interface for encryption, a subtask of T7649: gnupg: Use KEM interface for encryption/decryption, as Resolved.
Nov 5 2025, 2:25 AM · gnupg26
gniibe closed T7811: gpgsm: Use KEM interface for decryption, a subtask of T7649: gnupg: Use KEM interface for encryption/decryption, as Resolved.
Nov 5 2025, 2:24 AM · gnupg26
gniibe closed T7811: gpgsm: Use KEM interface for decryption as Resolved.
Nov 5 2025, 2:24 AM · gnupg26

Nov 3 2025

gniibe closed T7138: Windows (Semi-hosted environment): filename and network access, a subtask of T6508: Port GnuPG to 64-bit Windows, as Resolved.
Nov 3 2025, 3:41 AM · Windows 64, Feature Request, gnupg26
gniibe added a comment to T7649: gnupg: Use KEM interface for encryption/decryption.

@onickolay The change was originally introduced for PQC stuff. And then, we applied use of KEM API (of libgcrypt) also for ordinary ECDH, so, it affected ordinary ECDH encryption (between 2.5.9 and 2.5.12).
The intention is follow the recommendation of use of KEM. IIUC, next FIPS certification will require use of KEM, possibly.

Nov 3 2025, 1:37 AM · gnupg26

Nov 2 2025

onickolay added a comment to T7649: gnupg: Use KEM interface for encryption/decryption.

@gniibe @werner Is this change is supposed to work only for PQC stuff, or non-PQC as well, and where it is defined? As it breaks RNP tests for ordinary ECDH encryption (as it looks up for 0x40 prefix). It's not a problematic to update our code, but just want to know the reason for that.

Nov 2 2025, 3:23 PM · gnupg26

Oct 27 2025

timegrid added a comment to T7875: GnuPG: Deletion of kyber key fails.

Note that currently Kleopatra (gpg4win 5 beta) fails to delete the key, which might impact other operations. I'm currently trying to figure out, if some other bugs/quirks are a subsequent error or not.

Oct 27 2025, 12:33 PM · Bug Report, PQC, gnupg26
werner triaged T7875: GnuPG: Deletion of kyber key fails as Normal priority.

Workaround is to use --with-keygrip and delete both <keygrip>.key files. Problem here is that one part may be on a smartcard or one part might be shared (although not allowed) with other keys.

Oct 27 2025, 12:17 PM · Bug Report, PQC, gnupg26

Oct 24 2025

werner triaged T7873: Decrypt to foo.gpg.part files and rename as Normal priority.
Oct 24 2025, 9:37 AM · Feature Request, gnupg26

Oct 23 2025

werner merged T7779: dirmngr: use different keyserver for sending and receiving certificates into T7866: Allow separate LDAP keyserver for uploading.
Oct 23 2025, 1:40 PM · gnupg22, vsd34, LDAP, Feature Request, gnupg26

Oct 22 2025

werner moved T7804: de-vs compliance not shown if also password encrypted from WIP to QA on the gnupg26 board.
Oct 22 2025, 2:26 PM · gnupg22 (gnupg-2.2.49), vsd33 (vsd-3.3.3), Bug Report, vsd, gnupg26
werner moved T1825: Add a re-encrypt to additional key from Backlog to QA on the gnupg26 board.
Oct 22 2025, 2:25 PM · gpd5x, gnupg26, Feature Request
werner changed the status of T1825: Add a re-encrypt to additional key from Open to Testing.
Oct 22 2025, 2:25 PM · gpd5x, gnupg26, Feature Request
werner moved T7855: keybox/keydb locking issue in 2.6 from Backlog to QA on the gnupg26 board.
Oct 22 2025, 2:24 PM · gnupg26, gpd5x
werner moved T7866: Allow separate LDAP keyserver for uploading from WIP to QA on the gnupg26 board.
Oct 22 2025, 2:24 PM · gnupg22, vsd34, LDAP, Feature Request, gnupg26
werner changed the status of T7840: Oddity with 7816 change_reference_data from Open to Testing.
Oct 22 2025, 2:23 PM · Bug Report, gnupg22, gnupg26, scd
werner added a comment to T7855: keybox/keydb locking issue in 2.6 .

I'd sad we keep it as it is now (unless we see a regression). The real and only correct solution is the use of a daemon to serialize access.

Oct 22 2025, 1:34 PM · gnupg26, gpd5x
gniibe added a comment to T7855: keybox/keydb locking issue in 2.6 .

Still, there is a fundamental problem with keydb locking.

  • It only assures no-data-corruption.
  • When a process doing write access, another process reading the resource may encounter a problem (inconsistent data read), since data could be changed while accessing.
    • Currently, write access may occur with keybox compress, this means that users are not safe to invoke multiple gpg/gpgsm simultaneously (to be sure).
      • It would be: only keybox compress when users explicitly ask.
    • We could introduce a lock to read access... BUT naively adding a lock (both for read and write or read-multiple-write-one) results possible deadlock in gpgsm
      • in gpgsm, gpgsm_walk_cert_chain and gpgsm_validate_chain access the resource of keydb in a way of:
        • While it has a handle kh, by find_up routine, it may call keydb_store_cert by callback routine; The callback does write access to the resource opening another handle.
        • Currently, it works because of no lock for read access and keydb_store_cert appends data at the end.
Oct 22 2025, 9:20 AM · gnupg26, gpd5x