-
Notifications
You must be signed in to change notification settings - Fork 18
Allow config.gypi outside of build directory #14
Conversation
Without this, any file named config.gypi outside of node-gyp's build directory will be ignored. Fixes: #13
@othiym23 Do you see any problems with this PR? |
It looks fine, but I haven't had the time to play with it yet and make sure that it doesn't replicate the same information disclosure problems we were seeing before we blacklisted Also, we've had a pretty large backlog of stuff pile up on the npm CLI team, so it's probably going to take us a little time to get to some of these PRs on npm's ancillary dependencies. Thanks for putting this together! |
As far as examples go, I can only point to my own, which for right now is |
I should also note that it's not just publishing but also merely installing the module in some cases. |
Fair enough, the real problem is that I personally don't understand the ins and outs of how gyp produces and configures these files, so I'm assigning this to myself to do the necessary research to figure out if this is going to be safe to land. @ChALkeR, do you have thoughts on this? |
@othiym23 On the other hand, several
In theory, those could contain sensitive information. |
Rebased and landed as 02ffe21. @ChALkeR, since the purpose of this patch was to close an information leak, not break the ability of developers to ship native packages, I'm comfortable shipping this until we have some evidence that it's having problems (which, given that npm has been patched to no longer include credentials in the child process environment, should be less risky all around). Thanks for putting this together, @mscdex, and thanks for including a test. |
Thanks! :-) |
Only filter config.gypi when it's in the build directory. Credit: @mscdex PR-URL: npm/fstream-npm#14
Only filter config.gypi when it's in the build directory. Credit: @mscdex PR-URL: npm/fstream-npm#14
Without this, any file named
config.gypi
outside ofnode-gyp
's build directory will be ignored.Fixes: #13