🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.bugs.dist
1 messages
1 total messages Started by Thomas Moore Mon, 26 Oct 2026 07:40
Bug#1152144: golang-github-zalando-go-keyring: please update to 0.2.5 or later, KeePassXC confirm-on-retrieve fails with 0.2.4
#2226
Author: Thomas Moore
Date: Mon, 26 Oct 2026 07:40
189 lines
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 &gt;=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>&nbsp; Service.Unlock on /org/freedesk=
top/secrets/aliases/default<br></div><div>&nbsp; Collection.SearchItems wit=
h service=3Dgh:github.com and the username<br></div><div>&nbsp; Service.Ope=
nSession with "plain"<br></div><div>&nbsp; Item.GetSecret on the item<br></=
div><div>&nbsp; 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>&nbsp; Service.Unlock on the default collection<br></div><div>&=
nbsp; Collection.SearchItems with service=3Dgh:github.com and username=3Dre=
alstuffie<br></div><div>&nbsp; Service.OpenSession with "plain"<br></div><d=
iv>&nbsp; Service.Unlock on the item itself<br></div><div>&nbsp; about 3 se=
conds while I approved the KeePassXC prompt<br></div><div>&nbsp; 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--
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads