Skip to content

Conversation

@LukeHagar
Copy link

@LukeHagar LukeHagar commented Dec 29, 2025

  • Introduced a Zod schema for validating Docker container IDs in the docker router.
  • Updated WebSocket server to validate container IDs and shell types before execution.
  • Improved shell command safety by escaping container IDs and shell types in various services.
  • Added log path validation to prevent path traversal vulnerabilities in deployment and mount services.

What is this PR about?

This PR is addressing a few places in the code base that seemingly could use a bit more validation given the context and the way that commands are templated out to run on the host machine.

There are a few places where command injection could be possible, and a few other places where some possible bugs were found in things like JSON parsing, or unexpected sleep behavior.

Checklist

Before submitting this PR, please make sure that:

…afety

- Introduced a Zod schema for validating Docker container IDs in the docker router.
- Updated WebSocket server to validate container IDs and shell types before execution.
- Improved shell command safety by escaping container IDs and shell types in various services.
- Added log path validation to prevent path traversal vulnerabilities in deployment and mount services.
@LukeHagar LukeHagar marked this pull request as ready for review December 29, 2025 19:44
@LukeHagar LukeHagar changed the title refactor(docker): enhance container ID validation and shell command s… fix: a few bugs/security concerns Dec 29, 2025
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