GNOME Bugzilla – Bug 777378
Unable to remove VPN secrets over DBus
Last modified: 2020-11-12 14:27:49 UTC
Hi, it seems to be not possible remove VPN secrets which have been previously wrongly set. When passing empty map or not passing secrets back at all using DBus update() method in o.f.NetworkManager.Settings.Connection interface doesn't have any effect and previous secrets still exist. Also trying to use empty values for secrets which are already set produces error about empty value. Would be nice for NM to accept either empty map or when someone passes full map with only "data" property without "secrets" property to override current secrets.
The Update() call has been changed some time ago. It doesn't clear secrets when the passed data doesn't contain any secrets, because it caused problems and the Update() was cumbersome. See bug 728920. Instead, ClearSecrets() call has been introduced for removing secrets. https://developer.gnome.org/NetworkManager/stable/gdbus-org.freedesktop.NetworkManager.Settings.Connection.html
bugzilla.gnome.org is being shut down in favor of a GitLab instance. We are closing all old bug reports and feature requests in GNOME Bugzilla which have not seen updates for a long time. If you still use NetworkManager and if you still see this bug / want this feature in a recent and supported version of NetworkManager, then please feel free to report it at https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/ Thank you for creating this report and we are sorry it could not be implemented (workforce and time is unfortunately limited).