Skip to content

Code Runner Preliminary Containerization - #77

Open
mataiodoxion wants to merge 6 commits into
Open-Coding-Society:mainfrom
CSA-Admin-OCS:code-runner-sec
Open

Code Runner Preliminary Containerization#77
mataiodoxion wants to merge 6 commits into
Open-Coding-Society:mainfrom
CSA-Admin-OCS:code-runner-sec

Conversation

@mataiodoxion

@mataiodoxion mataiodoxion commented Aug 28, 2026

Copy link
Copy Markdown

Runs the python code execution endpoint in a separate container if .env key IS_PRODUCTION=true, otherwise just runs the exec locally.

This fixes the main issue with reading sensitive contents of the main flask-web container like sending:

{
  "code": "import os; os.system('cat /app/.env')"
}

which is now just met with (because it's a different container)

{
  "output": "cat: /app/.env: No such file or directory\n"
}

It might be beneficial to work on some more container hardening (especially for the kernel to prevent escapes), and setting limits for resource exhaustion, but this fixes the most glaring issues for now.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant