-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Implement wasi-tls #10089
Comments
I did an inventory of the two most popular rust TLS crates to see how suitable they are to implement the draft spec:
From wasmtime's POV,
Despite its shortcomings, from a Standards POV, In the current stage the interface is still simple enough that it doesn't really matter which one we choose. I just wanted to throw it out there before we start sinking too much time into the integration of either option. |
How unreasonable do you think it would be to support both rustls and native-tls? For example via compile-time Cargo features? It seems reasonable to have rustls as the default given its breadth of features but being able to showcase both in the same codebase would be a nice example for others looking to implement the proposal as well. |
Given the current simplicity of the WASI interface, it should be doable to have both backends. Looking into the future, I can't vouch for how tenable the situation will be. The current plan is that @jsturtevant will work on the initial implementation. I haven't checked in with him on this specific point yet, but I suspect that we'll start with just a single backend. We could add the secondary backend in a follow-up PR. @jsturtevant Does this sound about right to you? |
Sounds good to me. My biggest concern would be the lack of features on the native-tls side but the initial interface is pretty minimal so shouldn't be an issue initially. We can adjust as we go. |
Also to be clear if you the implementor @jsturtevant would prefer to pick one or the other I think that's totally ok too. I wouldn't consider it a requirement to support both at the beginning at all. Given how things are leaning I think it would make sense to start with rustls and once that's all working we could see if adding a native-tls backend would make sense? |
Ok sorry early morning strikes again, @badeend already said all that, disregard me. |
wasi-tls has recently been accepted as a phase 1 proposal.
We'd like to start implementing this in wasmtime. There already exists some prior efforts:
native-tls
crate.rustls
crate.tls
CLI flagrustls
from awasi-http
-only dependency to a workspace dependency.My suggestion is to add a new standalone
wasi-tls
crate:/crates
folder, similar to the other proposals.tls
flag.rustls
for its implementation? (up for discussion, see next comment)Thoughts?
CC @dicej @jsturtevant
The text was updated successfully, but these errors were encountered: