compilebox | run user-submitted code | Continuous Deployment library
kandi X-RAY | compilebox Summary
kandi X-RAY | compilebox Summary
CompileBox is a Docker based sandbox to run untrusted code and return the output to your app. Users can submit their code in any of the supported languages. The system will test the code in an isolated environment. This way you do not have to worry about untrusted code possibly damaging your server intentionally or unintentionally. You can use this system to allow your users to compile their code right in the browser.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Generate random bytes
compilebox Key Features
compilebox Examples and Code Snippets
Community Discussions
Trending Discussions on compilebox
QUESTION
Currently I use a VM with compilebox to run non secure users code at my app..
I’ve read about puppeteer and google cloud functions at this post: https://cloud.google.com/blog/products/gcp/introducing-headless-chrome-support-in-cloud-functions-and-app-engine
Can I use it as a sandbox environment just like compilebox? Or the environment variables of google cloud will be exposed to the non secure code? Thanks..
...ANSWER
Answered 2018-Sep-08 at 19:08App Engine, Function, Compute Engine and likely others, all provide some built in services for handling things like authentication in client libraries. I don't think you'd want to run user provided code within the same GCP project straight on top of GCP hosting resources. I think your approach to running a sandbox within a VM is safer.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install compilebox
Go to the 'Setup' directory. Open the Terminal as root user Execute the script Install_*.sh, select the file which best suites your Operating System description. This will install the Docker and NodeJs pre-requisites to your system and create an image called 'virtual_machine' inside the Docker. DockerVM may take around 20 to 30 minutes depending on your internet connection. Once the Install script executes successfully, copy the folder named 'API' to your desired path. Open app.js in the API folder and set the variable values as follows. timeout_value: The time in seconds till which the API should wait for the output of the code before generating an "Execution Timed Out" message. port: The port on which the server will listen, the default port is 80. To test the installation, open a new terminal windows, cd to the API folder and type the following command $ npm install . to install all needed nodejs modules, followed by $ sudo nodejs app.js If everything has been setup correctly in app.js file, you will see the following message on your terminal Listening at <port_number> Navigate your browser to http://127.0.0.1/ Supported Operating Systems The CompileBox API has been installed and run succesfully on the following platforms Ubuntu 12.04 LTS Ubuntu 13.10 Ubuntu 14.04 LTS Ubuntu 16.04 LTS Linux Mint 15 CentOS 6 (root required not sudo)
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page