OverLex
OverLex

Reputation: 2521

SVN: How to commit without entering password?

I need to create a script that backups a couple of files on a SVN repository during the night, since the files are secure I can commit them without entering a username (is that even possible?) or password.

Possible solutions I came up with: - creating a dummy user without password or with a known password but this poses a security problem (someone could read it and use it to commit whatever he likes) - creating a script that hides my password but passes it to the svn command.

Thankyou

Upvotes: 3

Views: 6114

Answers (3)

ire_and_curses
ire_and_curses

Reputation: 70162

If you use webdav access (http/https) then you can configure authentication on the server side (you can provide an AuthUserFile for apache to use). You also have the option of third-party authentication, e.g. via LDAP.

If you use svn over ssh, public keys are the way to go. The server uses the public key to authenticate the private key that only the authorised client machine has access to.

Neither of these will require passwords, but will still be secure.

Upvotes: 8

Milen A. Radev
Milen A. Radev

Reputation: 62593

SCMs (and SVN in particular) are not devised for backups. I'm sure you'll find many other more suitable products.

Upvotes: 1

macbirdie
macbirdie

Reputation: 16203

If you have access to svn+ssh, you can use public-key authentication using a passphrase-less private key on script's side and its public counterpart on the svn server.

Upvotes: 0

Related Questions