Skip to content
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

feat: add fuses for NODE_OPTIONS and --inspect #30190

Merged
merged 8 commits into from
Aug 5, 2021
Merged

Conversation

MarshallOfSound
Copy link
Member

As in title / notes. Allows apps to completely opt out of these arguments / env vars in packaged apps.

Notes: Added fuses to disable NODE_OPTIONS and --inspect debug arguments in packaged apps

@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Jul 19, 2021
@MarshallOfSound MarshallOfSound added semver/minor backwards-compatible functionality target/14-x-y labels Jul 19, 2021
shell/common/node_bindings.cc Show resolved Hide resolved
shell/common/node_bindings.cc Show resolved Hide resolved
@MarshallOfSound MarshallOfSound requested a review from a team as a code owner July 21, 2021 20:46
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Jul 26, 2021
Copy link
Member

@ckerr ckerr left a comment

Choose a reason for hiding this comment

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

Looks reasonable. I had a few nits, but only nits.

+1 on @nornagon's comment about offering it to upstream.

@MarshallOfSound MarshallOfSound merged commit 320bea4 into main Aug 5, 2021
@MarshallOfSound MarshallOfSound deleted the inspect-fuse branch August 5, 2021 17:50
@release-clerk
Copy link

release-clerk bot commented Aug 5, 2021

Release Notes Persisted

Added fuses to disable NODE_OPTIONS and --inspect debug arguments in packaged apps

@trop
Copy link
Contributor

trop bot commented Aug 5, 2021

I was unable to backport this PR to "14-x-y" cleanly;
you will need to perform this backport manually.

@trop
Copy link
Contributor

trop bot commented Aug 5, 2021

I have automatically backported this PR to "15-x-y", please check out #30420

BlackHole1 pushed a commit to BlackHole1/electron that referenced this pull request Aug 30, 2021
* feat: add fuses for NODE_OPTIONS and --inspect

* chore: add node patch to ensure NODE_OPTIONS are never parsed when fuse is disabledd

* chore: fix lint

* chore: flip boolean logic

* chore: update patches

* chore: add trailing _ to static member

* Update add_should_read_node_options_from_env_option_to_disable_node_options.patch

* chore: update patches

Co-authored-by: PatchUp <73610968+patchup[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants