Bug 492028

Summary: Network Settings loses private key for WireGuard
Product: [Applications] systemsettings Reporter: r.hessel.git
Component: kcm_networkmanagementAssignee: Plasma Bugs List <plasma-bugs-null>
Status: REPORTED ---    
Severity: minor CC: jgrulich, marc.payne, r.hessel.git
Priority: NOR    
Version First Reported In: 6.1.4   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=501290
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Screen Recording of behaviour

Description r.hessel.git 2024-08-22 07:51:57 UTC
Created attachment 172847 [details]
Screen Recording of behaviour

SUMMARY
When navigating to a WireGuard VPM config, it randomly appears to lose the private key.
I'm unsure if it actually is, because I'm having challenges with this WireGuard VPN Currently.

STEPS TO REPRODUCE
1. Create WireGuard VPN (method doesn't matter, 1 was created in System Settings and the other via nmcli import)
2. Open System Setting and navigate to the VPN configuration.
3. Navigate to something else and navigate back.

OBSERVED RESULT
Every 2nd visit the private key appears to be missing.

EXPECTED RESULT
Settings should be consistent.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 40, Kernel 6.10.4-200.fc40.x86_64 (64-bit)
KDE Plasma Version: 6.1.4
KDE Frameworks Version:  6.5.0
Qt Version: 6.7.2

ADDITIONAL INFORMATION
NetworkManager: 1.46.2
wireguard-tools: 1.0.20210914 (not sure if its relevant)
Comment 1 r.hessel.git 2024-08-26 14:04:13 UTC
OK can confirm this is only a UI glitch. The WireGuard VPN does work.
Comment 2 Marc Payne 2025-07-18 17:49:09 UTC
I've looked into this and have found that the issue is caused by a bug in NetworkManager. I've opened issue 1786 (https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/1786) and one of the maintainers has an open merge request with a fix.