Skip to content

doc: clarify that --allow-net covers local sockets - #67612

Open
ShogunPanda wants to merge 1 commit into
nodejs:mainfrom
ShogunPanda:doc-allow-net-ipc
Open

ShogunPanda wants to merge 1 commit into
nodejs:mainfrom
ShogunPanda:doc-allow-net-ipc

Conversation

@ShogunPanda

Copy link
Copy Markdown
Contributor

The Permission Model documentation did not say how local sockets are handled. Binding, listening on and connecting to Unix domain sockets and Windows named pipes through node:net is governed by --allow-net, and the socket path is not checked against --allow-fs-read or --allow-fs-write.

This adds that note to permissions.md, to the --allow-net section of cli.md and to the man page.

AI-assisted work. All changes reviewed by a human.

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/security-wg

@nodejs-github-bot nodejs-github-bot added the doc Issues and PRs related to Node.js documentation. label Nov 19, 2026
Document that Unix domain sockets and Windows named pipes are
governed by `--allow-net` and are not checked against
`--allow-fs-read` or `--allow-fs-write`.

Assisted-By: OpenAI GPT-5.6 Sol <openai/gpt-5.6-sol>
Signed-off-by: Paolo Insogna <paolo@cowtech.it>

@mcollina mcollina left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc Issues and PRs related to Node.js documentation.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants