Skip to content

Add base64 encoding for shell command execution#26

Open
alexdremov wants to merge 2 commits intoepfml:mainfrom
alexdremov:patch-3
Open

Add base64 encoding for shell command execution#26
alexdremov wants to merge 2 commits intoepfml:mainfrom
alexdremov:patch-3

Conversation

@alexdremov
Copy link
Contributor

RunAI is doing some shitty business under the hood, and for example, quoted arguments ('argument') are not passed correctly. Base64 encoding is a bulletproof solution.

Encode shell command in base64 and update command execution.
Copilot AI review requested due to automatic review settings February 25, 2026 17:03
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR changes how csub.py passes the user’s shell command to RunAI by base64-encoding the full zsh payload and decoding/executing it inside the container, aiming to avoid argument-quoting issues in RunAI’s command handling.

Changes:

  • Base64-encode the generated shell_command before passing it to /bin/zsh -c.
  • Decode the payload inside the container and execute it via a temporary script file.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

2 participants