[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Feature proposal: SVN_USERNAME and SVN_PASSWORD environment variables

From: Daniel Shahaf <danielsh_at_elego.de>
Date: Thu, 18 Apr 2013 14:25:53 +0300

Branko Čibej wrote on Wed, Apr 17, 2013 at 22:24:43 +0200:
> On 17.04.2013 21:01, Daniel Shahaf wrote:
> > Branko Čibej wrote on Wed, Apr 17, 2013 at 07:14:53 +0200:
> >> The --config-dir option is IMO problematic for this since you'd have to
> >> use the SVN command-line to initialize the credentials store -- the
> >> format is such that I'd not recommend editing the auth store manually.
> >>
> > Manually? Of course not. But I could see us whipping up a tools/
> > script that takes a URL, username, and password[1], and creates a foo/
> > dir with foo/auth/svn.simple/d41d8cd98f00b204e9800998ecf8427e, or prints
> > the string "d41d8cd98f00b204e9800998ecf8427e" and the
> > would-be-file-contents to stdout, etc.
>
> Did you have something like this in mind?
>
> $ svnauth init --config-dir=~/.subversion-alternate
> $ svnauth add --config-dir=~/.subversion-alternate https://svn.apache.org/repos/asf
> Username: ....
> Password: ****
>

I'd be happy with a tool that takes a dirname and URL on argv and
a username\0password\0 on stdin and creates
${dirname}/auth/svn.ssl.simple/$(md5 $(realm-of URL)) with the right
contents.

But yeah, what you wrote works, too.

>
> I have a suspicion that the idea could grow into a full-blown
> credentials management tool ...
>

Right, with the recent "delete credentials" ability.

Nice GSOC/OPW idea?

> -- Brane
>
> --
> Branko Čibej
> Director of Subversion | WANdisco | www.wandisco.com
>
Received on 2013-04-18 13:26:35 CEST

This is an archived mail posted to the Subversion Dev mailing list.