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

Improve security-scan's debugging/logging #246

Open
andypitcher opened this issue Dec 28, 2023 · 0 comments
Open

Improve security-scan's debugging/logging #246

andypitcher opened this issue Dec 28, 2023 · 0 comments

Comments

@andypitcher
Copy link
Contributor

The creation of custom CIS benchmarks in Rancher can lead to failing security-scan pod. Scans will stay in running or pending state, without any further indication or logs.

When this failure happens, the security-scan pod gets removed right away without providing any logs. This is likely related to kube-bench's failure to execute a given custom benchmark.

This issue is to improve the following:

  1. Add some tests around the created CIS benchmarks (same as kube-bench and yamlint tests)
  2. Improve logging/debugging of kube-bench in run_sonobuoy_plugin.sh
  3. Do not remove security-scan's pod on failure, so that user can dump the logs and investigate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants