Bug 1658771 - Agent-owned secrets are not updated when modifying connection
Summary: Agent-owned secrets are not updated when modifying connection
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: NetworkManager
Version: 8.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 8.0
Assignee: Beniamino Galvani
QA Contact: Desktop QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-12-12 20:23 UTC by Beniamino Galvani
Modified: 2019-06-14 00:02 UTC (History)
9 users (show)

Fixed In Version: NetworkManager-1.14.0-9.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-06-14 00:02:46 UTC
Type: Bug
Target Upstream Version:


Attachments (Terms of Use)

Description Beniamino Galvani 2018-12-12 20:23:03 UTC
When modifying a connection with new agent-owned secrets,
NetworkManager sends the old secrets to secret agents.

* Steps to reproduce:

  [ Prerequisite: a secret agent capable of persisting secrets
   (nm-applet, gnome shell) must be running and a keyring application
   (gnome-keyring, kwallet) active ]


 $ nmcli connection add type ethernet \
                      ifname test1 \
                      con-name test1+ \
                      connection.autoconnect no \
                      802-1x.eap md5 \
                      802-1x.identity user \
                      802-1x.password-flags agent-owned \
                      802-1x.password pass

 $ nmcli -f 802-1x.password -s connection show test1+
 802-1x.password:                        pass

 $ nmcli connection modify test1+ 802-1x.password pass123

 $ nmcli -f 802-1x.password -s connection show test1+
 802-1x.password:                        pass

After the last step the new password 'pass123' should be displayed.

* Affected version
NetworkManager 1.14.0-7.el8

* Notes
Upstream fix at https://github.com/NetworkManager/NetworkManager/pull/257


Note You need to log in before you can comment on or make changes to this bug.