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

Allow user submitted Post processing scripts #11

Open
JaikrishnaTS opened this issue May 5, 2017 · 6 comments
Open

Allow user submitted Post processing scripts #11

JaikrishnaTS opened this issue May 5, 2017 · 6 comments

Comments

@JaikrishnaTS
Copy link
Contributor

Currently a hard coding of Rscript filename is used to run post processing scripts in worker.

Need to make sure that the user doesn't submit a Rscript file with the same name.

Fix by removing the Rscript file if found, in the else section of https://github.com/GRAPLE/GWS/blob/master/gws.py#L128

@JaikrishnaTS JaikrishnaTS changed the title Workers can potentially execute user submitted R files Allow user submitted Post processing scripts May 11, 2017
@JaikrishnaTS
Copy link
Contributor Author

There is no security issue (as in original message) because we have a separate folder called 'Scripts' which the submit node creates from scratch.

But this could be a feature for power users.

@akrinos would you find this useful?

@cayelan
Copy link

cayelan commented May 11, 2017 via email

@akrinos
Copy link

akrinos commented May 12, 2017

This would absolutely be a useful feature to me. More broadly, attempting to save an existing script could be dissuaded by either prompting the user to input date as part of the file name or separately, or saving the scripts automatically with the date somehow, if it is possible, for clarity and organization.

@JaikrishnaTS
Copy link
Contributor Author

@akrinos I think I didn't explain it properly.

I was considering the possibility of executing a single experiment submission with an R post processing script attachment (similar to the job_desc.json now).

We don't intend to support adding to the 'public post processing script library' because that would pose a lot more security issues.

@akrinos
Copy link

akrinos commented May 12, 2017

@JaikrishnaTS you definitely explained properly! The second comment that was clear and it would be immensely useful - I thought the long-term idea you started off with was to store user-supplied post-processing scripts. The naming convention would be to facilitate storage and potential retrieval of these scripts. Thanks!

@JaikrishnaTS
Copy link
Contributor Author

JaikrishnaTS commented May 12, 2017

@kcratie Additional information regarding the security implications of allowing this.
Section 3.8.13 of https://research.cs.wisc.edu/htcondor/manual/latest/3_8Security.html
The jobs run under username 'condor' in current configuration.

A malicious R script can potentially manipulate other jobs running in the same worker, but possibly can't do anything beyond that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants