Tests Kubernetes clusters for adherence to security best practices using kube-bench.
Go to file
Andy Pitcher b36061002a
Merge pull request #261 from rancher/renovate/github.com-aquasecurity-kube-bench-0.x
chore(deps): update module github.com/aquasecurity/kube-bench to v0.9.1
2024-10-17 14:12:21 +02:00
.github build: Update docker env names 2024-08-01 17:08:18 +01:00
cmd/kb-summarizer
hack chore(deps): update dependency aquasecurity/kube-bench to v0.9.1 2024-10-17 04:40:56 +00:00
package chore(deps): update rancher/mirrored-tonistiigi-xx docker tag to v1.5.0 2024-10-17 04:41:14 +00:00
pkg/kb-summarizer
tests
.gitignore build: Refactor Makefile logic 2024-01-12 17:47:31 +00:00
.yamllint.yaml
CODEOWNERS
LICENSE
Makefile build: Rename Makefile targets to align with natural language 2024-07-31 16:30:48 +01:00
README.md
go.mod chore(deps): update module github.com/aquasecurity/kube-bench to v0.9.1 2024-10-17 04:41:09 +00:00
go.sum chore(deps): update module github.com/aquasecurity/kube-bench to v0.9.1 2024-10-17 04:41:09 +00:00

README.md

security-scan

NOTE: This repo is currently being merged with the cis-operator repo to track security scanned and CIS related issues. Please submit any new inquiries in the cis-operator repo.

This repo has all the stuff needed for running CIS scan on RKE clusters.

Multi-purpose repo:

  • Packaging for all the components needed for CIS scan (sonobuoy, kube-bench)
  • kube-bench-summarizer
  • plugin script for sonobuoy tool (a different script is passed using command)

The corresponding docker image (rancher/security-scan) is used in the system charts.

Building

make

Tag the image to personal docker hub repo

docker tag rancher/security-scan:<MAKE TAG OUTPUT> <DOCKER_HUB_USER>/security-scan:dev

Push docker tag

docker push <DOCKER_HUB_USER>/security-scan:dev

On Rancher install CIS Benchmark app, changing the Values YAML to point to your image

image:
...
    securityScan:
        repository: <DOCKER_HUB_USER>/security-scan
        tag: dev

License

Copyright (c) 2019 Rancher Labs, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.