-
Notifications
You must be signed in to change notification settings - Fork 572
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
Get rid of as much subprocess
as possible, and get rid of passing args via CLI where possible
#1056
Comments
Hi @KOLANICH, thanks for reporting :) I think what you mostly refer to here is the Apart from that, do you see any other particularly insecure parts ? As @LysandreJik mentioned to me, the other subprocess calls are restrained to git calls with |
Not quite. |
Hi @KOLANICH, I agree with this statement but we also try to avoid as much as possible external dependencies in For git-related commands, are you referring to GitPython ? If yes, what would be the benefit in using it instead of |
GitPython is using subprocess calls to call git command line too, no? |
Not necessarily, there are various tools, each of them deals with git repo format itself to some extent. The one that has the full git protocol (except LFS, which is not part of git protocol and which is usally dealt with an external binary) available via bindings is |
@KOLANICH thanks for the review of the existing packages. I didn't know all of them to be honest.
And in the end I am still not sure to understand the benefit of not using |
It's OK not to use it where it has significant enough drawbacks. |
subprocess
is a potential security issue and usage of it should be minimized.Describe the solution you'd like
0.
bash install.sh
is forbidden: it is directly code execution!git
is used through API provided by numerous python packages for working withgit
wget
is replaced witharia2c
getting their args via a named pipe.tar
through CLI is prohibited, use packages to access tar archives insteadDescribe alternatives you've considered
No such.
The text was updated successfully, but these errors were encountered: