WASM Plugin System for Database Proxy with Sandboxed Host Functions and Hot Reload

We present a WebAssembly (WASM) plugin system for a database proxy enabling user-supplied extensibility for authentication, query transformation, caching, routing, and metrics via sandboxed WASM modules. The system uses Wasmtime for WASM execution with a capability-based permission model (12 distinct permissions), configurable resource limits (memory, CPU timeout, filesystem access), hot-reloading of plugins without proxy restart, and a host function API providing database-specific opera-tions (query execution, cache access, schema discovery, metrics recording). While WASM extensibility exists in network proxies (Envoy proxy-wasm, Istio), its application to database proxies with database-specific host functions and a granular capability-based permission model is novel. PostgreSQL and MySQL use native C/C++ extensions that lack sandboxing and crash the server on bugs.

Authors

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-03-27
DOI
https://doi.org/10.5281/zenodo.19244470
Primary Topic
Security and Verification in Computing
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

WASM Plugin System for Database Proxy with Sandboxed Host Functions and Hot Reload

Daniel Moya Vaca
Zenodo (CERN European Organization for Nuclear Research)
Security and Verification in Computing
article

WASM Plugin System for Database Proxy with Sandboxed Host Functions and Hot Reload

Daniel Moya Vaca
article en

Abstract

We present a WebAssembly (WASM) plugin system for a database proxy enabling user-supplied extensibility for authentication, query transformation, caching, routing, and metrics via sandboxed WASM modules. The system uses Wasmtime for WASM execution with a capability-based permission model (12 distinct permissions), configurable resource limits (memory, CPU timeout, filesystem access), hot-reloading of plugins without proxy restart, and a host function API providing database-specific opera-tions (query execution, cache access, schema discovery, metrics recording). While WASM extensibility exists in network proxies (Envoy proxy-wasm, Istio), its application to database proxies with database-specific host functions and a granular capability-based permission model is novel. PostgreSQL and MySQL use native C/C++ extensions that lack sandboxing and crash the server on bugs.

Zenodo (CERN European Organization for Nuclear Research)
Openalex Percentile: Top 6%
Security and Verification in Computing
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.