kubescape / regolibrary

The regolibrary package contains the controls Kubescape uses for detecting misconfigurations in Kubernetes manifests.
Apache License 2.0
120 stars 48 forks source link

marking smartremediation controls #540

Closed kooomix closed 11 months ago

kooomix commented 11 months ago

PR Type:

Enhancement


PR Description:

This PR marks certain controls as 'smartRemediation'. The changes are made in the controlTypeTags of the respective control files. The following controls are marked:


PR Main Files Walkthrough:

files: - `controls/C-0016-allowprivilegeescalation.json`: Added 'smartRemediation' to the controlTypeTags. - `controls/C-0017-immutablecontainerfilesystem.json`: Added 'smartRemediation' to the controlTypeTags. - `controls/C-0034-automaticmappingofserviceaccount.json`: Added 'smartRemediation' to the controlTypeTags. - `controls/C-0045-writablehostpathmount.json`: Added 'smartRemediation' to the controlTypeTags. - `controls/C-0046-insecurecapabilities.json`: Added 'smartRemediation' to the controlTypeTags. - `controls/C-0048-hostpathmount.json`: Added 'smartRemediation' to the controlTypeTags. - `controls/C-0057-privilegedcontainer.json`: Added 'smartRemediation' to the controlTypeTags. - `controls/C-0074-containersmountingdockersocket.json`: Added 'smartRemediation' to the controlTypeTags. - `go.mod`: Updated the versions of 'github.com/armosec/armoapi-go' and 'github.com/kubescape/opa-utils'. - `go.sum`: Updated the versions of 'github.com/armosec/armoapi-go' and 'github.com/kubescape/opa-utils'.
codiumai-pr-agent-free[bot] commented 11 months ago

PR Analysis

How to use

Instructions

To invoke the PR-Agent, add a comment using one of the following commands: /review: Request a review of your Pull Request. /describe: Update the PR title and description based on the contents of the PR. /improve [--extended]: Suggest code improvements. Extended mode provides a higher quality feedback. /ask \<QUESTION>: Ask a question about the PR. /update_changelog: Update the changelog based on the PR's contents. /add_docs: Generate docstring for new components introduced in the PR. /generate_labels: Generate labels for the PR based on the PR's contents. see the tools guide for more details.

To edit any configuration parameter from the configuration.toml, add --config_path=new_value. For example: /review --pr_reviewer.extra_instructions="focus on the file: ..." To list the possible configuration parameters, add a /config comment.

github-actions[bot] commented 11 months ago

Summary:

github-actions[bot] commented 11 months ago

Summary: