Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: explicitly mention node:fs module restriction #54269

Merged
merged 2 commits into from
Aug 10, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions doc/api/permissions.md
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,11 @@ process.permission.has('fs.read', '/home/rafaelgss/protected-folder'); // false

#### File System Permissions

The Permission Model by default restricts access to `node:fs` module.
It doesn't guarantee users won't be able to write to the disk.
For instance, `node:sqlite` allows users to use
a file-based database.
RafaelGSS marked this conversation as resolved.
Show resolved Hide resolved

To allow access to the file system, use the [`--allow-fs-read`][] and
[`--allow-fs-write`][] flags:

Expand Down
Loading