feat: validate related origins for cross-domain passkeys#174
Conversation
|
Claude: I was tasked with researching the size and dependency delta this PR adds by enabling the reqwest-backed related-origins source. I built
That is +28 crates (hyper, h2, hyper-rustls, tower, tower-http, and similar). libwebauthn already trims reqwest to Net cost is the async HTTP/2 and rustls client core, roughly 1.7 MiB and 28 crates. |
c1c250f to
f33e997
Compare
Enables libwebauthn's reqwest-backed related-origins source.
f420e19 to
02f7cca
Compare
|
(rebased after merging the 0.8.0 update) |
|
I'm good to merge this, just leaving a note for posterity: I think I would want to lean more into system TLS libraries to offload the patch responses to distros. I am also hoping that with other changes coming to Web PKI (certificate transparency changes with MTCs, PQC and CRLite support) that distros start centralizing more of those disparate features into a consolidated API. If that happens, that would be awesome to rely on the platform to do that. Opting into using the platform now means we might be able to just pick up those features without extra maintenance on our end. But we'll see if it materializes. Regardless, this is a decision that can be deferred and doesn't affect the actual thing this is solving, which is unlocking related origins. I'm fine to merge this. |
Enables related-origins validation so a passkey can be used from related domains the relying party lists. Stacked on the libwebauthn 0.8.0 bump. Note this adds the reqwest HTTP client to the dependency tree.