Bug 234309 - Synchronize or merge kwallet with 2 computers via cli
Summary: Synchronize or merge kwallet with 2 computers via cli
Status: ASSIGNED
Alias: None
Product: kwalletmanager
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: HI task
Target Milestone: ---
Assignee: Valentin Rusu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-14 05:35 UTC by Murz
Modified: 2019-12-29 14:33 UTC (History)
8 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Murz 2010-04-14 05:35:59 UTC
Version:            (using KDE 4.4.2)
OS:                Linux
Installed from:    Ubuntu Packages

I need automatically sync my passwords, stored in kwallet, with 2 computers.

Use the file syncing tool like dropbox is dangerous - I can lost some data.
For example, I store login 'petya' in kwallet on first computer and some time later - store 'vasya' on second computer, before file syncing is started. And after sync finish I lost the login 'petya' from kwallet file.

kwalletmanager application have an option "Merge Wallet", but I must do all actions manually via hands, but I need an automatic sync via cron or wallet file change event.

In kwalletcli i can't find any option or way to merge 2 kwl files. Please add functionality to merge wallets in kwalletcli.

Or maybe exist some other methods to sync the data in kwallet?
Comment 1 Michael Leupold 2010-04-14 08:24:53 UTC
Such a feature is currently planned but due to the rewrite of KWallet using a new API it's somewhat delayed. Please note that kwalletcli is neither part of KDE SC nor maintained by me but a separate project hosted at http://www.ohloh.net/p/kwalletcli.
Comment 2 Murz 2010-04-14 08:45:14 UTC
Michael Leupold, thank's for info and link! At now I try to ask the kwalletcgi developer to add this functionality.

On http://techbase.kde.org/Projects/Utils/kwallet/FeaturePlan42 I see only plans to change interface, encryptions and add more fields to records.

When I can read more info about new planned KWallet API and working progress? 
In what time planned to do some releases or betas with new api? Have some chances to see it in KDE 4.5?
Comment 3 Murz 2010-04-14 17:30:39 UTC
At first will be good to see in command line or via API functions from kwalleteditor.cpp (
http://websvn.kde.org/branches/KDE/4.4/kdeutils/kwallet/kwalleteditor.cpp?view=markup )

void KWalletEditor::importWallet()
void KWalletEditor::exportXML()
void KWalletEditor::importXML()

They will solve all my wishes at now :) Another work I can automate via scripts.
Comment 4 Murz 2010-11-08 08:30:03 UTC
At now KDE 4.5 was released, does it have any improvements near this issue? Or some about this planned in 4.6?
Comment 5 Michael Leupold 2010-11-08 13:06:56 UTC
Unfortunately no improvements. We're still working hard on getting ksecretservice - the successor to KWallet out there. As we're rebuilding everything from the ground and we're working with sensitive data we aren't progressing as fast as we hoped earlier. As we missed the deadline for KDE 4.6 you'll have to wait for KDE 4.7 in order to benefit from the new architecture and the new features. I'll try to get some information on this out soon (blog, maybe userbase) as I figure it's not that well known out there.
Comment 6 Murz 2011-07-08 05:07:04 UTC
Now are come KDE 4.7 time, is it implement new architecture for kwallet?
Comment 7 Murz 2012-08-30 05:28:55 UTC
Any news in plans for KDE 4.10 or 5.x?
Comment 8 Samuel Suther 2012-11-19 16:57:26 UTC
I need this feature too. 
Or a way to sync kwallet-File via Dropbox.

Realy realy need this. Plese tell me, there a news about this feature?!
Comment 9 Murz 2012-11-19 18:53:09 UTC
Samuel Suther, did you succesfully use sync kwallet-File via Dropbox? I think that this configuration will got the problem, when at the same time on two computers file will updated (for example, you update file on 1st notebook when it is offline, and on 2nd notebook, and after that goes online on both), so how Dropbox will sync this both changed files? 

I think it broke the file and I will lost all passwords :( So I afraid to use this method, and waiting some other way to correctly sync (not copy file) wallets.
Comment 10 Murz 2013-01-14 07:13:56 UTC
Sync Firefox passwords stored in KWallet wokrs well with 2.0 version of this extension: https://addons.mozilla.org/ru/firefox/addon/kde-wallet-password-integratio/ 
So partially this problem is solved, but for natively support we must wait for KSecretService release, that will have build-in sync feature.
Comment 11 Luca76 2013-03-28 09:22:48 UTC
*** This bug has been confirmed by popular vote. ***
Comment 12 Valentin Rusu 2013-09-04 12:43:11 UTC
Next wallet release will have a sync feature. I don't think that'll be done via the CLI, though.
Comment 13 Till Schäfer 2013-09-11 13:47:23 UTC
nice to hear that. how will the sync being done? over a user defined dav or ftp or by p2p communication?
Comment 14 Murz 2019-01-27 07:45:16 UTC
I use the way with manually syncing kdewallet.kwl file between computers already long time, and sometimes got problems with overwriting cloud changes with local, especially when I setup new KDE account on device.

After next time when this way delete (overwrite) all my password database via empty file, my patience is over!

I'm tired of waiting when native sync via ksecretsservice and secretsync will be implemented, and fill issue on KWalletManager bug tracker: https://bugs.kde.org/show_bug.cgi?id=403648

Please join to it and vote for quicker fix kwallet sync problem via manually syncing kwallet.kwl file!