Bug 504358 - Kwallet looses Wireguard private/ preshared keys after update to 6.14
Summary: Kwallet looses Wireguard private/ preshared keys after update to 6.14
Status: RESOLVED DUPLICATE of bug 494264
Alias: None
Product: frameworks-kwallet
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: 6.14.0
Platform: Manjaro Linux
: NOR normal
Target Milestone: ---
Assignee: Valentin Rusu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-05-16 20:58 UTC by major-mayer
Modified: 2025-05-17 09:28 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description major-mayer 2025-05-16 20:58:38 UTC
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports

Please remove this comment after reading and before submitting - thanks!
***

SUMMARY
As reported downstream in the Manjaro forums, after Manjaro Unstable updated KDE Frameworks to 6.14 it seems like Kwallet lost my Wireguard private and preshared keys: https://forum.manjaro.org/t/unstable-update-may-2025/177492/40?u=majormayer
Since I activate the the connection automatically, a dialog appeared after every boot that prompts for "some" password, without any explanation which password or rather key is actually meant (it overwrites/ sets the private key actually).

I was able to fix the problem by setting the correct values using the NetworkManager GUI.
The VPN applet in KDE's settings didn't allow me to apply my changes for whatever reason (the apply button was in disabled state, no matter what I entered, without any explanation).

STEPS TO REPRODUCE 
Disclosure: I haven't tried to reproduce this problem, I just wanted to report it, because the VPN connection was working for years already.
1. Set a Wireguard VPN using KDEs settings
2. Upgrade to KDE Frameworks 6.14
3. Try to connect again

OBSERVED RESULT
A dialog appears that asks for some password to establish the connection

EXPECTED RESULT
The connection should be established without any new keys or passwords

SOFTWARE/OS VERSIONS
Operating System: Manjaro Linux 
KDE Plasma Version: 6.3.5
KDE Frameworks Version: 6.14.0
Qt Version: 6.9.0
Kernel Version: 6.12.28-1-MANJARO (64-bit)
Graphics Platform: Wayland


ADDITIONAL INFORMATION
Please have a look in the Manjaro thread that I linked.
Comment 1 major-mayer 2025-05-16 21:02:44 UTC
The weird password dialog seems to be reported here as well: https://bugs.kde.org/show_bug.cgi?id=494264
Comment 2 michaelk83 2025-05-17 08:26:40 UTC
This is probably BUG 494264 triggered by BUG 502808.

*** This bug has been marked as a duplicate of bug 494264 ***
Comment 3 major-mayer 2025-05-17 08:58:18 UTC
Okay, if you say so.
I think I worked around BUG 494264 in the past, by only selecting one user that can connect to this VPN connection instead of all users.
In the latter case, I also had the problem with this prompt IIRC.

But might be that the other bug triggered it one time and I then broke the settings completely by entering my user login password.
Although I wonder why this works again now without any new updates to Kwallet, after I fixed the settings once.
Comment 4 michaelk83 2025-05-17 09:19:24 UTC
There was a big refactor for 6.14, so it's also possible that just that transition alone caused the hiccup. And once you set the settings again, then it's back to normal. But in any case, I think the root cause has already been reported elsewhere.
Comment 5 major-mayer 2025-05-17 09:28:47 UTC
All right, makes sense.