this post was submitted on 16 Sep 2025
667 points (97.7% liked)

Programmer Humor

26722 readers
125 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] RustyNova@lemmy.world 129 points 2 weeks ago (8 children)

I kinda hate the push towards passkeys. If you have two factor Auth, going to passkeys makes you go back to 1 factor, aka less secured.

There's also more and more 2FA fatigue attacks going on, and they can affect passkeys too, and if you don't have a 2FA that involves the user writing a code on the 2FA device, passkeys could be quite possibly worse than passwords

[–] ramjambamalam@lemmy.ca 67 points 2 weeks ago (2 children)

I think this post is about git CLI, not www.github.com.

SSH keys are very secure and you can still encrypt them with a password if you wish.

[–] jonjuan@programming.dev 42 points 2 weeks ago (3 children)

encrypt them with a password if you wish.

SSH keys without passphrases are just fancy credential files sitting in your .ssh/ directory, basically like writing your passwords on paper and leaving it in your desk drawer.

[–] rumba@lemmy.zip 11 points 2 weeks ago

but they require chmod 400 and they're ideally in on an encrypted disk

So the desk drawer is locked and the codes are Luks encrypted.

And for critical stuff, you should also have a password on the key.

If your ssh keys are like a passwords on paper in a drawer, you're doing it wrong.

[–] tauonite@lemmy.world 9 points 2 weeks ago

TIL some people store SSH keys unencrypted

[–] ThunderQueen@lemmy.world 7 points 2 weeks ago

I had mine on paper for years before i learned about Keepass. I trusted it more than a cloud based manager because someone would have to physically be in my room.

I am a lot more careful these days but that is not beyond the pale for a lot of folks haha

[–] Evotech@lemmy.world 2 points 2 weeks ago (1 children)

It’s not about encryption/security it’s about creating something that can’t be phished.

We know that 2fa is secure. But if an attacker can trick you into giving them the code, or typing it in a fake box. Then they own you.

Passkeys are made so that there’s nothing to give, nothing to type. You must control the device.

[–] ramjambamalam@lemmy.ca 2 points 2 weeks ago (1 children)

SSH keys are more like passkeys than passwords.

[–] Evotech@lemmy.world 1 points 2 weeks ago* (last edited 2 weeks ago) (1 children)

I’d love to see the state of online banking if everyone were to manage their own ssh keys

In all seriousness, they are similar, but not quite in this context.

There’s a good project on how to make ssh key infra more scalable and innately secure. Then you can use passkeys on top if you’d like.

https://github.com/openpubkey/openpubkey

https://github.com/openpubkey/opkssh

I personally use this on all my servers.

[–] ramjambamalam@lemmy.ca 1 points 2 weeks ago (1 children)

I’d love to see the state of online banking if everyone were to manage their own ssh keys

Most people couldn't figure out how to download a binary release from a GitHub repo, much less clone it, regardless of HTTP or SSH.

[–] Evotech@lemmy.world 1 points 2 weeks ago* (last edited 2 weeks ago)

True, not the point though

[–] malwieder@feddit.org 26 points 2 weeks ago (1 children)

Passkeys use public key authentication. This makes them very resistent to phishing attacks. It's also not possible for a phishing site to request authentication via a passkey created on a the original website.

[–] ronigami@lemmy.world 2 points 2 weeks ago (1 children)

In practice, they use Face ID, which has privacy implications.

[–] malwieder@feddit.org 5 points 2 weeks ago

In practice, they either use system authentication if you use the implementation bundled with iOS/Android - and sure, that can be Face ID if setup, or other forms of biometric authentication. Both operating systems have APIs that allow password managers to provide their own implementation of passkeys, and in that case you have to authenticate with your password manager - sure most of them support using system authentication (biometrics) as well, but this could also be a master password or hardware key (which work very similar to passkeys by the way).

I'd argue if you don't assume that whatever system you're using is reasonably secure/private, you probably shouldn't enter any passwords on that system either. This isn't a passkeys vs. passwords problem.

[–] YtA4QCam2A9j7EfTgHrH 23 points 2 weeks ago (3 children)

