Skip to content

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

@ricochet

Description

@ricochet

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions