GPG signing doesn't seem to work with the GPG SQLite DB format
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 38/100
調査の方向性
Start with BouncyCastleGpgKeyLocator.java, especially the referenced lines 430–431, and trace how it locates public keys and reports gpgNoPublicKeyFound. Then investigate how GnuPG's keyboxd exposes keys when use-keyboxd is set in common.conf; the issue does not identify a test. Done means signing can find the configured public key with the SQLite key database, without requiring a filesystem keybox.
索引モデルが issue の本文から書いたものです。
説明
Version
7.6.0.202603022253-r
Operating System
Windows
Bug description
I use gpg4win on a Windows device, which seems to default to storing GPG keys in the newer SQLite database format in $env:APPDATA/gnupg/public-keys.d/pubring.db.
Trying to commit with a signature throws in https://github.com/eclipse-jgit/jgit/blob/b302b8737d6e2976d9926be8b04338339dc1ea30/org.eclipse.jgit.gpg.bc/src/org/eclipse/jgit/gpg/bc/internal/BouncyCastleGpgKeyLocator.java#L430-L431 because the signing key I have configured in Git can't be found, because jgit+bc can't find the public key.
The very quick and dirty solution I had was to run
gpg-disable-keyboxd
gpg-enable-keyboxd
(those are not gpg sub-commands, they are individual binaries). If I've understood the problem properly disabling keyboxd wrote out a copy of all the keys in the .db file to $env:APPDATA/gnupg/pubring.kbx, which jgit+bc does find when trying to sign a commit.
Actual behavior
No stack trace, just an error message containing the text in gpgNoPublicKeyFound (Unable to find a public-key with key or user id: {0}) and searching the code shows this is the only place where the message text is used.
Expected behavior
jgit+bc should check and see if the use-keyboxd is in common.conf (https://www.gnupg.org/documentation/manuals/gnupg/GPG-Configuration.html), and if it is it should query keyboxd (no idea how, sorry) for the keys, instead of rummaging around in the filesystem itself.
Relevant log output
Other information
No response
- 主要言語
- Java
- スター
- 427
- フォーク
- 116
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
eclipse-jgit/jgit のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
eclipse-jgit/jgit#329 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
eclipse-jgit/jgit#327 ·
-
Repository.create(boolean bare) should provide a no-arg overload that uses isBare()再び着手できるかも @hardikyadav12 が 77 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
eclipse-jgit/jgit#297 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
eclipse-jgit/jgit#293 · コメント 2 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
eclipse-jgit/jgit#288 ·
eclipse-jgit/jgit の issue をすべて見る
似ている issue
-
? - Needs Triage bot_watch bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
NVIDIA/cudf-spark-jni#5594 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
DataONEorg/dataone-indexer#390 ·