News for hackers. Stuff that matters.
Re:Do-nothing scripting: the key to gradual automation by swiley on Monday July 22, 2019 @08:16AM (#20497236)
Is anyone else bothered by how they were handling ssh keys in the example?

The whole point of public keys is that the private key never has to leave the box it’s generated on. Once you go sharing them you might as well just use a random passphrase.

Re:Do-nothing scripting: the key to gradual automation by deg4uss3r on Monday July 22, 2019 @08:35AM (#20497362)
Yes, very much so. In addition stop using RSA[0] and use ed25519 with `ssh-keygen -t ed25519`

[0]: https://blog.trailofbits.com/2019/07/08/fuck-rsa/

Re:Do-nothing scripting: the key to gradual automation by devonkim on Monday July 22, 2019 @09:44AM (#20497885)
Because Jenkins has its own ssh client, that wasn't supported as of last year with elliptic curve based keys and I had to re-launch a bunch of servers in production to downgrade back to RSA or DSA keys because they were basically the only key types that Jenkins supported. Really not sure why Jenkins had to go this far to re-invent a cryptographic wheel (besides the usual "support both Windows and Linux" angle).
Re:Do-nothing scripting: the key to gradual automation by viraptor on Monday July 22, 2019 @09:22AM (#20497724)
Unless you're using a hardware token via gpg-agent. In that case RSA is the only way most of the time.
Re:Do-nothing scripting: the key to gradual automation by xemdetia on Tuesday July 23, 2019 @03:20PM (#20509411)
Yeah hopefully when FIPS 140-3 finishes we'll start seeing hardware tokens that can do elliptic curves.
Re:Do-nothing scripting: the key to gradual automation by wtetzner on Monday July 22, 2019 @09:22AM (#20497725)
Yeah, at our company things are done in the reverse of that script: the user generates their SSH keys, and there's a process they use to register the public key with the rest of the system.
Re:Do-nothing scripting: the key to gradual automation by minxomat on Monday July 22, 2019 @10:44AM (#20498429)
I sometimes use GitHub for this. A developer's most up to date keychain is probably their GitHub account, so granting them access is as simple as

    curl -Ls github.com/turbo.keys >> ~/.ssh/authorized_keys
Simplified of course. A script is usually used to revoke that access shortly after. Plus 2FA SSH.
Re:Do-nothing scripting: the key to gradual automation by rmetzler on Monday July 22, 2019 @11:59AM (#20499283)
Gitlab also has a keys URL, but I can’t say if it’s available for unauthorized clients from the top of my head (currently on mobile). For me it’s usually the fastest way to authorize other team members.
Re:Do-nothing scripting: the key to gradual automation by yellowapple on Tuesday July 23, 2019 @08:22PM (#20511365)
I had no idea about github.com/$USER.keys. That's handy as hell.
Re:Do-nothing scripting: the key to gradual automation by NikolaeVarius on Monday July 22, 2019 @10:54AM (#20498542)
Huh, never occurred to me to do it this way.
Re:Do-nothing scripting: the key to gradual automation by TimTheTinker on Monday July 22, 2019 @02:36PM (#20500883)
As a user, I wouldn’t trust any private key that I didn’t personally generate.

If an IT guy sent me “here’s your new private key”, even through 1Password, I’d say “no thanks.”