Yeah. Passkeys are something I would love if they were a second factor because they are so much better than any other 2fa. And I use my yubikeys as second factors where I can. But why the hell would I not want a password too?

[–] nialv7@lemmy.world 19 points 2 weeks ago

Passkeys are always supposed to be protected by another layer of authentication. e.g. a password should be required to unlock the passkey. If your passkey don't do that, stop using it.

[–] jj4211@lemmy.world 6 points 2 weeks ago

If I provide passkey support and still require a password, most users will get annoyed and not bother. If I provide it as a replacement for password, then I can get them onboard more often. I'd rather have them using passkey than sticking with password.

[–] jbk@discuss.tchncs.de 1 points 2 weeks ago
[–] nialv7@lemmy.world 18 points 2 weeks ago (1 children)

It's different. It's still two factors if implemented correctly: 1. Possession of the passkey (better if you have a physical token, but passkey on your phone is passable). 2. Knowledge of your password (or bio authentication if you use face id or w/e).

Note you are not giving your password to the website, and if a hacker gets hold of your password they still can't do anything without your passkey device.

[–] RustyNova@lemmy.world 9 points 2 weeks ago (1 children)

Knowledge of your passwords

Uh... What password?

[–] nialv7@lemmy.world 23 points 2 weeks ago (1 children)

Passkey should ask for a password for unlocking. If it doesn't then it's not implemented correctly.

[–] jj4211@lemmy.world 9 points 2 weeks ago (1 children)

It's client specific and my phone requires whatever can unlock the phone and chrome requires either windows hello or a pin if under linux.

Certain implementations do whatever, and as far as the backend is concerned, there's no way of knowing, unless you want to get into the business of locking down specific vendor keys...

But I say MFA is overrated versus just getting away from generally crappy password factors. Also passkeys are less phish-able than OTP type solutions.

[–] nialv7@lemmy.world 7 points 2 weeks ago* (last edited 2 weeks ago)

Yes, it's implementation specific, in this case your phone, or your browser is the passkey "device". And as long as it's protected by some form of authentication it's OK (though I would recommend a hardware token over phones/browsers). If it doesn't then you shouldn't be using that "passkey". Yes, there is no way for the website you are authenticating with to know whether your passkey is safe or not, choosing a secure passkey implementation is (unfortunately) the user's job. But it's the same with more traditional 2FAs, e.g. you can store your TOTP secret securely or insecurely, and the website will have no way to know.

[–] rumba@lemmy.zip 7 points 2 weeks ago (1 children)

Under passkey implementations, you need to unlock the passkey device with biometrics or passwords. Something you are/know (biometrics/passwords) and something you have (passkey).

It's not impossible to screw it up. Put your passkeys in bitwarden, reuse a password and don't 2fa that.

[–] RedFrank24@lemmy.world 5 points 2 weeks ago (1 children)

My workplace doesn't allow Bitwarden because 'it's not secure'.

[–] rumba@lemmy.zip 2 points 2 weeks ago

It's easy enough to enforce 2FA on it.

Most of the other online solutions are about the same.

[–] RamenJunkie@midwest.social 5 points 2 weeks ago (2 children)

Also, what happens if your device with the passkey fails?

Like the drive craps out?

[–] twice_hatch@midwest.social 4 points 2 weeks ago

You are supposed to have two redundant ones. Hooked up to every service. One leaves the house with you, the other stays in a safe, and you rotate them periodically

and nobody is gonna fucking do that lol

Mine are USB-A and USB-C so no two computers can use both. One of them randomly quit working (something in the OS dropped support for it maybe?) but then I think started working again?

At an old job I had a lot of control over my own infra and I used my HSM to log in to my forge. I haven't used it daily in years now.

[–] Electricd@lemmybefree.net 1 points 2 weeks ago

Similar problem with 2FA though

[–] ronigami@lemmy.world 5 points 2 weeks ago

That sort of thing is the push I need to get entirely off of Github

[–] REDACTED 0 points 2 weeks ago (2 children)

It's still more secure than password+sms/email

[–] JcbAzPx@lemmy.world 5 points 2 weeks ago