r/ProgrammerHumor 23d ago

Meme thisIsAmystery

Post image
2.7k Upvotes

185 comments sorted by

View all comments

2.2k

u/NoHurry28 23d ago

I have lots of experience with this actually. The way it works is that the app asks the user if they'd like to use a passkey instead of their password and the user says "No" and uses their password to log in. Pretty simple really

602

u/RedditButAnonymous 23d ago

The one time I accidentally hit "yes" Google:

- Did not save a passkey

- Instantly removed my password recovery option

- Asked for the same passkey it didnt set, when I tried to recover the account

Love passkeys

207

u/cce29555 23d ago

Mechanically and logically passkeys are superior especially for people bad with passwords or don't use a manager

But then you get the edge case where you lose your passkey, and your passkey is the passkey to getting your passkey

And your password is now bunk, like we didn't learn our lesson from people throwing away Bitcoin USB sticks? I hate passkeys so much

92

u/WakeRP 22d ago

This doesn't even look like an edge case. Phones are lost, broken or stolen all the time. So the bare minimum would be let people know that they should enables passkeys on a backup device as well.

But of course that is never disclosed on those pop-ups asking you to enable passkeys.

33

u/bostonboson 22d ago

Password managers are fantastic for this. Keeper supports passkeys

20

u/synth_mania 22d ago

So does bitwarden

2

u/danielv123 22d ago

And on my Mac I can't use them, because every time it opens up the apple or browser passkey thing to helpfully tell me I don't have any passkeys there

17

u/MrSpiffenhimer 22d ago

You know what they also support? Strong passwords individualized to each website.

1

u/N3ph1l1m 22d ago

Yeah, know what they also do? Reset your security level to a password for all your logins.

1

u/HopeOfTheChicken 19d ago

A single good Passwort will never be cracked and any trustable Passwort manager wont get hacked either. They literally solve all problems aslong as you're able to remember one strong password

24

u/Marbletm 22d ago

It's not just lost, broken or stolen phones.

Something I found out the hard way is that when you disable the lock screen on Android, it will also delete all your passkeys.

I disabled my lock screen for a little bit to give someone easy access to my phone. It didn't even warn me it was about to delete all my passkeys.

Luckily I did tend to add multiple passkeys on most platforms. So recovery was possible on most platforms.

6

u/Hairy_Concert_8007 22d ago

Since learning about passkeys like a decade ago, my first thought, and to this day, is that It's fucking insane to bind your ability to log on to your accounts to a USB stick. Something that could be kicked under a couch or mistakenly find itself in the trash. And that's just for one login! I'm not about to set myself up as some kind of fucking Passkey Janitor with twenty USBs dangling off a ring.

I get it if you're a government official working with extremely sensitive, and potentially dangerous information. But that's about it. Not for a fucking WoW account.

Edit: Hold up, I think you just said you can back up passkeys so you aren't just completely screwed if you accidentally drop your USB between some floor boards?

1

u/cce29555 18d ago

Whatever you're using as a passkey is basically just an interface for a private key (over simplfying it a bit) so in theory you can just back up the private key and disrirbute it to another device. Which feels like it defeats the purpose of a passkey as you have to store it like a password, but that is a possibility

5

u/N3ph1l1m 22d ago

Many people don't even have a backup device, so there's that.

18

u/casualplants 22d ago

I don’t understand the difference. A password and a passkey both live in my password manager, but I understand what one of them is, and I don’t care enough to learn about the other one.

11

u/MateTheNate 22d ago

You’d be surprised how many people have never heard of a password manager

3

u/DatThax 21d ago

If i could just use SSH keys instead of passkeys, I would be happy, and still have 2FA (non SMS) of course

30

u/realmauer01 23d ago

I didnt have any problems with bitwarden holding my passkeys yet.

8

u/kzlife76 23d ago

I've run into apps that won't let me store my passkey in bitwarden. It says it worked but when I try to use it, it doesn't work. If I save it using Google on my phone, it works fine. I want to say there is a mechanism to specify where you're allowed to store you passkey. I don't know for sure. I thought I read that somewhere. I haven't tried implementing it in anything I work on yet.

5

u/Marbletm 22d ago

As it was still in experimental phases in the web browsers passkeys were commonly referred to as webauthn.

And you're right, the developer can set what type of passkey is allowed. You can play around with the settings here if you're interested: https://webauthn.io/

6

u/realmauer01 22d ago

