Kubernetes scanning from remote #5452
-
Hi, currently, there are 2 methods on scanning a kubernetes cluster available and I am not sure which one to choose or whether any of them are actually appropriate... We have some dedicated Kubernetes Clusters and some shared ones (User get only access to specific namespaces). The shared ones also have strict policies like disabling hostPath option. What would be the correct way of scanning? Should the cluster operator execute the scans via the kubeconfig and make the results available to the corresponding applications? Somehow none of the options feel really good. Other solutions are using kubernetes operators to be installed on the master node. What would be the correct way of scanning all clusters (ideally from remote) to make the results available to the individuals? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi @mirisbowring, Great questions! Here’s a quick breakdown: Cluster Operator Scanning via KubeconfigThis is a valid approach, especially for dedicated clusters. Operators can scan using Prowler and share results with users. For shared clusters, you can limit scans to specific namespaces with the External Scanning with Exported KubeconfigsThis works well for managing multiple clusters. You can centralize kubeconfigs on one machine and run scans using Prowler’s Kubernetes Operators on Master NodeWhile this automates scanning, strict policies (like disabling hostPath) in shared clusters may conflict with operator permissions, so this might not be ideal for all environments. Recommended Approach:For dedicated clusters, either method works. For shared clusters, external scanning is likely the safest and most compliant. Let me know if you need further clarification! |
Beta Was this translation helpful? Give feedback.
Hi @mirisbowring,
Great questions! Here’s a quick breakdown:
Cluster Operator Scanning via Kubeconfig
This is a valid approach, especially for dedicated clusters. Operators can scan using Prowler and share results with users. For shared clusters, you can limit scans to specific namespaces with the
--namespace
flag to comply with security policies.External Scanning with Exported Kubeconfigs
This works well for managing multiple clusters. You can centralize kubeconfigs on one machine and run scans using Prowler’s
--kubeconfig-file
and--context
flags. Just ensure the scanning host is secure since it holds access to multiple clusters.Kubernetes Operators on Master Node
While this automates…