WebAssembly / WebAssembly/WASI

Should wasi-tls be imported in the wasi:cli world?

Open
#755 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

P-cli S-inactive
Dominant language
Rust
Stars
5.8k
Forks
333
Avg merge
2d 13h
Merged PRs (30d)
3

Description

Today we do not import wasi:tls in the worlds that we encourage runtimes to support, e.g. wasi:cli/run and wasi:http/proxy.

Should wasi:cli/run remain strictly to features of POSIX or is the intention to provide features that most CLI programs need (including SSL/TLS)? Today sockets are supported but making requests for insecure sockets is (or at least should be) rare.

Some options:

  • Add wasi:tls to imports and thus the run world behind a feature gate, e.g. cli-with-tls.
  • Introduce another world in wasi:cli, e.g. run-with-tls or cli-secure
  • Add a world to the wasi:tls proposal that is essentially the above, wasi:tls/run
  • Introduce a different batteries included proposal. I often write programs that import both wasi:cli/imports + wasi:http/outgoing-handler and would depend on wasi:tls once it reaches phase 3 and is well supported by the ecosystem, .e.g cli-net-tls.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by comparing the wasi:cli/run and wasi:http/proxy worlds and how they currently relate to wasi:tls. Review the listed alternatives, including feature-gated imports and additional worlds, and determine which approach best defines TLS support for common CLI programs. Done means reaching a clear decision on the world and feature design.

Written by the indexing model from the issue text.

Assessment

Tech stack
wasm
Domain
operating-systems
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.