Skip to content

[Bug]: node:fs/promises is not patched, leading to sandbox/runfiles escape #1827

Open
@matthewjh

Description

@matthewjh

What happened?

Hi, I noticed that the fs patches apply to node:fs but not to node:fs/promises. This causes problems with sandbox escape in some tools.

Version

Development (host) and target OS/architectures:

Output of bazel --version:

Version of the Aspect rules, or other relevant rules from your
WORKSPACE or MODULE.bazel file:

rules_js 1.41.1

Language(s) and/or frameworks involved:
node v18.16

How to reproduce

No response

Any other information?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneed: discussionWe have to do some design work in a meeting

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions