Bug 509397 - kwallet-query can list and read, but not write secrets
Summary: kwallet-query can list and read, but not write secrets
Status: RESOLVED DUPLICATE of bug 491898
Alias: None
Product: frameworks-kwallet
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: 6.12.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Valentin Rusu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-09-11 23:09 UTC by hadmut
Modified: 2025-09-12 08:03 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description hadmut 2025-09-11 23:09:53 UTC
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
Comment 1 michaelk83 2025-09-12 08:03:46 UTC

*** This bug has been marked as a duplicate of bug 491898 ***