bzr-svn not caching credentials

Jelmer Vernooij jelmer at vernstok.nl
Thu Jan 27 08:39:24 UTC 2011


On Wed, 2011-01-26 at 16:10 -0500, Gordon Tyler wrote:
> On Wed, January 26, 2011 11:48 am, Jelmer Vernooij wrote:
> > On Wed, Jan 26, 2011 at 08:13:46AM -0500, Gordon Tyler wrote:
> >> On 1/25/2011 11:46 PM, Jelmer Vernooij wrote:
> >> >> I just read
> >> >> http://doc.bazaar.canonical.com/developers/authentication-ring.html.
> >> Is
> >> >> this just a plan or is it already implemented in bzr.dev?
> >> > As far as I know it works today. You can use authentication.conf, but
> >> we
> >> > don't write to it.
> >
> >> So, if I implemented a plugin like netrc_credentials, would I be able to
> >> make it cache passwords (not in bzr's auth conf but a separate
> >> file/directory) or does the API not allow this?
> > The API does not (yet) allow for this, as the credentials backends are
> > not told about the successful uses of passwords, so they don't know
> > what credentials to cache. It'd be great to add this support, it just
> > hasn't been done yet.
> 
> Okay, so in the meantime I could make a plugin like netrc_credential_store
> which uses the Windows CryptProtectData[1] API functions to add/retrieve
> credentials to/from an encrypted store. I can't have auto-caching but at
> least it would be encrypted and it should be (relatively) easy to update
> it when my password changes with a bzr command provided by the plugin.
> 
> 1. http://msdn.microsoft.com/en-us/library/aa380261(v=VS.85).aspx
Yep. It'd be great if such a plugin could be added!

Cheers,

Jelmer



More information about the bazaar mailing list