Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stig rke2 refactor #2

Merged
merged 2 commits into from
Jan 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ The stig-validator-operator is a group of controllers that runs within an RKE2 K
It provides a means to deploy and manage a scanner to report on compliance to the RKE2 STIG.

The STIG Validator Controller checks the RKE2 clusters configuration against the criteria
defined for it in the RKE2 STIG as developed by RancherFederal along side DISA.
defined for it in the RKE2 STIG as developed by RancherFederal alongside DISA.

When the controller starts it will create a default stig-rke2 CR.

Expand Down
7 changes: 5 additions & 2 deletions docs/current-state.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ The following 2 scrips run the sonobuoy command against the kube-bench generated
* [run.sh](https://github.com/rancherfederal/security-scan/blob/master/package/run.sh)
* [run_sonohuoy_plugin.sh](https://github.com/rancherfederal/security-scan/blob/master/package/run_sonobuoy_plugin.sh)

The results are outputted in json format.

### Architecture

Current cis-benchmark operator architecture:
Expand All @@ -33,6 +35,7 @@ Existing repos:
* [rancher/security-scan](https://github.com/rancher/security-scan)
* [vmware-tanzu/sonobuoy](https://github.com/vmware-tanzu/sonobuoy)
* [vmware-tanzu/sonobuoy-plugins](https://github.com/vmware-tanzu/sonobuoy-plugins/blob/main/cis-benchmarks/README.md)
* [kube-hunter sonobuoy plugin](https://github.com/vmware-tanzu/sonobuoy-plugins/tree/main/kube-hunter)

Images used:
```yaml
Expand Down Expand Up @@ -61,8 +64,8 @@ I assume this is the location to create specific ‘STIG’ configs that can the


### Existing Documentation
https://github.com/rancher/charts/blob/dev-v2.6/charts/rancher-cis-benchmark/2.0.2/app-readme.md
https://github.com/aquasecurity/kube-bench/blob/main/docs/controls.md
* https://github.com/rancher/charts/blob/dev-v2.6/charts/rancher-cis-benchmark/2.0.2/app-readme.md
* https://github.com/aquasecurity/kube-bench/blob/main/docs/controls.md


Misc Sites with good info:
Expand Down
8 changes: 0 additions & 8 deletions examples/benchmark-rke-cis-1.5-permissive.yaml

This file was deleted.

7 changes: 0 additions & 7 deletions examples/clusterscancustom.yml

This file was deleted.

7 changes: 0 additions & 7 deletions examples/clusterscaneks.yml

This file was deleted.

7 changes: 0 additions & 7 deletions examples/clusterscangke.yml

This file was deleted.

12 changes: 0 additions & 12 deletions examples/clusterscanrke.yml

This file was deleted.

7 changes: 0 additions & 7 deletions examples/clusterscanrkeperm.yml

This file was deleted.

7 changes: 0 additions & 7 deletions examples/custombenchmarkscan.yml

This file was deleted.

9 changes: 0 additions & 9 deletions examples/scanprofile-cis-1.5.yml

This file was deleted.

11 changes: 0 additions & 11 deletions examples/scanprofile-rke-custom.yml

This file was deleted.

9 changes: 0 additions & 9 deletions examples/scanprofile-rke-hardened.yml

This file was deleted.

9 changes: 0 additions & 9 deletions examples/scanprofile-rke-permissive.yml

This file was deleted.

9 changes: 0 additions & 9 deletions examples/scanprofileeks.yml

This file was deleted.

9 changes: 0 additions & 9 deletions examples/scanprofilegke.yml

This file was deleted.

9 changes: 0 additions & 9 deletions examples/ssrkehardened.yml

This file was deleted.

9 changes: 0 additions & 9 deletions examples/ssrkeperm.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
apiVersion: cis.cattle.io/v1
kind: ClusterScanBenchmark
kind: STIGValidation
metadata:
name: rke-cis-1.5-hardened
name: stig-ver1
spec:
clusterProvider: rke
clusterProvider: ""
minKubernetesVersion: "1.15.0"