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

enable running WASM binaries with kwasm in constellation #3165

Closed
1 task
hpvd opened this issue Jun 12, 2024 · 3 comments
Closed
1 task

enable running WASM binaries with kwasm in constellation #3165

hpvd opened this issue Jun 12, 2024 · 3 comments

Comments

@hpvd
Copy link

hpvd commented Jun 12, 2024

Use case

enable running WASM binaries
would help to drive security even further because of

  • security advantages of WASM (sandboxed, only the relevant code inside)
  • making it easier, and with this less error-prone/more secure, to rely on different base architectures (intel/amd, arm..) since no different/multi-arch images with different signings needed anymore.

Describe your solution

make constellation fully compatible to with kwasm operator to easily make it ready to run wasm binaries
https://github.com/KWasm/kwasm-operator

Many other standard (non cc) distributions already are compatible:
https://github.com/KWasm/kwasm-node-installer?tab=readme-ov-file#supported-kubernetes-distributions

Would you be willing to implement this feature?

  • Yes, I could contribute this feature.
@hpvd
Copy link
Author

hpvd commented Jun 12, 2024

2 up-to-date video sources on kwasm:
overview:
https://www.youtube.com/watch?v=d51lFnAR-Z0
review:
https://www.youtube.com/watch?v=oY9le4DDAOY

@hpvd
Copy link
Author

hpvd commented Jun 12, 2024

maybe this can be thought together with #2879 (of course only if this meets your safety requirements)
as an approach to make constellation suitable for "flexible any cloud" today (agnostic of CPU-Architecture used and cloud vendor)
without blowing up efforts on maintenance....

edit: of course another topic fitting into the direction of "flexible any cloud" and its management, is the crossplane topic...
#2630

@burgerdev
Copy link
Contributor

Hi @hpvd,

Thanks for considering Constellation for your WASM use case!

As far as I understand, the node-installer works by modifying the containerd config in place and adding the kwasm-shim. That won't work on Constellation, because the containerd config file is on the immutable root partition. This choice is deliberate trading off flexibility for safety. You can find more information on the Edgeless docs.

If it were possible to extend containerd safely, say with override fragments like for systemd, we could consider adding a config dir to the mutable state disk. I took note of that in our backlog, but imho a feature request for containerd would need to be filed first. Then the kwasm team would need to add Constellation to the known config locations in their install script.

Cheers, Markus

@burgerdev burgerdev closed this as not planned Won't fix, can't repro, duplicate, stale Jun 12, 2024
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

2 participants