Skip to content

agent: add passphrase storage options

Matthias Kurz iwd 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3agent: Add passphrase storage optionssrc/agent.c src/agent.h src/network.c+107 -140 replies
2/3doc: Document passphrase storage optionsdoc/agent-api.txt+12 -00 replies
3/3auto-t: Test transient PSK agent secretsautotests/testEncryptedProfiles/connection_test.py autotests/util/iwd.py+40 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] agent: add passphrase storage options

Add an agent API variant for PSK passphrase requests that allows the agent to tell IWD whether the passphrase should be persisted in the network profile.

This is needed by NetworkManager's IWD backend for profiles where the Wi-Fi PSK is stored as an agent-owned or not-saved secret. In those cases NetworkManager can provide the passphrase for the current connection attempt, but IWD should not save it into /var/lib/iwd/*.psk.

The new RequestPassphraseWithOptions method returns the passphrase plus an options dictionary. Currently the only option is Store. If Store is false, IWD uses the passphrase for the current connection attempt but does not write PSK secrets back to the profile.

The method falls back to RequestPassphrase for older agents.

NetworkManager-side draft MR:
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/2402

Matthias Kurz (3):
agent: Add passphrase storage options
doc: Document passphrase storage options
auto-t: Test transient PSK agent secrets

 .../testEncryptedProfiles/connection_test.py  |  27 +++++
 autotests/util/iwd.py                         |  14 ++-
 doc/agent-api.txt                             |  12 ++
 src/agent.c                                   | 108 +++++++++++++++---
 src/agent.h                                   |   1 +
 src/network.c                                 |  12 ++
 6 files changed, 159 insertions(+), 15 deletions(-)
Signature · 1 line
2.54.0