-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Server-side WASM support #447
Comments
ring crashes on a lot of platforms so we can't use it. Haven't looked at aws-lc-rs we are considering moving to he RustCrypto ecosystem. |
Thank you for your response @Firstyear. Do you know about how long it'll be before that'll be in production? And, is there anything that can be done in the meantime (other libraries, techniques, hacks) that you can think of? |
I won't be able to get to it for some time - if @micolous has spare time and feels up it to they can. Otherwise, if you want to help, feel free. I'm starting a "glue" crate because RustCrypto crates are generally a fragmented bunch and the glue is needed. From there we can swap out small parts of the primitives one at a time, and potentially even make the glue crate it's own interface etc. |
Rather than start Yet Another Glue Crate, I'd probably help out rustls and/or implement the crypto::CryptoProvider trait as noted to avoid duplicating work... there was a recent talk saying that they've replaced OpenSSL in some projects recently with it |
@yaleman that provider is very much aimed at TLS, not general purpose crypto operations. |
Just want to provide another use case. I'm working on an authentication library that can be used with multiple languages (currently JS, Go, and Rust). Rather than rewrite things like webauthn support for every language, I'm writing the bulk of the code in Rust, compiling to wasm32, and using Extism to run in each host language. So far I've been able to use openidconnect-rs to add OIDC support and ATrium to add ATProto/Bluesky login, but I haven't found a webauthn library yet. I see webauthn_rp which does compile for wasm32, but I don't see any examples and I'm not sure if it's fully functional or not. |
Is your feature request related to a problem? Please describe.
I'm not able to compile
webauthn-rs
due to openssl being included in a non-optional way. Unfortunately, theopenssl
crate cannot be compiled onwasm-unknown-unknown
which is required for my application.Describe the solution you'd like
Use an alternative crypto library that's written in native Rust when compiling to
wasm-uknown-unknown
.Is this still true? There must be something out there that can work for authentication. Are
aws-lc-rs
orring
incompatible?Describe alternatives you've considered
openssl
feature enabled by default that can be disabled by users ofwebauthn-rs
rustls
you can see they provide aCryptoProvider
struct that allows the developer to "replace all cryptography dependencies of rustls. This is a route to being portable to a wider set of architectures and environments, or compliance requirements."Additional context
I'm running my server code in a Cloudflare Worker
The text was updated successfully, but these errors were encountered: