-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Make DockerCommandLineCodeExecutor the default for MagenticOne team #6684
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
Conversation
Co-authored-by: husseinmozannar <25182234+husseinmozannar@users.noreply.github.com>
|
@copilot no the only change should be to python/packages/autogen-ext/src/autogen_ext/teams/magentic_one.py change localcomandline in the warning to dockerexecutor |
... I've made the minimal change as requested - updated the deprecation warning in magentic_one.py to recommend |
|
@copilot see test failures |
…ead of _agents) Co-authored-by: ekzhu <320302+ekzhu@users.noreply.github.com>
... Fixed the test failures in commit 62d7fab. The issue was that the tests were trying to access |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6684 +/- ##
==========================================
+ Coverage 80.72% 80.90% +0.18%
==========================================
Files 235 237 +2
Lines 18221 18264 +43
==========================================
+ Hits 14708 14776 +68
+ Misses 3513 3488 -25
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Summary
This PR changes MagenticOne to use
DockerCommandLineCodeExecutorby default instead ofLocalCommandLineCodeExecutor, addressing security concerns about local code execution.Changes
Security Enhancement
Implementation Details
_is_docker_available()function to detect Docker availability_create_default_code_executor()function that prioritizes Docker executorExample Usage
Before (uses local execution by default):
After (uses Docker by default when available):
Backward Compatibility
code_executorparameter continues to work unchangedTesting
This change aligns with the security-first principle mentioned in the MagenticOne documentation warnings about using containers for isolation.
Fixes #6683.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.