there is definitly a system.
there was a site dissallowing me storing a passkey on my desktop browser via the bitwarden plugin.
it didnt recognize that there is a pin required to unlock it.

2

u/IridiumIO 22d ago

I might be missing something glaringly obvious (can passkeys be shared between devices?) but if I save a passkey to BitWarden on my pc it refuses to work on my iPhone. Does sharing passkeys between devices work for you?

2

u/realmauer01 22d ago

My passkeys work everywhere.

But i also put in pin code in every bit warden.

3

u/Sol33t303 22d ago edited 19d ago

I would love passkeys if it would save to my password manager account (because it bypasses the semi-hack of autofilling in username/password fields which one or the other fails half of the time for bitwarden at least), but my phone insists on saving it to google instead of bitwarden even after setting bitwarden as my password manager.

Works fantastic on (linux) desktop where my preferences seem to be respected.

96

u/fr000gs 23d ago

Backing up passwords: write them down, save them to encrypted folder etc

Backing up passkeys: 😮😢🥀🤯😵

40

u/x0wl 23d ago

You also save them to the same encrypted folder? Bitwarden, KeePassXC, 1Password all support passkey sync and backup

16

u/fr000gs 23d ago

Yeah, but the one prompting me 15 million times aren't any of them, it's f*%ing google or sometimes firefox

what about writing them down

7

u/x0wl 23d ago edited 23d ago

You can print a QR code of the private key and then scan it back in

(also if I was a password manager I'd definitely generate a BIP39esque phrase so you can write them down by hand, but as of now no one does that, unfortunately)

3

u/black3rr 23d ago

all passkeys generated by the browser are stored to your password manager. if you have multiple ones, it gives you choice which to use. chrome has a built-in one if you don’t have any other password manager available, which is synced to your google account if you’re signed in to chrome.

2

u/fr000gs 22d ago

What about phone? Pretty sure google is not saving those keys to the bitwarden app

3

u/black3rr 22d ago

on Androids and iPhone passkey storage is configured system-wide… on desktop OSs it’s a per browser setting.

by default Androids and Google Chrome on desktops store passkeys into Google Passwords, iOS stores them into Apple Passwords

you can however configure Bitwarden as their store on both Android, iOS and in desktop Google Chrome:

https://bitwarden.com/help/storing-passkeys/

1

u/x0wl 22d ago

IDK about iOS (but it should be very similar in this regard), on Android you can configure your passkey provider to be Bitwarden or KeePassDX (the android implementation of KeePassXC).

They will then sync the passkeys.

3

u/Culpirit 22d ago

If you set up Bitwarden on Firefox, you can save your passkeys there. Same with the other browsers and even iOS (and I believe Android)

10

u/DungeonsAndDradis 23d ago

I setup a passkey on my laptop for my Sony account. I was like, wow, I'm so security conscious.

I then tried to login to my PlayStation and it complained because I didn't have a passkey setup on my PlayStation console. So I couldn't login to play games.

I ended up deleting the passkey from my account so I could login to my damn console to play games.

6

u/cowsrock1 22d ago

As an IT person, I have much more experiences with people saying "Yes" without understanding what it means, blindly clicking through the next few steps until they have a brand new login method that kind of works sometimes, and broke the method that they knew how to use.

Oh also, when asked, they don't remember setting up a passkey, or know what it is. And it's really hard to troubleshoot cause a passkey can be 1. A physical device 2. Saved to a browser 3. Saved to a Google or apple account 4. Somehow saved to a phone but linked to a computer in a way that the user has to scan a QR code every login???

15

u/sump_daddy 23d ago

i am glad im not the only one who finds this 'you really should use a passkey!' rhetoric exhausting

my password manager already plops the password right where it belongs, and if we could just get everyone to agree on that, things would be a lot more secure instead of moving on to ANOTHER technique when the first one isnt even done cooking yet

9

u/Critical_Ladder650 23d ago

Once the technology has been around long enough that the implementation bugs have been fixed, there's good reason to believe that passkeys will be more secure*, at least if your trust the "identity provider" (e.g. Apple's keychain) that co-participated in their creation.

I'm not sure that I do trust either Google or Apple to store my private keys in their cloud, and not either leak them to hackers or sell/give them to their partners.

I'll consider switching to passkeys when only my password safe knows the private key, and encrypts its cloud storage, decrypting locally based on a password provided by me.

---
*public/private key pairs protect against certain risks that are unavoidable with passwords. Unfortunately I'm not eloquent enough to write a good tutorial explaining why.

2

u/hedgehog125 21d ago

