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

Initial SOC2 support #552

Closed slashben closed 11 months ago

slashben commented 11 months ago

type:

enhancement


description:

This PR introduces SOC2 compliance controls for Kubernetes. It includes the following main changes:


main_files_walkthrough:

files: - `controls/C-0263-ingress-tls.json`: Added a new control to check if Ingress resources use TLS. - `controls/C-0264-pv-encrypted.json`: Added a new control to detect unencrypted PersistentVolumes. - `frameworks/soc2.json`: Created a SOC2 framework and added the new controls to it. - `rules/ingress-no-tls/raw.rego`: Added a rule to check if Ingress resources have TLS enabled. - `rules/pv-without-encryption/raw.rego`: Added a rule to check if PersistentVolumes are encrypted. - `rules/ingress-no-tls/test/failed_with_ingress/expected.json`: Added a test case for the scenario where Ingress does not have TLS enabled. - `rules/pv-without-encryption/test/eks/expected.json`: Added a test case for the scenario where PersistentVolume is not encrypted.

User Description:

Overview

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 \**: 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](https://github.com/Codium-ai/pr-agent/blob/main/docs/TOOLS_GUIDE.md) for more details. >To edit any configuration parameter from the [configuration.toml](https://github.com/Codium-ai/pr-agent/blob/main/pr_agent/settings/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: