WIP: Add docker_extra_info Docker integration - #3134
Open
doomedraven wants to merge 8 commits into
Open
Conversation
Introduce a modular Docker integration for file_extra_info tools. Adds ToolDispatcher to route tool executions into per-tool containers (mounted or API gateway modes), sudo_restriction support, shared-volume handling and SDK/subprocess/API fallbacks. Updates run_tool to route eligible binaries into containers, adds mapping of binaries to container names, default config options in processing/integrations, docs and a docker-compose example, pyproject optional docker dependency, and unit tests covering dispatcher behaviors and execution paths.
Contributor
|
Caution The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased. |
Add Tuple and Union to the typing imports in lib/cuckoo/common/integrations/file_extra_info.py. Clean up tests/test_docker_extra_info.py by removing unused imports (os, json, pytest) and stop importing the unused BINARY_TO_TOOL_MAPPING, keeping only ToolDispatcher. These are minor refactors to satisfy typing usage and remove dead imports.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Introduce a modular Docker integration for file_extra_info tools. Adds ToolDispatcher to route tool executions into per-tool containers (mounted or API gateway modes), sudo_restriction support, shared-volume handling and SDK/subprocess/API fallbacks. Updates run_tool to route eligible binaries into containers, adds mapping of binaries to container names, default config options in processing/integrations, docs and a docker-compose example, pyproject optional docker dependency, and unit tests covering dispatcher behaviors and execution paths.