[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: C. Michael Pilato <cmpilato_at_collab.net>
Date: Thu, 18 Apr 2013 08:27:52 -0400

On 04/18/2013 07:48 AM, Bert Huijben wrote:
>> 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.

We'd pretty much need to have the RA layer involved, because each RA
implementation is required to define its own realmstring syntax.

ra_serf uses "<REPOS_ROOT_URL:PORT> APACHE_REALM".

ra_svn uses "<REPOS_ROOT_URL:PORT> REPOS_UUID" by default, but will replace
REPOS_UUID with any realmstring defined in svnserve.conf

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

I'd planned to add this sort of thing as part of the master passphrase work
anyway.

-- 
C. Michael Pilato <cmpilato_at_collab.net>
CollabNet   <>   www.collab.net   <>   Enterprise Cloud Development

Received on 2013-04-18 14:28:29 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.