Skip to content

Commit

Permalink
fixup! fixup! src,lib: stabilize permission model
Browse files Browse the repository at this point in the history
  • Loading branch information
RafaelGSS committed Dec 11, 2024
1 parent b00914b commit ab96885
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
12 changes: 9 additions & 3 deletions doc/api/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,12 +189,15 @@ Error: Access to this API has been restricted
<!-- YAML
added: v20.0.0
changes:
- version: REPLACEME
pr-url: https://github.com/nodejs/node/pull/56201
description: Permission Model and --allow-fs flags are stable.
- version: v20.7.0
pr-url: https://github.com/nodejs/node/pull/49047
description: Paths delimited by comma (`,`) are no longer allowed.
-->

> Stability: 2.0 - Stable.
> Stability: 2 - Stable.
This flag configures file system read permissions using
the [Permission Model][].
Expand Down Expand Up @@ -231,12 +234,15 @@ node --permission --allow-fs-read=/path/to/index.js index.js
<!-- YAML
added: v20.0.0
changes:
- version: REPLACEME
pr-url: https://github.com/nodejs/node/pull/56201
description: Permission Model and --allow-fs flags are stable.
- version: v20.7.0
pr-url: https://github.com/nodejs/node/pull/49047
description: Paths delimited by comma (`,`) are no longer allowed.
-->

> Stability: 2.0 - Stable.
> Stability: 2 - Stable.
This flag configures file system write permissions using
the [Permission Model][].
Expand Down Expand Up @@ -1775,7 +1781,7 @@ changes:
description: Permission Model is now stable.
-->

> Stability: 2.0 - Stable
> Stability: 2 - Stable.
Enable the Permission Model for current process. When enabled, the
following permissions are restricted:
Expand Down
2 changes: 1 addition & 1 deletion doc/api/permissions.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ If you find a potential security vulnerability, please refer to our

<!-- type=misc -->

> Stability: 2.0 - Stable
> Stability: 2 - Stable.
<!-- name=permission-model -->

Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/dotenv/node-options.env
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ NODE_NO_WARNINGS=1
NODE_OPTIONS="--permission --allow-fs-read=*"
TZ=Pacific/Honolulu
UV_THREADPOOL_SIZE=5
BASIC=overridden
BASIC=overridden

0 comments on commit ab96885

Please sign in to comment.