awslabs / awslabs/llrt

Suggestion: FS, network, etc isolation

Open
#686 2 comments 3 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
8.8k
Forks
393
Avg merge
1d 11h
Merged PRs (30d)
45

Description

Can we have a feature flag like fs-isolation and net-isolation for complete isolation of runtime from system? Net-isolation as it is set by environment variables can be used when used as binary and net-isolation as a feature can also be added. Fs modules and require from file system features need be enabled only if fs-isolation is not present. I could try a draft pull request for fs-isolation if you could give me some starting pointers.

Here's a link to Node permissions API: https://nodejs.org/api/permissions.html

Also would rquickjs require any changes to implement fs-isolation?

Contributor guide

Open the contributing guide

Research direction

The issue does not name source files or tests. Start by reviewing the existing net-isolation behavior controlled by environment variables and the linked Node permissions API, then determine whether rquickjs needs changes; done would require agreed fs-isolation and net-isolation behavior that prevents the requested filesystem and network access.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, rust
Domain
operating-systems, security
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.