Skip to content
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

Component support for WASI p2 #432

Open
3 tasks
jbourassa opened this issue Feb 17, 2025 · 0 comments
Open
3 tasks

Component support for WASI p2 #432

jbourassa opened this issue Feb 17, 2025 · 0 comments

Comments

@jbourassa
Copy link
Collaborator

Add support for WASI p2.

TODOs (potentially incomplete):

  • Replace wasi_common crate with wasmtime_wasi
    • Requires rebuilding deterministic context, hopefully it should be trivial.
  • Ensure deterministic context also disables udp, tcp, and other form of non-determinism.
  • Expose additional methods such as inherit_network, allow_ip_name_lookup, allow_udp, allow_tcp

WasiCtxBuilder has settings where the user can inject an implementation, e.g. socket_addr_check. Ideally, we'd allow Ruby blocks to define such implementations. But unsure how we can achieve this: calling an arbitrary Ruby block is faillible, and the implementations do not allow for failure. Given this challenge, I'd suggest skipping those config knobs initially.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant