Open DiptoChakrabarty opened 2 years ago
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.
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.
Can I take this up
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.