aquasecurity / kube-hunter

Hunt for security weaknesses in Kubernetes clusters
Apache License 2.0
4.7k stars 581 forks source link

Fixed bug in etcd hunting #364

Closed danielsagi closed 3 years ago

danielsagi commented 4 years ago

Description

Etcd hunting was failing due to accessing an uninitialized protocol property of hunter. Protocol property is set on events, this was a typo.

Contribution checklist

codecov[bot] commented 4 years ago

Codecov Report

Merging #364 into master will decrease coverage by 0.04%. The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #364      +/-   ##
==========================================
- Coverage   62.77%   62.73%   -0.05%     
==========================================
  Files          42       42              
  Lines        2281     2281              
==========================================
- Hits         1432     1431       -1     
- Misses        849      850       +1     
Impacted Files Coverage Δ
kube_hunter/modules/hunting/etcd.py 33.75% <0.00%> (ø)
kube_hunter/core/events/handler.py 90.09% <0.00%> (-1.00%) :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 7530e6f...16103bf. Read the comment docs.