Re:Sign arbitrary data with your SSH keys
by throwaway894345 on Saturday November 13, 2021 @06:09AM
(#29208990)
Even cooler, you can tell cloud-init to download your SSH keys from GitHub and drop them in the user's ~/.ssh/authorized_keys. Something like this IIRC:
[ Parent
| on HN ]
Re:Sign arbitrary data with your SSH keys
by flir on Saturday November 13, 2021 @07:19AM
(#29209262)
That was sarcasm, right? (Genuine question). 'cos that sounds like a bad idea to me, and if it's not a bad idea, I'd like to understand why.
Doesn't doing this mean you trust github implicitly?
Re:Sign arbitrary data with your SSH keys
by tinco on Saturday November 13, 2021 @10:05AM
(#29210224)
I trust Github explicitly. Or in my case Gitlab, as that's where our code and our CI/CD is. I'll go even further and tell you that I'd trust the public key on Gitlab to be correct more than I'd trust the keys on my own hard drive to be correct. If I make a mistake in my opsec, and run for example a NPM package or Ruby gem or whatever outside of a container, I could have my keys compromised without me ever noticing. At least Gitlab will drop an e-mail in my inbox saying my key changed. Beyond that, I presume Gitlab is employing a security team that outclasses my little startup by orders of magnitude. If Gitlab gets hacked to the point where people's public keys get changed, that surely would be noticed very quickly.
Curious why you think it would be a bad idea to trust Github/Gitlab to warrant your identity.
Fair points. But git(hub|lab) has a much bigger target painted on their back.
Re:Sign arbitrary data with your SSH keys
by throwaway894345 on Saturday November 13, 2021 @07:24AM
(#29209285)
It's not sarcasm. I only use this for hobby projects and I already put my source code and various secrets on GitHub so they could pwn my blog if they really wanted to whether or not I pull public keys from GH or bake them into my user-data.
Re:Sign arbitrary data with your SSH keys
by Gargyle on Saturday November 13, 2021 @07:35AM
(#29209333)
Then this is bad advice in general because its specific to a low trust expectation. Would be sensible to note that in your comment.
Re:Sign arbitrary data with your SSH keys
by keeganpoppen on Saturday November 13, 2021 @08:37AM
(#29209594)
it's not advice at all. they are just saying you can do it.
Re:Sign arbitrary data with your SSH keys
by Gargyle on Saturday November 13, 2021 @09:44AM
(#29210066)
The parents comment style is inherently advice.
Re:Sign arbitrary data with your SSH keys
by drran on Saturday November 13, 2021 @08:47AM
(#29209671)
GitHub can alter the CODE. Why it should play with just a key? If GitHub wants to pwn the whole world, it can do it right now.
Re:Sign arbitrary data with your SSH keys
by fortran77 on Saturday November 13, 2021 @09:32AM
(#29209976)
Well, github will already shut down repositories that contain words that they deem unacceptable. So they are doing it now...