Skip to content

Conversation

@isbm
Copy link
Member

@isbm isbm commented Jan 25, 2026

Add Wasm runtime for modules, compiled for WebAssembly (WASI):

  • Implement basic Wasm runtime module according to the specs
  • Add an example module
  • Add syscall from Wasm sandbox, so the WASM modules can call arbitrary commands
  • Update documentation
  • Add a tutorial how to install the runtime, modules, how to write one and wrap for their usage.

@isbm isbm marked this pull request as draft January 25, 2026 12:50
@isbm isbm self-assigned this Jan 26, 2026
@isbm isbm added documentation Improvements or additions to documentation feature New feature or request dependencies Pull requests that update a dependency file labels Jan 26, 2026
@isbm isbm changed the title Wasm Runtime implementation WASM Runtime implementation Jan 27, 2026
@isbm isbm changed the title WASM Runtime implementation Wasm Runtime implementation Jan 27, 2026
@isbm isbm requested a review from Copilot January 27, 2026 19:38
@isbm isbm marked this pull request as ready for review January 27, 2026 19:38
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request implements a WebAssembly (WASI) runtime module for Sysinspect, enabling the execution of portable, architecture-independent Wasm modules across heterogeneous systems.

Changes:

  • Implements core Wasm runtime module with sandboxed execution support
  • Adds three example modules demonstrating Wasm usage (Go and Rust examples)
  • Provides comprehensive tutorial documentation for writing and deploying Wasm modules
  • Upgrades Rust toolchain to 1.93.0
  • Refactors Python VM initialization to use newer RustPython API
  • Improves SSH authentication code in ssrun module using match expressions
  • Adds runtime utilities to libmodcore for dynamic request modification

Reviewed changes

Copilot reviewed 27 out of 30 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
modules/runtime/wasm-runtime/src/wart.rs Core Wasm runtime implementation with configuration, module loading, and execution
modules/runtime/wasm-runtime/src/main.rs CLI entry point and runtime orchestration
modules/runtime/wasm-runtime/src/mod_doc.yaml Module documentation defining runtime options and arguments
modules/runtime/wasm-runtime/examples/*/ Three complete example modules (hello, caller, rs-reader) with Makefiles
docs/tutorial/wasm_modules_tutor.rst Comprehensive tutorial covering installation, usage, and development
docs/index.rst Index updated to include Wasm tutorial
rust-toolchain.toml Rust toolchain upgraded from 1.92.0 to 1.93.0
Makefile Updated to include wasm-runtime in build targets
.gitignore Enhanced to ignore build artifacts from examples
modules/sys/ssrun/src/main.rs Refactored SSH authentication logic to use match expressions
libsysinspect/src/pylang/pvm.rs Updated Python VM to use newer RustPython builder API
libmodcore/src/runtime.rs Added Clone derive, From impl, and methods to modify ModRequest
libmodcore/src/response.rs Added get_data() method for accessing response data
libmodcore/src/manrndr.rs Changed print_mod_manual to accept reference instead of owned value
modules/runtime/lua-runtime/src/main.rs Updated to pass reference to print_mod_manual
Cargo.toml, Cargo.lock Added wasmruntime and related dependencies

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

isbm and others added 6 commits January 27, 2026 20:53
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…pect.go

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 27 out of 30 changed files in this pull request and generated 7 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

isbm and others added 6 commits January 28, 2026 00:15
…pect.go

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…pect.go

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@isbm isbm merged commit abd8130 into master Jan 28, 2026
3 checks passed
@isbm isbm deleted the isbm-wasm-runtime branch January 28, 2026 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file documentation Improvements or additions to documentation feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants