You can edit almost every page by Creating an account and confirming your email.

Mod wasm

From EverybodyWiki Bios & Wiki


mod_wasm is an open source Apache HTTP Server extension module able to run and serve WebAssembly binaries as endpoints.

Features

mod_wasm can be useful in different scenarios:

  • Run existing applications from a variety of languages without modification.
  • Execute untrusted third-party code in a secure environment without using containers.
  • The Wasm capabilities model allows you to enable/disable capabilities per HTTP request.

History

mod_wasm was originally developed by VMware's Wasm Labs.

Its first version v0.1.0 was unveiled and open sourced at the ApacheCon North America on Oct 3rd, 2022,[1][2] receiving extended press coverage.[3][4][5][6]

Multi-module support was announced[7] in November for v0.10.0, showcasing how to run different Wasm binaries simultaneously coming from different sources (ie: Python, PHP, Ruby, Rust, etc.).

With the v0.11.0 release in May 2023, mod_wasm was capable of running a fully working Drupal instance in a sandboxed environment.[8][9] In addition, the v0.11.x releases showcased how a recent PHP critical vulnerability affecting Drupal could have been mitigated. [10][11]


Design and Source Code

The project consists of two libraries: mod_wasm.so (written in C) and libwasm_runtime.so (written in Rust). It uses Wasmtime[12] as the primary WebAssembly runtime.

File:Mod wasm.webp

Source code, demo containers, and examples can be found on the mod_wasm GitHub repository.

mod_wasm helps to replace a traditional LAMP stack, where the language runtime (ie: PHP, Python, etc.) is replaced by a compiled WebAssembly version.

File:Drupal-mod wasm.png


References

  1. ↑ "mod_wasm's slides from ApacheCon" (PDF).
  2. ↑ "mod_wasm: run WebAssembly with Apache".
  3. ↑ "WebAssembly Weekly - Issue #180".
  4. ↑ "WebAssembly comes to Apache web server". 12 October 2022.
  5. ↑ "Practical WebAssembly Podcast Oct 06 2022". YouTube.
  6. ↑ "Apache Releases WebAssembly Module for Web Server". 14 October 2022.
  7. ↑ "Multi-module Support in mod_wasm 0.10.0". 28 November 2022.
  8. ↑ "Hardening Drupal with WebAssembly". 29 May 2023.
  9. ↑ "Hardening Drupal with WebAssembly (Hacker News)". 29 May 2023.
  10. ↑ "Mitigating PHP Vulnerabilities with WebAssembly". 17 May 2023.
  11. ↑ "WebAssembly Weekly - Issue #191". 26 May 2023.
  12. ↑ "Wasmtime. A fast and secure runtime for WebAssembly". Bytecode Alliance. Retrieved 2022-10-18.


This article "Mod wasm" is from Wikipedia. The list of its authors can be seen in its historical and/or the page Edithistory:Mod wasm. Articles copied from Draft Namespace on Wikipedia could be seen on the Draft Namespace of Wikipedia and not main one.