It's not obvious to me how you make capabilities available to the code running inside the WASM virtual environment.
The core security advantage of WASM is the fact that no file capabilities are provided to the workload by default.
The core security advantage of WASM is the fact that no file capabilities are provided to the workload by default.
If you have something like a Kubernetes volume, config map, secret, etc. this is all prepared by Kubelet and winds up as mounts we need to perform as mentioned above.
Looks like that’s not decided yet.
In theory you could use pod.spec.volumes to hand it over to the shim for the wasi preopens.[1]
Whether that’s a good idea is the other side of the story…
[1] https://github.com/bytecodealliance/wasmtime/blob/main/docs/...
https://github.com/deislabs/runwasi/blob/9a43a31c1f29df65392...