mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-17 20:04:36 -05:00
Add cis benchmark to conformance test (#165)
* Add cis benchmark to conformance docs * Update e2e workflow to include cis benchmarks
This commit is contained in:
parent
206dae8fd2
commit
e4a9be832c
2
.github/workflows/e2e-test-azure.yml
vendored
2
.github/workflows/e2e-test-azure.yml
vendored
@ -21,5 +21,5 @@ jobs:
|
||||
cloudProvider: 'azure'
|
||||
machineType: 'Standard_D4s_v3'
|
||||
azure_credentials: ${{ secrets.AZURE_E2E_CREDENTIALS }}
|
||||
sonobuoyTestSuiteCmd: '--mode certified-conformance'
|
||||
sonobuoyTestSuiteCmd: '--mode certified-conformance --plugin e2e --plugin https://raw.githubusercontent.com/vmware-tanzu/sonobuoy-plugins/master/cis-benchmarks/kube-bench-plugin.yaml --plugin https://raw.githubusercontent.com/vmware-tanzu/sonobuoy-plugins/master/cis-benchmarks/kube-bench-master-plugin.yaml'
|
||||
msTeamsWebhook: ${{ secrets.MS_TEAMS_WEBHOOK_URI }}
|
||||
|
2
.github/workflows/e2e-test-gcp.yml
vendored
2
.github/workflows/e2e-test-gcp.yml
vendored
@ -21,5 +21,5 @@ jobs:
|
||||
cloudProvider: 'gcp'
|
||||
machineType: 'n2d-standard-2'
|
||||
gcp_service_account_json: ${{ secrets.GCP_SERVICE_ACCOUNT }}
|
||||
sonobuoyTestSuiteCmd: '--mode certified-conformance'
|
||||
sonobuoyTestSuiteCmd: '--mode certified-conformance --plugin e2e --plugin https://raw.githubusercontent.com/vmware-tanzu/sonobuoy-plugins/master/cis-benchmarks/kube-bench-plugin.yaml --plugin https://raw.githubusercontent.com/vmware-tanzu/sonobuoy-plugins/master/cis-benchmarks/kube-bench-master-plugin.yaml'
|
||||
msTeamsWebhook: ${{ secrets.MS_TEAMS_WEBHOOK_URI }}
|
||||
|
@ -54,3 +54,13 @@ wg-quick down ./wg0.conf
|
||||
./constellation terminate
|
||||
rm constellation-mastersecret.base64
|
||||
```
|
||||
|
||||
## Run CIS Benchmark Tests
|
||||
|
||||
```sh
|
||||
# Runs for <1 min.
|
||||
sonobuoy run --plugin https://raw.githubusercontent.com/vmware-tanzu/sonobuoy-plugins/master/cis-benchmarks/kube-bench-plugin.yaml --plugin https://raw.githubusercontent.com/vmware-tanzu/sonobuoy-plugins/master/cis-benchmarks/kube-bench-master-plugin.yaml --wait
|
||||
# ... download & display results.
|
||||
outfile=$(sonobuoy retrieve)
|
||||
sonobuoy results $outfiles
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user