Article View: linux.debian.bugs.dist
Article #2226Bug#1152144: golang-github-zalando-go-keyring: please update to 0.2.5 or later, KeePassXC confirm-on-retrieve fails with 0.2.4
From: Thomas Moore
Date: Mon, 26 Oct 2026 07:40
Date: Mon, 26 Oct 2026 07:40
189 lines
10436 bytes
10436 bytes
------=_Part_347708_2045278312.1792999739697 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Package: golang-github-zalando-go-keyring Version: 0.2.4-1 Severity: normal Dear Maintainer, Programs built against go-keyring 0.2.4 cannot read a secret from KeePassXC= 's Secret Service when KeePassXC is set to confirm each retrieval. The read= fails at once with org.freedesktop.Secret.Error.IsLocked and no prompt app= ears. Upstream fixed this in v0.2.5. The package is at 0.2.4-1 in stable, t= esting and unstable, and your tracker flags 0.2.8 as available. How I found it gh 2.46.0 fails with "no oauth token found for github.com" right after a su= ccessful gh auth login. gh 2.46.0-4 build-depends on golang-github-zalando-= go-keyring-dev >=3D 0.2.4. The official upstream gh 2.46.0 binary embeds go= -keyring v0.2.4 and fails the same way. Upstream gh 2.103.2 embeds v0.2.8, = shows the KeePassXC prompt and works. I tested on Ubuntu 26.04.1 LTS with gh 2.46.0-4ubuntu0.26.04.1~esm1 and Kee= PassXC 2.7.10. I have not tested Debian itself. Debian stable ships gh 2.46= .0-3 and the same library version, so I expect the same result there. To reproduce 1. In KeePassXC, enable Secret Service Integration and tick "Confirm when p= asswords are retrieved by clients". 2. Run gh auth login -h github.com. 3. Run gh auth token. It prints "no oauth token found for github.com", exit= s 1 within about 30 ms and shows no prompt. 4. Untick the option and run step 3 again. It works. What the bus shows I watched the session bus with dbus-monitor, filtered to method calls on th= e Secret Service, Collection and Item interfaces plus error replies. Item a= nd session ids are left out. With go-keyring 0.2.4, run twice, once searching for username "" and once f= or username realstuffie: =C2=A0 Service.Unlock on /org/freedesktop/secrets/aliases/default =C2=A0 Collection.SearchItems with service=3Dgh:github.com and the username =C2=A0 Service.OpenSession with "plain" =C2=A0 Item.GetSecret on the item =C2=A0 KeePassXC replies Secret.Error.IsLocked under 60 microseconds later. With go-keyring 0.2.8, same item: =C2=A0 Service.Unlock on the default collection =C2=A0 Collection.SearchItems with service=3Dgh:github.com and username=3Dr= ealstuffie =C2=A0 Service.OpenSession with "plain" =C2=A0 Service.Unlock on the item itself =C2=A0 about 3 seconds while I approved the KeePassXC prompt =C2=A0 Item.GetSecret on the item, which succeeds. Cause With confirmation on, KeePassXC locks each item separately, so a client has= to unlock the item before calling GetSecret. Version 0.2.4 only unlocks th= e collection. Upstream PR 108, "Prompt to unlock individual item when getti= ng secret from keyring in unix system", commit 14b7cd2, was merged on 2024-= 06-06 and released in v0.2.5. KeePassXC issue 9334 describes the same sympt= om from the client side. Request Please package 0.2.5 or later. If a smaller change suits you better, cherry= -picking 14b7cd2 as a patch fixes this too. gh needs a rebuild to pick up e= ither change. I have not checked other reverse dependencies. Until then, unticking the confirm option in KeePassXC avoids the failure. Thanks, Thomas Moore ------=_Part_347708_2045278312.1792999739697 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head>= <meta content=3D"text/html;charset=3DUTF-8" http-equiv=3D"Content-Type"></h= ead><body ><div style=3D"font-family: Verdana, Arial, Helvetica, sans-serif= ; font-size: 10pt;"><div>Package: golang-github-zalando-go-keyring<br></div= ><div>Version: 0.2.4-1<br></div><div>Severity: normal<br></div><div><br></d= iv><div>Dear Maintainer,<br></div><div><br></div><div>Programs built agains= t go-keyring 0.2.4 cannot read a secret from KeePassXC's Secret Service whe= n KeePassXC is set to confirm each retrieval. The read fails at once with o= rg.freedesktop.Secret.Error.IsLocked and no prompt appears. Upstream fixed = this in v0.2.5. The package is at 0.2.4-1 in stable, testing and unstable, = and your tracker flags 0.2.8 as available.<br></div><div><br></div><div>How= I found it<br></div><div><br></div><div>gh 2.46.0 fails with "no oauth tok= en found for github.com" right after a successful gh auth login. gh 2.46.0-= 4 build-depends on golang-github-zalando-go-keyring-dev >=3D 0.2.4. The = official upstream gh 2.46.0 binary embeds go-keyring v0.2.4 and fails the s= ame way. Upstream gh 2.103.2 embeds v0.2.8, shows the KeePassXC prompt and = works.<br></div><div><br></div><div>I tested on Ubuntu 26.04.1 LTS with gh = 2.46.0-4ubuntu0.26.04.1~esm1 and KeePassXC 2.7.10. I have not tested Debian= itself. Debian stable ships gh 2.46.0-3 and the same library version, so I= expect the same result there.<br></div><div><br></div><div>To reproduce<br= ></div><div><br></div><div>1. In KeePassXC, enable Secret Service Integrati= on and tick "Confirm when passwords are retrieved by clients".<br></div><di= v>2. Run gh auth login -h github.com.<br></div><div>3. Run gh auth token. I= t prints "no oauth token found for github.com", exits 1 within about 30 ms = and shows no prompt.<br></div><div>4. Untick the option and run step 3 agai= n. It works.<br></div><div><br></div><div>What the bus shows<br></div><div>= <br></div><div>I watched the session bus with dbus-monitor, filtered to met= hod calls on the Secret Service, Collection and Item interfaces plus error = replies. Item and session ids are left out.<br></div><div><br></div><div>Wi= th go-keyring 0.2.4, run twice, once searching for username "" and once for= username realstuffie:<br></div><div> Service.Unlock on /org/freedesk= top/secrets/aliases/default<br></div><div> Collection.SearchItems wit= h service=3Dgh:github.com and the username<br></div><div> Service.Ope= nSession with "plain"<br></div><div> Item.GetSecret on the item<br></= div><div> KeePassXC replies Secret.Error.IsLocked under 60 microsecon= ds later.<br></div><div><br></div><div>With go-keyring 0.2.8, same item:<br= ></div><div> Service.Unlock on the default collection<br></div><div>&= nbsp; Collection.SearchItems with service=3Dgh:github.com and username=3Dre= alstuffie<br></div><div> Service.OpenSession with "plain"<br></div><d= iv> Service.Unlock on the item itself<br></div><div> about 3 se= conds while I approved the KeePassXC prompt<br></div><div> Item.GetSe= cret on the item, which succeeds.<br></div><div><br></div><div>Cause<br></d= iv><div><br></div><div>With confirmation on, KeePassXC locks each item sepa= rately, so a client has to unlock the item before calling GetSecret. Versio= n 0.2.4 only unlocks the collection. Upstream PR 108, "Prompt to unlock ind= ividual item when getting secret from keyring in unix system", commit 14b7c= d2, was merged on 2024-06-06 and released in v0.2.5. KeePassXC issue 9334 d= escribes the same symptom from the client side.<br></div><div><br></div><di= v>Request<br></div><div><br></div><div>Please package 0.2.5 or later. If a = smaller change suits you better, cherry-picking 14b7cd2 as a patch fixes th= is too. gh needs a rebuild to pick up either change. I have not checked oth= er reverse dependencies.<br></div><div><br></div><div>Until then, unticking= the confirm option in KeePassXC avoids the failure.<br></div><div><br></di= v><div>Thanks,<br></div><div>Thomas Moore<br></div></div><br></body></html> ------=_Part_347708_2045278312.1792999739697--
Technical Details
Message-ID:
<NSntg-7WCx-21@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!bofh.it!news.nic.it!robomodShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!bofh.it!news.nic.it!robomod From: Thomas Moore <sales@mooresolutions.co.nz> Newsgroups: linux.debian.bugs.dist Subject: Bug#1152144: golang-github-zalando-go-keyring: please update to 0.2.5 or later, KeePassXC confirm-on-retrieve fails with 0.2.4 Date: Mon, 26 Oct 2026 08:40:02 +0100 Message-ID: <NSntg-7WCx-21@gated-at.bofh.it> X-Original-To: "submit" <submit@bugs.debian.org> X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Mon Oct 26 07:31:10 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.449 Reply-To: sales@mooresolutions.co.nz, 1152144@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: team+pkg-go@tracker.debian.org X-Debian-Pr-Message: report 1152144 X-Debian-Pr-Package: golang-github-zalando-go-keyring X-Debian-Pr-Source: golang-github-zalando-go-keyring Arc-Seal: i=1; a=rsa-sha256; t=1792999740; cv=none; d=zohomail.com.au; s=zohoarc; b=qLJJo9A4r15yc3xlKfrbTvi+AxlDvcTPF1IcU1M646+0opgquzTIGdXnu//N92jXMYFjjmJXCMYg+s7ofyUSO+qynxDbm7Ra5a9X0u378ZM8q9B5fEgEe7Z395P9YOJHB6k72Q4W1mVEQlgF5y0bYHYDqM0owtWdMGpsLUR07RI= Arc-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com.au; s=zohoarc; t=1792999740; h=Content-Type:Date:Date:From:From:MIME-Version:Message-ID:Reply-To:Reply-To:Subject:Subject:To:To:Message-Id:Cc; bh=pysGLxHS+sOd4T/yrYKVUWuP0RfT6FhO+J+7/oEMCBE=; b=rBGa0Kk38d/FK2hnIvXA0Df3NM8mmV7tE2QkHuHpa9RLf2XljlZgl+g5OqIruN0LEpzBKeG4fyg3r2JyZ0mRPxfYB0Dts/qOypEQh53IUCGeNTcBBkI1PJq1fM5rnpx8O/2uqj953fCkr+2zpLtScbmLonkQ2QdgYZFR5hiAdSM= Arc-Authentication-Results: i=1; mx.zohomail.com.au; dkim=pass header.i=mooresolutions.co.nz; spf=pass smtp.mailfrom=sales@mooresolutions.co.nz; dmarc=pass header.from=<sales@mooresolutions.co.nz> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_347708_2045278312.1792999739697" Importance: Medium User-Agent: Zoho Mail X-Mailer: Zoho Mail X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/1998972 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 189 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Mon, 26 Oct 2026 20:28:59 +1300 X-Original-Message-ID: <1a1771cd130.374872bf99479.3630447269294583418@mooresolutions.co.nz>