runwasi icon indicating copy to clipboard operation
runwasi copied to clipboard

Pre-open directories and other capabilities

Open devigned opened this issue 2 years ago • 3 comments

In this Slack conversation and #265, we have started to discuss the fact that we are pre-opening the container root filesystem (fs) to the Wasm guest application. Pre-opening the root fs for use by the guest Wasm app is intended to enable users to build Wasm apps that feel more like the apps they know and love running in containers.

The default for many Wasm runtimes is to offer the guest no capabilities. This least privileged approach is one of the key features of Wasm.

We may want to reconsider pre-opening the container root fs in the future. Perhaps, we can replace the default behavior with a user specified behavior, opt'ing in to the pre-open. Additionally, we may also want to consider how other capabilities could be expressed by the user.

devigned avatar Aug 23 '23 15:08 devigned

discussion with some historical context in https://cloud-native.slack.com/archives/C04LTPB6Z0V/p1692799401937929

Is this another area where having specific wasi runtime configuration might be helpful?

jsturtevant avatar Aug 23 '23 19:08 jsturtevant

related: https://github.com/spinkube/containerd-shim-spin/issues/108

see @jsturtevant comment at the bottom

Mossaka avatar Jun 04 '24 16:06 Mossaka

This might be shim specific and we want to provide some guidance on how to do it

Mossaka avatar Jun 04 '24 16:06 Mossaka