From 81e4d2ec2f444986d263cc2b9ee3da8786bd49f4 Mon Sep 17 00:00:00 2001 From: Rafael Gonzaga Date: Sun, 8 Oct 2023 19:56:00 -0300 Subject: [PATCH] doc: mention files read before env setup PR-URL: https://github.com/nodejs/node/pull/50072 Reviewed-By: Luigi Pinca Reviewed-By: Antoine du Hamel --- doc/api/permissions.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/api/permissions.md b/doc/api/permissions.md index f8796fe6f753c5..92d4a6f4d0a2d8 100644 --- a/doc/api/permissions.md +++ b/doc/api/permissions.md @@ -576,6 +576,10 @@ There are constraints you need to know before using this system: * When creating symlinks the target (first argument) should have read and write access. * Permission changes are not retroactively applied to existing resources. +* The Permission Model is initialized after the Node.js environment is set up. + However, certain flags such as `--env-file` or `--openssl-config` are designed + to read files before environment initialization. As a result, such flags are + not subject to the rules of the Permission Model. [Import maps]: https://url.spec.whatwg.org/#relative-url-with-fragment-string [Security Policy]: https://github.com/nodejs/node/blob/main/SECURITY.md