Bug 401325 - Plasma-nm asks for kwallet password when disconnecting from VPN
Summary: Plasma-nm asks for kwallet password when disconnecting from VPN
Status: RESOLVED UPSTREAM
Alias: None
Product: plasma-nm
Classification: Plasma
Component: general (show other bugs)
Version: 5.14.3
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Jan Grulich
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-23 12:14 UTC by Matej Mrenica
Modified: 2018-11-26 14:26 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matej Mrenica 2018-11-23 12:14:37 UTC
SUMMARY
When connecting, it makes sense, when disconnecting, not so much.

STEPS TO REPRODUCE
1. Connect to a VPN
2. Disconnect from a VPN

OBSERVED RESULT
Kwallet asks for password.

EXPECTED RESULT
Nothing?

SOFTWARE/OS VERSIONS
(available in About System)
KDE Plasma Version: 5.14.3
KDE Frameworks Version: 5.52
Qt Version: 5.12rc

ADDITIONAL INFORMATION
Comment 1 Jan Grulich 2018-11-23 12:18:23 UTC
This is weird, I have never experienced such behaviour. Can you open a terminal and run "export QT_LOGGING_RULES=plasma-nm*.debug=true" and from the same terminal session restart kded5 to see output from it? Then try to reproduce this issue.
Comment 2 Matej Mrenica 2018-11-23 17:38:04 UTC
LOG: 
kstart5 kded5
               
Omitting both --window and --windowclass arguments is not recommended
org.kde.knotifications: env says KDE is running but SNI unavailable -- check KDE_FULL_SESSION and XDG_CURRENT_DESKTOP
Installing the delayed initialization callback.
bluedevil: Created
Loaded KAccounts plugin "/usr/lib/qt/plugins/kaccounts/daemonplugins/gdrive.so"
kcm_touchpad: Using X11 backend
Delayed initialization.
Reloading the khotkeys configuration
Version 2 File!
true
Imported file "/usr/share/khotkeys/spectacle.khotkeys"
Imported file "/usr/share/khotkeys/defaults.khotkeys"
Imported file "/usr/share/khotkeys/konqueror_gestures_kde321.khotkeys"
Imported file "/usr/share/khotkeys/konsole.khotkeys"
Imported file "/usr/share/khotkeys/kde32b1.khotkeys"
3
Registering "org.kde.StatusNotifierHost-1144" as system tray
modemmanager-qt: Failed enumerating MM objects: "org.freedesktop.systemd1.NoSuchUnit" 
 "Unit dbus-org.freedesktop.ModemManager1.service not found."
bluedevil: Bluetooth operational changed true
bluedevil: ObexManager operational changed true
Registering ":1.59/StatusNotifierItem" to system tray
bluedevil: ObexAgent registered
bluedevil: Agent registered
bluedevil: Requested default Agent
kscreen: Requesting missing EDID for outputs (66)
plasma-nm: Unhandled VPN connection state change:  2
plasma-nm: Unhandled VPN connection state change:  3
plasma-nm: Unhandled VPN connection state change:  4
"No such interface “org.freedesktop.DBus.Properties” on object at path /org/freedesktop/NetworkManager/ActiveConnection/3"
networkmanager-qt: void NetworkManager::ConnectionPrivate::onPropertiesChanged(const QVariantMap&) Unhandled property "Filename"
networkmanager-qt: void NetworkManager::ConnectionPrivate::onPropertiesChanged(const QVariantMap&) Unhandled property "Flags"
"No such interface “org.freedesktop.DBus.Properties” on object at path /org/freedesktop/NetworkManager/ActiveConnection/3"
plasma-nm: virtual void SecretAgent::DeleteSecrets(const NMVariantMapMap&, const QDBusObjectPath&)
plasma-nm: Path: "/org/freedesktop/NetworkManager/Settings/9"
plasma-nm: bool SecretAgent::processDeleteSecrets(SecretsRequest&) const Waiting for the wallet to open
Comment 3 Jan Grulich 2018-11-25 13:58:35 UTC
What type of VPN do you use? Do you have password for this VPN saved?
Comment 4 Matej Mrenica 2018-11-25 14:27:41 UTC
(In reply to Jan Grulich from comment #3)
> What type of VPN do you use? Do you have password for this VPN saved?

It's openVPN (ProtonVPN). Yes, password is saved but unencrypted, I dont have to enter any password when connecting (the VPN one or mine).
Comment 5 Jan Grulich 2018-11-26 06:14:45 UTC
So your password is stored for all users, is that correct? You don't use KWallet, right? If so, it looks like a NetworkManager is responsible for this. NM asks our secret agent to remove the secrets from unknown reason.

Maybe try to report your problem here: https://gitlab.freedesktop.org/NetworkManager/NetworkManager/issues
Comment 6 Matej Mrenica 2018-11-26 07:29:39 UTC
(In reply to Jan Grulich from comment #5)
> So your password is stored for all users, is that correct? You don't use
> KWallet, right? If so, it looks like a NetworkManager is responsible for
> this. NM asks our secret agent to remove the secrets from unknown reason.
> 
> Maybe try to report your problem here:
> https://gitlab.freedesktop.org/NetworkManager/NetworkManager/issues

Yes, the password is stored for all users, so I guess I dont use Kwallet? (it's installed though). Reported here: https://gitlab.freedesktop.org/NetworkManager/NetworkManager/issues/84
Comment 7 Jan Grulich 2018-11-26 14:26:09 UTC
Closing, it's an issue in NetworkManager.