https://bugs.kde.org/show_bug.cgi?id=509397

            Bug ID: 509397
           Summary: kwallet-query can list and read, but not write secrets
    Classification: Frameworks and Libraries
           Product: frameworks-kwallet
      Version First 6.12.0
       Reported In:
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
  Target Milestone: ---

Hi, 
using Kubuntu 25.04 I observed a problem with kwallet-query. What I am trying
to do: Rollout wireguard connections to some Kubuntu machines by distributing
/etc/netplan/... files with all configuration, just without the secrets.

Furthermore, I want to have these secrets (i.e. private key and shared secret
for each connection) stored in the user's wallet.

This works fine, as long as the user manually enters the secrets in the KDE
network settings. But I do want to automatically set the secrets.

kwallet-query kdewallet -f "Network Management" -l

successfully lists the already configured network connections in the form
{ someuuid };wireguard

kwallet-query kdewallet -f "Network Management" -r '{ someuuid };wireguard'

shows the wallet's secrets for a given connection as a json record.

But:

kwallet-query kdewallet -f "Network Management" -w "{ somenewuuid };wireguard"

with json on stdin just prints

writing "{ somenewuuid };wireguard" to "Network Management" to "kdewallet"

and exits with 0, but doesn't do anything.

Testing:

% echo '{ "aa":"bb" }' | kwallet-query kdewallet -f "Network Management" -w
"{39b72d2f-e0ca-4c7c-930c-0d071d991d06};wireguard" -v

timer event
standby opening wallet "kdewallet"
writing "{39b72d2f-e0ca-4c7c-930c-0d071d991d06};wireguard" to "Network
Management" to "kdewallet"

reports success, but does not write anything into the wallet.



regards

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to