aquasecurity / kube-hunter

Hunt for security weaknesses in Kubernetes clusters
Apache License 2.0
4.73k stars 584 forks source link

Fixed exception logs in kubernetes_client #470

Closed danielsagi closed 3 years ago

danielsagi commented 3 years ago

Changed exception logs to debug logs in kubernetes_client nodes discovery

Permissions to list nodes is usually not granted to the default service account. This resulted in unnecessary exception logs. Changed to debug logging.

codecov[bot] commented 3 years ago

Codecov Report

Merging #470 (d74cc43) into main (c96312b) will decrease coverage by 0.24%. The diff coverage is n/a.

:exclamation: Current head d74cc43 differs from pull request most recent head 078db77. Consider uploading reports for the commit 078db77 to get more accurate results Impacted file tree graph

@@            Coverage Diff             @@
##             main     #470      +/-   ##
==========================================
- Coverage   64.10%   63.86%   -0.25%     
==========================================
  Files          43       43              
  Lines        2424     2424              
==========================================
- Hits         1554     1548       -6     
- Misses        870      876       +6     
Impacted Files Coverage Δ
kube_hunter/modules/discovery/kubernetes_client.py 88.23% <ø> (ø)
kube_hunter/modules/hunting/apiserver.py 70.41% <0.00%> (-1.93%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update c96312b...078db77. Read the comment docs.