-
Notifications
You must be signed in to change notification settings - Fork 295
feat(engine): Better user registry repo isolation #1275
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cubic analysis
2 issues found across 7 files • Review in cubic
React with 👍 or 👎 to teach cubic. You can also tag @cubic-dev-ai
to give feedback, ask questions, or re-run the review.
@cubic-dev-ai please re-review |
@daryllimyt I've started the AI code review. It'll take a few minutes to complete. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cubic analysis
1 issue found across 9 files • Review in cubic
React with 👍 or 👎 to teach cubic. You can also tag @cubic-dev-ai
to give feedback, ask questions, or re-run the review.
…ing in /actions routes
- Split runtime environment setup into get_ray_runtime_env function - Add is_builtin_action function to check if action origin is DEFAULT_REGISTRY_ORIGIN - Modify run_action_on_ray_cluster to skip runtime env for builtin actions - Add module field to BoundRegistryAction model This optimization improves performance by avoiding unnecessary runtime environment setup for builtin actions that don't require custom dependencies. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
- Add RegistryActionMetadata model for standardized action metadata - Create new inspector.py module for subprocess-based inspection - Add utility functions for walking modules and extracting metadata: - construct_module_name, walk_module_py_files, walk_module_yaml_files, walk_module_udfs - metadata_from_function, metadata_from_template - Add _inspect_repo_via_subprocess method to Repository class - Add helper functions for venv path management This isolates repository inspection in subprocess for better security and reliability when loading untrusted code. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com> Signed-off-by: Daryl Lim <[email protected]>
b037a51
to
07cc561
Compare
Checklist
uv run pytest tests
)?pre-commit run --all-files
)?Description
Related Issues
Screenshots / Recordings
Steps to QA
Summary by cubic
Improved repository isolation by running untrusted repo inspection in a subprocess and extracting action metadata without importing user code into the main process. This makes loading external actions safer and more reliable.