mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
Add --permission-audit flag that enables the permission model in warning-only mode. Instead of throwing ERR_ACCESS_DENIED, it emits a message via diagnostics channel and allows the operation to continue. Publish permission check results to per-scope diagnostics channels (e.g., node:permission-model:fs) so users can observe permission decisions at runtime via diagnostics_channel. Refs: https://github.com/nodejs/node/issues/59935 PR-URL: https://github.com/nodejs/node/pull/61869 Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>