Hacker News new | ask | show | jobs
by Ferret7446 49 days ago
> Passkeys have to be online to enroll additional keys

No they don't? A passkey is fundamentally just a private key pair, which can be copied around just like a very long password. Of course if you store it inside one hardware enclave and want to move it to another hardware enclave you have a problem, but for software implementations it's simply a client UX issue.

1 comments

I think "online" here means "loaded in a device", as opposed to "sitting in a safe".

The protocol requires additional keys to sign a challenge during registration, so at best you have to load a pre-generated key from the safe when creating a new account. In practice, you generate a new key for every account, so between generating the key and storing it in your safe there's no backup but cloud sync.

This prevents using backup storage that is safer but inconvenient to access, and also prevents registering accounts on-the-go.

> "Online" in the sense of "loaded in a device", as opposed to "sitting in my safe".

The "device" can be entirely virtual. I've written a passkey-compatible OIDC provider for use on my homelab and it uses passkeys. But the passkeys are just in a SQLite database, which can be copied wherever.

That's not advisable for security, which is one reason I've not released the provider for others to use, but passkeys can operate just fine with that.

If I wanted, the private key itself just be in something like AWS KMS instead of a SQLite database, and it would all still work fine. Nothing about passkeys itself requires a hardware device or that the key be unexportable.

> Nothing about passkeys itself requires a hardware device or that the key be unexportable.

That's all true, but also not the point of this thread (offline backups) or the post (attestation limiting user freedom).

All of which have solutions in this thread too. Nothing forces you to use a passkey provider that enforces attestation if that’s what your threat model worries about.
I admit that the 1+2 yubikey rotation mentioned elsewhere was clever and new to me, but I'd argue that none of the solutions in this thread were good enough.

> Nothing forces you to use a passkey provider that enforces attestation if that’s what your threat model worries about.

I'm very confused by this statement.

For starters, attestation is unrelated to the topic of offline backups discussed in this thread.

Second, the whole problem of attestation, as described in the original post, is that it's not you who decides when to use it. And it's not the passkey provider who enforces attestation, as you said. It's the Relying Party, like Netflix, who can unilaterally decide the minimum security features of my passkey scheme, with all their drawbacks, and attestation ensures that they're followed.

> It's the Relying Party, like Netflix

So the problem, then, is with Netflix, not with passkeys. Breaking passkeys to try to prevent some different harm from befalling you does not make sense. And the passkey provider can enforce the lack of attestation by refusing to support it.

Netflix could force you to use a chosen authentication provider to restrict that scenario. But, we already live in that world today, nothing in principle stops them from forcing you to use Okta Verify or Microsoft Authenticator in principle. Yet I do not see people using that as a reason to write articles about how OIDC 2.0 or TOTP is a trap.