Hmm, I don't see why it's harder to automate, what are you using for automation?
It doesn't necessarily have to be more secure. I guess a key is a longer "password" but it's being sent over a secure channel in both cases. If you lose your key or your username/password combo that's basically the same problem. Obviously it will be a lot more secure using a username/password combo if you do not reuse passwords across multiple accounts.
Hmmm... Can you show me an example of pushing to remote https git repo without user interaction? I will use it in Teamcity, but even bare cmd script will be OK
As of security between key vs username/password - it is endless war :), but personally I suppose that key have much more benefits
Key authentication
I searched hard, but was not able to find any answers or clues on question - is it possible to use key auth on Umbraco cloud target repository?
Currently we only offer username/password authentication on the git repository on Cloud.
Out of curiosity, why do you prefer other auth methods?
It is easier to distribute and automate :) HTTPS auth is hard for automation and, IMHO, less secure than key one
Hmm, I don't see why it's harder to automate, what are you using for automation?
It doesn't necessarily have to be more secure. I guess a key is a longer "password" but it's being sent over a secure channel in both cases. If you lose your key or your username/password combo that's basically the same problem. Obviously it will be a lot more secure using a username/password combo if you do not reuse passwords across multiple accounts.
Hmmm... Can you show me an example of pushing to remote https git repo without user interaction? I will use it in Teamcity, but even bare cmd script will be OK
As of security between key vs username/password - it is endless war :), but personally I suppose that key have much more benefits
Here you go: https://stackoverflow.com/a/29776651/5018 :-)
In the case of Umbraco Cloud there's a bit of a trick, you need to escape the @ sign, so something like:
git push https://sj%40umbraco.dk:[email protected]/3e64705e-c487-45a5-b2dd-19a6a9840ccb.git
Yes, I totally understand the difference and the security implications.
Thank you... That's it :)
Strange, but it does now work :(
user@host:/mnt/d/Temp$ git clone https://umbraco%40test.com:[email protected]/17fa917d-533a-44d0-a70c-ee2af27f8afe.git cloudwebsite Cloning into 'cloudwebsite'... fatal: unable to access 'https://umbraco%40test.com:[email protected]/17fa917d-533a-44d0-a70c-ee2af27f8afe.git/': Could not resolve host: umbraco%40test.com
Happens both in cmd and Linux subsystem
I don't know mate.. works on windows command line, bash, an ubuntu install.. Check git version? I'm using 2.11.0 on Ubuntu.
I am using 2.9.2.windows.1 in win cmd and win bash; 2.7.4 in Windows subsystem for Linux; Nowhere it works :(
Try updating to at least v2.11.0 then :-)
We found the issue...the pwd needed escaping as well.
dave
Aaaah, of course! Cool that it's working now!
is working on a reply...