[Ksecretservice-devel] KWallet/KSecretsService & GIT workflow

Valentin Rusu kde at rusu.info
Thu Aug 4 10:17:36 UTC 2011

Hello Sebas :-)

On 08/04/2011 09:51 AM, Sebastian Kügler wrote:
> Hi Valentino,
> [snip]
>> One more component should be the KWallet backend, an implementation of
>> the current KWallet class based on the new "Client API". KWallet code is
>> actually spread inside several GIT repositories: kdelibs, kdeutils and
>> kde-runtime. I think that I should do a branch named "ksecretsservice"
>> inside each of these repositories, then start using the new "Client API"
>> and do the switch to the new infrastructure. When this might become
>> "showable", I might push these branches to each of thses repositories,
>> along with an appropriate announcement to this list.
>> Any thoughts about this process? How does it fit with current kdelibs
>> modularization process?
> How would the switch work, is it runtime-choosable, compile-time, or do you 
> need to change the code from kwallet to ksecretservice, so there's not other 
> means to go back, short of reverting?
I plan to let the existing code in place and switch in the new code by
the means of a runtime variable.
This variable will default to the new code when not defined in the rc
file. That would allow people to get back to old kwallet in the (very
unlikely indeed ;-) ) case where the new code would encounter a severe
bug when in "production".
A release or two later, when bugs.kde.org show that new code works
nicely, then I'll remove the old wallet code.

The secret service daemon has a piece of code that detects existing
wallets and, if the right command-line switch is given, starts importing
them. But at the time of the release I think I'll deactivate the
command-line switch requirement and let the daemon automatically import
wallets, then mark them as imported in it's own storage. This way,
passwords will get in secret service and the wallet clients will
seamlessly continue to work.

That would be the critical stage on the path to secret service switch.
Once applications function correctly with the KWallet API on
KSecretsService backend, the process of migration to KSecretsService
client API may start.

The introduction of the new daemon and API will also be accompanied by
an announce inviting application developers to start using this new API
instead of the obsolescent KWallet API. A compile warning will also be
added at that time.

As such, there will be a lapse of time where new applications will use
the new API and existing applications will still use KWallet API. I know
that Telepathy will be one of the first clients of the new client API.
> This question does affect how we introduce ksecretservice all over KDE.
> Cheer, and thanks for your work on ksecretservice!
Welcome :-)

More information about the Ksecretservice-devel mailing list