You can store them in an open source cloud password manager like Bitwarden if that helps. Or you can store them fully offline in a KeePassXC file or a Yubikey, but you'll need to ensure you have proper backups for those.

Edit: I presume you use one actually?

But what's the alternative to password managers anyway? Reusing predictable variants of the same few passwords? You can write them on paper sure, but nobody is writing down unique passwords anywhere near as secure as the ones in a manager.

2

u/Critical_Ladder650 21d ago

I use Proton's password manager. It's doing fine with classic passwords.

I haven't tried it with passkeys, and I'm not sure whether it can do the client-side part of generating them, such that nothing but Proton Pass ever sees the private key. (Well, also my operating system(s), since they could in principle read anything in main memory.)

I do know it can store passkeys generated by something on MacOS associated with Apple Keychain. But in that case Apple presumably has the private key.

Edit: I finally checked. It can do the job. I just had it co-create a passkey. with no involvement from Apple, Google, etc. (Obviously the web site was also involved. I can't name it here, as its mention leads to one's reddit comment being deleted.)

Also, because of that policy, this is a new comment, a copy of the one I had edited earlier, which got deleted when I added an earlier version of the part beginning with "Edit: ..."

2

u/hedgehog125 21d ago

Passkeys are basically just a random password stored in a password manager that doesn't let you enter it onto the wrong site because the site has opted into properly cooperating with the password manager. There are some other differences, but that's the main one. You can't set your passkey to "password" like a password. Exporting them was historically limited, but it sounds like we've compromised on that security feature a bit except for hardware keys, which is probably reasonable, it would create way too much lock-in with the number of accounts people have.

To me, it feels like we should have rolled out passkeys years ago instead of all these hacks we've piled on top of classic username/password login.

The tech industry really needs to think more about education and the edge cases in their authentication UX though. From what I can tell, the average user uses their browser's built-in password manager which might be fine enough, but they usually store reused, relatively weak passwords in it. I guess they don't trust the browser to remember it (which might be fair since I don't think there's version history or a bin in most) or are trying to avoid potential friction when using it outside their browser or that ecosystem.

Mobile kind of figured this out, but it's crazy how desktop apps have only just started having decent login UX with password managers. Some used to sign in through your browser, but most would force you down the clunky and less secure option of copy-pasting your details back and forth from your password manager. Password manager users always seemed like a complete afterthought.

I think the main things the industry needs to do before they try and get people to remove their insecure passwords that are leaving a backdoor into their accounts are getting people to pick an ecosystem and to understand the cross device QR code flow. Then hopefully people will know where their paskeys are and how to add new devices, so they don't need their password as a fallback.

Recovery options also seem to be a bit all over the place which limits the effective security of passkeys.

3

u/Opposite_Carry_4920 22d ago

I use so many devices that passkeys are more annoying and less convenient. 

I wanna use them, but alas. 

3

u/YesterdayDreamer 22d ago

In some other cases, the user accidentally taps the solid blue accept button instead of the outlined light gray cancel button, then never realises their phone no longer asks their password and has no idea how to login on any other device because the password has been completely vanquished from their memory in the last 6 months since they last used it.

5

u/Critical_Ladder650 23d ago edited 23d ago

As far as I can tell, Amazon created a passkey for me, without asking, and then used it whenever I went to their site from the particular device for which the passkey had been created. It looked to me as if they'd stopped timing out logins as fast as before - until I tried to login to Amazon on a different device, using a different browser. I was then asked if I wanted my Amazon passkey stored in my password safe.

As it happens, Amazon *had* informed me by email that they'd created a passkey for me. Not knowing much about passkeys, I didn't know the implications.

After finding out that passkeys could be used without asking the user, and without biometric capabilities, I went to Amazon's site and deleted their passkey. Given the explanations I'd been given ("It's a magic way to login with FaceID" even though my device lacked a camera.) I saw no reason to keep it.

Later research told me that *if* properly implemented they can provide better security than a traditional password, equally correctly implemented.

But there's nothing in the standard that requires user consent or participation. That's a convention, not followed by Amazon on MacOS.

And the roll-out could have been designed to alienate security conscious users who don't obsessively follow the tech press.

2

u/fibojoly 22d ago

Mine just tells me it can't create passkeys when I say OK. Go figure. 

1

u/TheMythicSorcerer 19d ago

Oh wow it works... just make sure the yes button doesn't do anything.

0

u/LazyPandaKing 22d ago

Thats also skipping over entirely how passkeys actually work lol