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: node-patches\filesystem patcher. #1332

Merged
merged 54 commits into from
Nov 22, 2019
Merged

feat: node-patches\filesystem patcher. #1332

merged 54 commits into from
Nov 22, 2019

Conversation

soldair
Copy link
Collaborator

@soldair soldair commented Nov 4, 2019

new package which patches the fs module of node core such that it will not follow links out of a root directory path.

for the nodejs startup script. prevents links from escaping the sandbox

@buildsize
Copy link

buildsize bot commented Nov 4, 2019

File name Previous Size New Size Change
release.tar.gz 1.03 MB 1.03 MB 5.09 KB (0%)

@soldair soldair requested a review from jkrems November 4, 2019 19:47
Copy link

@jkrems jkrems left a comment

Choose a reason for hiding this comment

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

Nice! Left some questions & suggestions. :)

packages/node-patches/src/fs.ts Show resolved Hide resolved
packages/node-patches/src/fs.ts Outdated Show resolved Hide resolved
packages/node-patches/src/fs.ts Outdated Show resolved Hide resolved
packages/node-patches/src/fs.ts Show resolved Hide resolved
packages/node-patches/src/fs.ts Show resolved Hide resolved
packages/node-patches/src/fs.ts Show resolved Hide resolved
packages/node-patches/src/fs.ts Outdated Show resolved Hide resolved
packages/node-patches/src/index.ts Outdated Show resolved Hide resolved
@soldair soldair changed the title [do not merge] Symlink patcher Symlink patcher Nov 5, 2019
@soldair soldair changed the title Symlink patcher feat: node-patches\filesystem patcher. Nov 8, 2019
Copy link
Collaborator

@gregmagolan gregmagolan left a comment

Choose a reason for hiding this comment

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

LGTM.

The npm_packages and associated node_patches target can go in a follow up PR as they are not being used and we should integrate the testing into the bazel in a follow PR as well and use the "checked-in file" rule to ensure the check-in js files up to date.

@soldair soldair merged commit 0b2f675 into master Nov 22, 2019
@mattem mattem deleted the symlink-patcher branch April 10, 2021 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants