https://bugs.kde.org/show_bug.cgi?id=524592

            Bug ID: 524592
           Summary: ksecretd stuck in a loop while opening GPG encrypted
                    wallet, can't provide passwords to applications
    Classification: Frameworks and Libraries
           Product: frameworks-kwallet
      Version First unspecified
       Reported In:
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: major
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
  Target Milestone: ---

DESCRIPTION

Although it's less used, kwalletd/ksecretd handles also GPG-encrypted wallets.
I recently updated to 068d7d0 in master, and ksecretd can't provide passwords 
to applications anymore. The high-level symptom is that a dialog appears
mentioning repeated failed access to a wallet and that "an application may
misbehave". Inspecting the wallet with kwalletmanager shows the same error, and
no password is shown.

I ran ksecretd with debug output enabled and I noticed it's entirely stuck in a
loop: 

kf.wallet.backend: This wallet was encrypted using GPG key with ID 
"FBE55AEDA29D259B"
kf.wallet.backend: The key was found.
kf.wallet.backend: Setting useNewHash to true
kf.wallet.backend: Wallet new enough, using new hash
kf.wallet.backend: This wallet was encrypted using GPG key with ID 
"FBE55AEDA29D259B"
kf.wallet.backend: The key was found.
kf.wallet.backend: Setting useNewHash to true
kf.wallet.backend: Wallet new enough, using new hash

That's also when the repeated access warning appears. The GPG-handling part of
the code does MD5 hashing at some point, I wonder if it's related (but I may be
completely off).

STEPS TO REPRODUCE
1. Start ksecretd or autostart it
2. Provide GPG passphrase to unlock the GPG key

OBSERVED RESULT

Applications are unable to access passwords.

EXPECTED RESULT

Applications are able to access saved passwords.

SOFTWARE/OS VERSIONS
Operating System (available in the Info Center app, or by running `kinfo` in a
terminal window):
KDE Plasma Version: latest master as of 2026-08-21
KDE Frameworks Version: latest master as of 2026-08-21
Qt Version:  6.11.1

ADDITIONAL INFORMATION

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to