From 533edc6d05505cf5ce5afba023a2c84eb0f3552f Mon Sep 17 00:00:00 2001 From: David Wertenteil Date: Thu, 29 Feb 2024 08:42:32 +0200 Subject: [PATCH] Fixing exceptions for regovector objects Signed-off-by: David Wertenteil --- README.md | 8 ++++++++ core/pkg/resourcehandler/k8sresources.go | 2 +- go.mod | 2 +- go.sum | 4 ++-- httphandler/go.mod | 2 +- httphandler/go.sum | 4 ++-- 6 files changed, 15 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 369c69ab..2d396ea8 100644 --- a/README.md +++ b/README.md @@ -57,6 +57,14 @@ _Did you know you can use Kubescape in all these places?_ Places you can use Kubescape: in your IDE, CI, CD, or against a running cluster. +## Kubescape-operator Helm-Chart + +Besides the CLI, the Kubescape operator can also be installed via a Helm chart. Installing the Helm chart is an excellent way to begin using Kubescape, as it provides extensive features such as continuous scanning, image vulnerability scanning, runtime analysis, network policy generation, and more. You can find the Helm chart in the [Kubescape-operator documentation](https://kubescape.io/docs/install-helm-chart/). + +## Kubescape GitHub Action + +Kubescape can be used as a GitHub Action. This is a great way to integrate Kubescape into your CI/CD pipeline. You can find the Kubescape GitHub Action in the [GitHub Action marketplace](https://github.com/marketplace/actions/kubescape). + ## Under the hood Kubescape uses [Open Policy Agent](https://github.com/open-policy-agent/opa) to verify Kubernetes objects against [a library of posture controls](https://github.com/kubescape/regolibrary). diff --git a/core/pkg/resourcehandler/k8sresources.go b/core/pkg/resourcehandler/k8sresources.go index df3a5727..9ebc189e 100644 --- a/core/pkg/resourcehandler/k8sresources.go +++ b/core/pkg/resourcehandler/k8sresources.go @@ -132,7 +132,7 @@ func (k8sHandler *K8sResourceHandler) GetResources(ctx context.Context, sessionO cautils.StopSpinner() logger.L().Success("Requested Host scanner data") } else { - cautils.SetInfoMapForResources("This control requires the Kubescape operator installed. To install it, go to\n https://kubescape.io/docs/install-operator/.", hostResources, sessionObj.InfoMap) + cautils.SetInfoMapForResources("This control is scanned exclusively by the Kubescape operator, not the Kubescape CLI. Install the Kubescape operator:\n https://kubescape.io/docs/install-operator/.", hostResources, sessionObj.InfoMap) } } diff --git a/go.mod b/go.mod index 4ee6fb8d..bfa4f542 100644 --- a/go.mod +++ b/go.mod @@ -29,7 +29,7 @@ require ( github.com/kubescape/go-git-url v0.0.27 github.com/kubescape/go-logger v0.0.22 github.com/kubescape/k8s-interface v0.0.161 - github.com/kubescape/opa-utils v0.0.276 + github.com/kubescape/opa-utils v0.0.277 github.com/kubescape/rbac-utils v0.0.21-0.20230806101615-07e36f555520 github.com/kubescape/regolibrary v1.0.315 github.com/maruel/natural v1.1.1 diff --git a/go.sum b/go.sum index 33a5fec9..46456911 100644 --- a/go.sum +++ b/go.sum @@ -1148,8 +1148,8 @@ github.com/kubescape/go-logger v0.0.22 h1:gle7wH6emOiGv9ljdpVi82pWLQ3jGucrUucvil github.com/kubescape/go-logger v0.0.22/go.mod h1:x3HBpZo3cMT/WIdy18BxvVVd5D0e/PWFVk/HiwBNu3g= github.com/kubescape/k8s-interface v0.0.161 h1:v6b3/kmA4o/2niNrejrbXj5X9MLfH0UrpI3s+e/fdwc= github.com/kubescape/k8s-interface v0.0.161/go.mod h1:oF+Yxug3Kpfu9Yr2j63wy7gwswrKXpiqI0mLk/7gF/s= -github.com/kubescape/opa-utils v0.0.276 h1:59/yKvFl3HoHM4+pjzrLeKiaDO3ksJxgLF8XpCNYjOM= -github.com/kubescape/opa-utils v0.0.276/go.mod h1:N/UnbZHpoiHQH7O50yadhIXZvVl0IVtTGBmePPrSQSg= +github.com/kubescape/opa-utils v0.0.277 h1:nlzhvHZE0mAQ6YTtNgod4nI0wKwL9/7yCynobbKn2go= +github.com/kubescape/opa-utils v0.0.277/go.mod h1:N/UnbZHpoiHQH7O50yadhIXZvVl0IVtTGBmePPrSQSg= github.com/kubescape/rbac-utils v0.0.21-0.20230806101615-07e36f555520 h1:SqlwF8G+oFazeYmZQKoPczLEflBQpwpHCU8DoLLyfj8= github.com/kubescape/rbac-utils v0.0.21-0.20230806101615-07e36f555520/go.mod h1:wuxMUSDzGUyWd25IJfBzEJ/Udmw2Vy7npj+MV3u3GrU= github.com/kubescape/regolibrary v1.0.315 h1:Oyr+K8QsOnOulzVkIqOcIoK+g+NDIdoRvTG54BhCh3Q= diff --git a/httphandler/go.mod b/httphandler/go.mod index 7800b9dc..970a5382 100644 --- a/httphandler/go.mod +++ b/httphandler/go.mod @@ -18,7 +18,7 @@ require ( github.com/kubescape/go-logger v0.0.22 github.com/kubescape/k8s-interface v0.0.161 github.com/kubescape/kubescape/v3 v3.0.0-00010101000000-000000000000 - github.com/kubescape/opa-utils v0.0.276 + github.com/kubescape/opa-utils v0.0.277 github.com/kubescape/storage v0.0.20 github.com/spf13/viper v1.18.2 github.com/stretchr/testify v1.8.4 diff --git a/httphandler/go.sum b/httphandler/go.sum index 9aef6365..8ab8c52d 100644 --- a/httphandler/go.sum +++ b/httphandler/go.sum @@ -1154,8 +1154,8 @@ github.com/kubescape/go-logger v0.0.22 h1:gle7wH6emOiGv9ljdpVi82pWLQ3jGucrUucvil github.com/kubescape/go-logger v0.0.22/go.mod h1:x3HBpZo3cMT/WIdy18BxvVVd5D0e/PWFVk/HiwBNu3g= github.com/kubescape/k8s-interface v0.0.161 h1:v6b3/kmA4o/2niNrejrbXj5X9MLfH0UrpI3s+e/fdwc= github.com/kubescape/k8s-interface v0.0.161/go.mod h1:oF+Yxug3Kpfu9Yr2j63wy7gwswrKXpiqI0mLk/7gF/s= -github.com/kubescape/opa-utils v0.0.276 h1:59/yKvFl3HoHM4+pjzrLeKiaDO3ksJxgLF8XpCNYjOM= -github.com/kubescape/opa-utils v0.0.276/go.mod h1:N/UnbZHpoiHQH7O50yadhIXZvVl0IVtTGBmePPrSQSg= +github.com/kubescape/opa-utils v0.0.277 h1:nlzhvHZE0mAQ6YTtNgod4nI0wKwL9/7yCynobbKn2go= +github.com/kubescape/opa-utils v0.0.277/go.mod h1:N/UnbZHpoiHQH7O50yadhIXZvVl0IVtTGBmePPrSQSg= github.com/kubescape/rbac-utils v0.0.21-0.20230806101615-07e36f555520 h1:SqlwF8G+oFazeYmZQKoPczLEflBQpwpHCU8DoLLyfj8= github.com/kubescape/rbac-utils v0.0.21-0.20230806101615-07e36f555520/go.mod h1:wuxMUSDzGUyWd25IJfBzEJ/Udmw2Vy7npj+MV3u3GrU= github.com/kubescape/regolibrary v1.0.315 h1:Oyr+K8QsOnOulzVkIqOcIoK+g+NDIdoRvTG54BhCh3Q=