Hardening Drupal with WebAssembly

# · ✸ 74 · 💬 50 · 10 months ago · wasmlabs.dev · gzurl · 📷
We provide a practical implementation of deploying Drupal in Apache with mod wasm, showcasing the seamless integration of the WebAssembly build of PHP. This novel stack not only improves Drupal's security measures, but also unlocks the ability for integration with other WebAssembly-powered components. With mod wasm, the stack to run PHP applications like Drupal closely resembles a traditional stack with a few modifications. This particular instance of Drupal is uninitialized, providing users with the opportunity to explore and test the Drupal setup process within the WebAssembly stack. Specifying the path to the PHP Wasm binary, and configuring specific directives for PHP and Drupal. The absence of sockets also means that PHP in Wasm cannot perform outgoing HTTP requests for downloading Drupal extensions or checking for updates. Moving forward, we will work on introducing socket support in mod wasm to enable network access to traditional databases and outgoing HTTP requests, further expanding the capabilities of Drupal deployments. Embracing WebAssembly opens doors to a more secure Drupal ecosystem.
Hardening Drupal with WebAssembly



Send Feedback | WebAssembly Version (beta)