aquasecurity / kube-hunter

Hunt for security weaknesses in Kubernetes clusters
Apache License 2.0
4.66k stars 578 forks source link

Modify Error Message #477

Open DiptoChakrabarty opened 2 years ago

DiptoChakrabarty commented 2 years ago

What would you like to be added

Currently if a node is unreachable by the DNS or ip address in bare python installation of kube hunter it returns an error of Kube Hunter couldn't find any clusters . This error message can be modified to something like Host is inaccessible or cluster is inaccessible/unreachable. This message has to be modified https://github.com/aquasecurity/kube-hunter/blob/473e4fe2b57d3e91b91777de0ed65d13658ae9cb/kube_hunter/modules/report/plain.py#L45 This could help prevent issues like #404 and #475.

Why is this needed

The error message currently implies that no cluster is found even though cluster is present however it should imply that the cluster nodes are not reachable from externally.

DiptoChakrabarty commented 2 years ago

Can I take this up