You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Eugene Grosbein <eg...@rdtc.ru> on 2013/07/08 14:20:17 UTC

1.8.0 and plaintext password caching

Hi!

Short story: it seems for me, subversion-1.8.0 (and, perhaps, 1.7.0) has broken support
for plaintext password storage.

Long story: I upgraded to 1.8.0, built it under FreeBSD 8.4-STABLE using fresh ports collection.
I have local repository and run svnserve to access it. All runs just fine except
"svn" command does not cache plaintext passwords at client's side.

After upgrade, I removed /root/.subversion/ directory and svn recreated it for me.
Then, I've edited /root/.subversion/servers to include the following settings
to the [global] section:

store-passwords = yes
store-auth-creds = yes
store-plaintext-passwords = yes

After successful authorization, svn creates new file
/root/.subversion/auth/svn.simple/79b9e861c3e4e52680538685b354a10a
starting with lines:

K 8
passtype
V 9
gpg-agent
K 15
svn:realmstring

Please note passtype is "gpg-agent", not "simple". I do not have gpg-agent installed,
nor need it. Of course, password is not cached and svn asks for it every time.
And yes, I need to cache root password. In plaintext. You can assume the whole
file system is encrypted.

Is it a regression in recent subversion or just me doing something wrong?

Please CC: me when replying as I'm not in the list.

Re: 1.8.0 and plaintext password caching

Posted by Eugene Grosbein <eg...@rdtc.ru>.
On 08.07.2013 21:31, Stefan Sperling wrote:
> On Mon, Jul 08, 2013 at 03:56:33PM +0200, Stefan Sperling wrote:
>> On Mon, Jul 08, 2013 at 07:20:17PM +0700, Eugene Grosbein wrote:
>>> Please note passtype is "gpg-agent", not "simple". I do not have gpg-agent installed,
>>
>> Are you 100% sure about that? svn shouldn't be using the gpg-agent
>> password store if it cannot contact a running gpg-agent.
> 
> Hmm, looking closer at this, I found a bug that prevents the
> plaintext cache from working if GPG Agent support is compiled in.
> 
> Does this patch fix the problem for you?
> http://svn.apache.org/r1500762

Yes, it works. Thank you very much.

Eugene Grosbein



Re: 1.8.0 and plaintext password caching

Posted by Stefan Sperling <st...@elego.de>.
On Mon, Jul 08, 2013 at 03:56:33PM +0200, Stefan Sperling wrote:
> On Mon, Jul 08, 2013 at 07:20:17PM +0700, Eugene Grosbein wrote:
> > Please note passtype is "gpg-agent", not "simple". I do not have gpg-agent installed,
> 
> Are you 100% sure about that? svn shouldn't be using the gpg-agent
> password store if it cannot contact a running gpg-agent.

Hmm, looking closer at this, I found a bug that prevents the
plaintext cache from working if GPG Agent support is compiled in.

Does this patch fix the problem for you?
http://svn.apache.org/r1500762

Re: 1.8.0 and plaintext password caching

Posted by Stefan Sperling <st...@elego.de>.
On Mon, Jul 08, 2013 at 07:20:17PM +0700, Eugene Grosbein wrote:
> Please note passtype is "gpg-agent", not "simple". I do not have gpg-agent installed,

Are you 100% sure about that? svn shouldn't be using the gpg-agent
password store if it cannot contact a running gpg-agent.

> nor need it. Of course, password is not cached and svn asks for it every time.
> And yes, I need to cache root password. In plaintext. You can assume the whole
> file system is encrypted.
> 
> Is it a regression in recent subversion or just me doing something wrong?
> 
> Please CC: me when replying as I'm not in the list.

You can tweak the password-stores option in the config file to avoid
this problem. Set it to an empty value, like this:

  ### Section for authentication and authorization customizations.
  [auth]
  ### Set password stores used by Subversion. They should be
  ### delimited by spaces or commas. The order of values determines
  ### the order in which password stores are used.
  ### Valid password stores:
  ###   gnome-keyring        (Unix-like systems)
  ###   kwallet              (Unix-like systems)
  ###   keychain             (Mac OS X)
  ###   windows-cryptoapi    (Windows)
  password-stores =