How do you scan for vulnerabilities in a running cluster and in CI?
IntermediateScenarioSecurity, RBAC and policy
Answer
Situation read → Leadership wants continuous scanning.
What I'd do →
- In CI scan images with Trivy or Grype and fail on critical issues
- In cluster run the Trivy Operator for continuous reports
- Scan manifests with kubescape, kube-linter or Checkov
- Check CIS benchmarks with kube-bench
- Track fixes by SLA
Why → Shift left to catch issues early and scan runtime for newly published CVEs.
Interview tip → Mention that results need triage, not just reports.
More on Security, RBAC and policy
A developer needs read-only access to one namespace. How do you grant it?BeginnerExplain the difference between Role, ClusterRole, RoleBinding and ClusterRoleBinding.IntermediateA CI pipeline needs to deploy to one namespace. What identity do you give it?IntermediateWhat does a ServiceAccount do and why should you disable the token automount?BeginnerHow do you let pods on EKS access S3 without static keys?IntermediateA pod has access to the node's IAM role through IMDS. How do you prevent credential theft?Advanced