[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: Bert Huijben <bert_at_qqmail.nl>
Date: Thu, 18 Apr 2013 13:48:30 +0200

> -----Original Message-----
> From: Daniel Shahaf [mailto:danielsh_at_elego.de]
> Sent: donderdag 18 april 2013 13:26
> To: Branko Čibej
> Cc: dev_at_subversion.apache.org
> Subject: Re: Feature proposal: SVN_USERNAME and SVN_PASSWORD
> environment variables
>
> 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 like the idea, but

<Implementation question>
How would you obtain the realm when URL allows anonymous access?
</>

This is certainly not trivial to implement in a generic way.

>
> >
> > 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?

+1

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

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.