-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(plugin): enable binary plugin support (#1794)
* refactor(plugin): rename containermanager to pluginruntimehandler * refactor(plugin): rename containerManager to containerRuntimeHandler * refactor(plugin): rename pluginruntimehandler to runtimehandler * feat(plugin): add binary runtime handler * feat(plugin): add `binary_mode` config `binary_mode` can be set differently for individual scanners, however, if the top level `binary_mode` is set, it will overwrite all the setting for all scanners. Signed-off-by: András Jáky <[email protected]> * refactor(plugins): binary mode only in linux build Signed-off-by: András Jáky <[email protected]> * docs(plugin): add warning * chore(plugin): go mod tidy Signed-off-by: András Jáky <[email protected]> * fix(plugin): fix linter warnings * fix(plugin): add mutex to prevent possible race condition during starting the plugin * fix(plugin): fix log streaming * fix(plugin): move plugins into the user's home directory * fix(plugin): unmount on panic * fix(plugin): cleanup image after unmount Also make cleanup error log more informative. Signed-off-by: András Jáky <[email protected]> * fix(plugin): stopping gracefully if the context is cancelled * Update plugins/runner/internal/runtimehandler/binary/handler.go Co-authored-by: András Jáky <[email protected]> * refactor(plugin): move deferred unmount * refactor(plugin): move deferred unmount * fix(plugin): fix input dir permission * refactor: scanner/utils/containerrootfs->utils/fsutils/ Signed-off-by: András Jáky <[email protected]> * chore: make gen Signed-off-by: András Jáky <[email protected]> * fix(plugin): linter issues Signed-off-by: András Jáky <[email protected]> * fix(utils): use replace in go.mod for core package Signed-off-by: András Jáky <[email protected]> --------- Signed-off-by: András Jáky <[email protected]> Co-authored-by: András Jáky <[email protected]>
- Loading branch information
1 parent
6487535
commit 0e90409
Showing
34 changed files
with
1,317 additions
and
293 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
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
Oops, something went wrong.