Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Anton 28 posts 116 karma points
    Sep 18, 2017 @ 09:32
    Anton
    0

    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?

  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    Sep 18, 2017 @ 09:34
    Sebastiaan Janssen
    0

    Currently we only offer username/password authentication on the git repository on Cloud.

    Out of curiosity, why do you prefer other auth methods?

  • Anton 28 posts 116 karma points
    Sep 18, 2017 @ 09:38
    Anton
    0

    It is easier to distribute and automate :) HTTPS auth is hard for automation and, IMHO, less secure than key one

  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    Sep 18, 2017 @ 10:16
    Sebastiaan Janssen
    0

    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.

  • Anton 28 posts 116 karma points
    Sep 18, 2017 @ 10:57
    Anton
    0

    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

  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    Sep 18, 2017 @ 12:46
    Sebastiaan Janssen
    100

    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

    enter image description here

    Yes, I totally understand the difference and the security implications.

  • Anton 28 posts 116 karma points
    Sep 18, 2017 @ 13:31
    Anton
    0

    Thank you... That's it :)

  • Anton 28 posts 116 karma points
    Sep 18, 2017 @ 14:21
    Anton
    0

    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

  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    Sep 18, 2017 @ 20:01
    Sebastiaan Janssen
    0

    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.

    enter image description here

  • Anton 28 posts 116 karma points
    Sep 19, 2017 @ 06:44
    Anton
    0

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

  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    Sep 19, 2017 @ 07:17
    Sebastiaan Janssen
    0

    Try updating to at least v2.11.0 then :-)

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    Sep 19, 2017 @ 07:36
    Dave Woestenborghs
    1

    We found the issue...the pwd needed escaping as well.

    dave

  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    Sep 19, 2017 @ 07:50
    Sebastiaan Janssen
    0

    Aaaah, of course! Cool that it's working now!

Please Sign in or register to post replies

Write your reply to:

Draft