Sandboxing C++, Rust, Python Code?

This page summarizes the projects mentioned and recommended in the original post on /r/rust

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • wasmer

    🚀 The leading Wasm Runtime supporting WASIX, WASI and Emscripten

  • For file access, you want to look into WASI (example for wasmer), the standard file I/O API for Web Assembly. Both wasmer and wasmtime support that.

  • wasmtime

    A fast and secure runtime for WebAssembly

  • Look into Web Assembly and wasmer or wasmtime.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • nsjail

    A lightweight process isolation tool that utilizes Linux namespaces, cgroups, rlimits and seccomp-bpf syscall filters, leveraging the Kafel BPF language for enhanced security.

  • I am currently working on a code execution engine (also written in Rust) which uses nsjail for sandboxing and gnu time for measuring time and memory usage under the hood. You can run arbitrary code simply using a rest api and there is also a client library for Rust. It can already run C++, Rust and Python (and a few other languages) while allowing you to specify multiple source files, environment variables, command line arguments, standard input and resource limits (e.g. time, memory, maximum number of processes and whether network access is allowed or not). After running the program, the engine reports exit codes, outputs (stdout and stderr) and the amount of resources the program used.

  • sandkasten

    Run untrusted code in an isolated environment

  • The code is available on GitHub (https://github.com/Defelo/sandkasten) and there is also a link to a public test instance in the readme. Feel free to let me know if this is useful to you or if something is unclear. Any kind of feedback is appreciated!

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Unlocking the Power of WebAssembly

    3 projects | dev.to | 10 Mar 2024
  • WASM Instructions

    13 projects | news.ycombinator.com | 18 Feb 2024
  • Howto: WASM runtimes in Docker / Colima

    5 projects | dev.to | 12 Jan 2024
  • Spin 2.0 – open-source tool for building and running WASM apps

    13 projects | news.ycombinator.com | 4 Nov 2023
  • Show HN: Pypipe – A Python command-line tool for pipeline processing

    6 projects | news.ycombinator.com | 22 Oct 2023