• static_motion
    link
    fedilink
    arrow-up
    30
    ·
    2 years ago

    Very mixed feelings on GitHub’s recent approaches to security. Tighter security measures are great, but deprecating password authentication on git operations seems obtuse to me. What if I want to push a change from a machine that’s not mine and doesn’t have my registered SSH key on it? I don’t have a Yubikey or anything similar nor do I intend to get one in the foreseeable future.

    • slurp
      link
      fedilink
      arrow-up
      11
      ·
      2 years ago

      I’m with you on this. How on earth are one-off login events supposed to work? I want nothing about me logging on to be stored on that device or account other than, for example, the code I download. Maybe I’m missing something but the search I just did suggested connecting my phone via bluetooth, which is also not an option.

      • dbx12
        link
        fedilink
        arrow-up
        13
        ·
        edit-2
        2 years ago

        But now you have the only credential, the REPO_TOKEN in plaintext in your .git/config file. That’s even worse.

        Edit: typo

        • MostlyHarmless
          link
          fedilink
          arrow-up
          5
          arrow-down
          2
          ·
          2 years ago

          That’s how a lot of tools work. Your maven password is in .m2/settings.xml

          Your ssh private key is in .ssh/id_rsa

          The only person with access to these files should be you. If anyone else does then your machine is compromised

          • HairHeel
            link
            fedilink
            arrow-up
            2
            ·
            2 years ago

            we’re talking about a hypothetical one-off situation on a computer that isn’t yours though; right? That happens from time to time, and an authentication process that requires you to persist your auth information on disk carries some extra risks. You need to remember to delete it when you’re done.

            • MostlyHarmless
              link
              fedilink
              arrow-up
              3
              arrow-down
              1
              ·
              2 years ago

              You don’t need to remember to delete it, you can revoke the access from your github account.

              Then it’s useless.

          • dbx12
            link
            fedilink
            arrow-up
            1
            ·
            2 years ago

            For the maven password, ok maybe. Your ssh private key should require a passphrase.