-
Notifications
You must be signed in to change notification settings - Fork 30.2k
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
[Bug]: use pm2 and --experimental-permission, throw Error: Access to this API has been restricted #53447
Comments
With the permissions you have set, that API isn't accessible. Try giving your script more permissions if possible. @nodejs/security-wg |
@redyetidev |
Hi! The security working group is in the CC, they know more about this and they'll respond soon! |
As the error trace suggests:
PM2 attempts to use the inspector protocol and this is disabled by default when using the Permission Model. It's not a bug, t |
@RafaelGSS |
You can't. As long as the |
@RafaelGSS |
The use of the inspector protocol can basically bypass any restriction imposed by the Permission Model. Technically, we can add an let {result:{ objectId }} = await session.post('Runtime.evaluate', { expression: 'Worker' }); The usage of Can you open an issue on nodejs/security-wg? Meanwhile, I'm closing this issue. |
Version
v22.3.0
Platform
Darwin mac-studio.local 23.4.0 Darwin Kernel Version 23.4.0: Fri Mar 15 00:10:42 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T6000 arm64
Subsystem
No response
What steps will reproduce the bug?
pm2.io.js
, install@pm2/io
depspm2 start pm2.io.js --node-args="--experimental-permission --allow-fs-read=*" -f
pm2 logs
commandHow often does it reproduce? Is there a required condition?
No response
What is the expected behavior? Why is that the expected behavior?
It should start and run normally without throwing any errors
What do you see instead?
Additional information
related: #53385 (comment)
The text was updated successfully, but these errors were encountered: