-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement run function for docker_services
* DBUS Services required for GNOI Containerz StartContainer. * Add a placeholder function that prevent arbitrary request to run any container. * Update to only allow running known images. * Rewrite image validation so it get recognized by semgrep. * Rewrite command validation so it get recognize by semgrep. * maybe semgrep will recognize inline function * semgrep only allow hardcoded image name. We need to bypass it. * add documentation. * documentation need to be before nosemgrep * Add allowed_image_name and use it to verify the run function. * address copilot comment. * address comment and reformat. * increase test coverage and address comment. * Seperate allowed images and allowed containers. * Address comment. * add bmp container to allowed list. * add validation to kwargs in run. * fix test error. * update allow list
- Loading branch information
Showing
2 changed files
with
255 additions
and
65 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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