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

--safe option that only allows safe plotting options #52

Open
mgajda opened this issue Oct 17, 2022 · 1 comment
Open

--safe option that only allows safe plotting options #52

mgajda opened this issue Oct 17, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@mgajda
Copy link
Contributor

mgajda commented Oct 17, 2022

While diversity is great feature, sometimes one would like to call pandoc-plot on Markdown of unknown origin.
In such case it would be nice to have --safe option that disables all those plotting libraries that can execute arbitrary code.

This would probably allow only gnuplot, graphviz, plantuml, and ggplot2 without shell escape.

To disable shell escape in gnuplot it may be sufficient to run with environment variable set: SHELL=/bin/false gnuplot.
As far as I know graphviz and plantuml allow no shell escape.

@LaurentRDC
Copy link
Owner

That's a good suggestion.

I don't have time to implement it myself, but I'm happy to review pull requests for this feature.

@LaurentRDC LaurentRDC added the enhancement New feature or request label Oct 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants