flexera-public / rightscale_cookbooks

Other
76 stars 102 forks source link

repo_svn cookbook implies it supports private key authentication, but it doesn't #159

Open brian-from-quantrocket opened 10 years ago

brian-from-quantrocket commented 10 years ago

The Rightscale inputs for the repo/repo_svn recipes imply that private key authentication is supported, but it isn't. If you specify a private key for the input, this is the kind of command that gets generated:

Command = svn info svn+ssh://svn.<hidden credential>.com/bfwc/svn/delivery/tags/latest_stable --no-auth-cache --username rightscale --password <hidden private key> -rHEAD

The private key is being used with the --password option, but --password expects a password, not a private key. Private key authentication with subversion is generally done by setting up an IdentityFile in the user’s ~/.ssh/config ( http://stackoverflow.com/questions/192134/how-do-i-get-a-svn-checkout-using-a-public-private-key-pair ).

It would be great if the recipe supported private key authentication. At a minimum, the fact that it doesn't support it should be listed under known limitations so people know what to expect.