News for hackers. Stuff that matters.
Re:whoarethey: Determine Who Can Log in to an SSH Server by Galanwe on Tuesday January 10, 2023 @09:18PM (#34334268)
Does anyone know why github exposes user public keys ?

Does it have any purpose?

Re:whoarethey: Determine Who Can Log in to an SSH Server by enasterosophes on Tuesday January 10, 2023 @09:35PM (#34334383)
"Exposes" is a strong word. Public keys are meant to be public. The only reason you might think twice about handing them over is they can de-anonymize you if you were practising identity hygiene.

Having a public register of public keys makes it easy to give people access to your organization, CI/CD etc.

Re:whoarethey: Determine Who Can Log in to an SSH Server by cryptonector on Tuesday January 10, 2023 @10:27PM (#34334695)
Public keys are not meant to be public. They can be public in that making them public doesn't compromise the corresponding private keys. And generally making them public helps scale key management.

There are cryptographic protocols where public keys are kept private. For example TLS with client certificates (the client's certificate gets sent encrypted to the server). Ditto SSHv2 (the client need not reveal all its public keys, and it does get to authenticate the server before revealing its identity and public keys).

Re:whoarethey: Determine Who Can Log in to an SSH Server by enasterosophes on Tuesday January 10, 2023 @10:40PM (#34334761)
You're right, but my intention was to tackle unfounded nervousness, not to draft a technical document explaining all the ins and outs of keypair cryptography.
Re:whoarethey: Determine Who Can Log in to an SSH Server by Reitet00 on Wednesday January 11, 2023 @01:47AM (#34335813)
> For example TLS with client certificates (the client's certificate gets sent encrypted to the server).

Hmm... I was under the impression that up until TLS 1.3 the client cert was sent in the clear during session negotiation...

Re:whoarethey: Determine Who Can Log in to an SSH Server by cryptonector on Wednesday January 11, 2023 @05:17PM (#34345812)
Yes, you're right, in 1.3 it goes encrypted, while in <1.3 it goes in the clear.
Re:whoarethey: Determine Who Can Log in to an SSH Server by Galanwe on Tuesday January 10, 2023 @11:51PM (#34335130)
> "Exposes" is a strong word. Public keys are meant to be public

That's a very strong overstatement. With this argument, you could argue that data leaks involving names, emails, etc are fine, because emails and names are meant to be public.

Re:whoarethey: Determine Who Can Log in to an SSH Server by danw1979 on Wednesday January 11, 2023 @08:06AM (#34337941)
Public keys are not PII though, unlike your real name.
Re:whoarethey: Determine Who Can Log in to an SSH Server by kevincox on Wednesday January 11, 2023 @12:41PM (#34341501)
They can be once they are linked to your GitHub account which may have your real name.
Re:whoarethey: Determine Who Can Log in to an SSH Server by FatActor on Wednesday January 11, 2023 @12:42AM (#34335402)
Well, yeah, but I just got a chill realizing if I'm just dinking around trying to ssh into a random addresses that I'll be sending my public keys for auth which can be correlated.

Not a big deal, but I forgot about that leak, so "expose" made me read further and be reminded that clearly I am not a blackhat, or any color hat for that matter.

Re:whoarethey: Determine Who Can Log in to an SSH Server by MathMonkeyMan on Tuesday January 10, 2023 @10:07PM (#34334584)
It's handy to allow my teammate onto my kubernetes cluster without having to ask him for his public key.
Re:whoarethey: Determine Who Can Log in to an SSH Server by ofrzeta on Wednesday January 11, 2023 @12:09AM (#34335224)
Where's the ssh server running in the cluster?
Re:whoarethey: Determine Who Can Log in to an SSH Server by MathMonkeyMan on Wednesday January 11, 2023 @12:57AM (#34335487)
on each node
Re:whoarethey: Determine Who Can Log in to an SSH Server by ofrzeta on Wednesday January 11, 2023 @02:44AM (#34336098)
Ok, and then the users have root permissions to interact with the containers? Forgive me for asking but I am thinking about solving similar problems (access to containers via ssh) .. or maybe I should use Teleport instead.
Re:whoarethey: Determine Who Can Log in to an SSH Server by mschuster91 on Wednesday January 11, 2023 @03:28AM (#34336350)
You usually only need this to do extremely low-level debugging in k8s, or to do generic system maintenance (e.g. OS upgrade).

Your average devops person? They will be happy when given a kubeconfig file linked to a role allowing them "kubectl exec" access to the workloads.

Re:whoarethey: Determine Who Can Log in to an SSH Server by MathMonkeyMan on Wednesday January 11, 2023 @08:47AM (#34338348)
Good point. These are test clusters that we use to reproduce customer issues. They usually have three or even just one node. It is in no way a production environment.
Re:whoarethey: Determine Who Can Log in to an SSH Server by jljljl on Tuesday January 10, 2023 @10:51PM (#34334820)
Github allows you to sign commits with your SSH keys. Having the public keys available publicly means anyone can verify the signature: https://docs.github.com/en/authentication/managing-commit-si...
Re:whoarethey: Determine Who Can Log in to an SSH Server by throwawayapples on Tuesday January 10, 2023 @11:01PM (#34334879)
Userify lets you import public keys from Github and Gitlab, which is handy.
Re:whoarethey: Determine Who Can Log in to an SSH Server by chasil on Wednesday January 11, 2023 @02:29AM (#34336013)
SSH keys can now be used to sign arbitrary content, so any github user with a published key is now able to publish verified content that can be verified offline.

https://www.agwa.name/blog/post/ssh_signatures