aquasecurity / kube-hunter

Hunt for security weaknesses in Kubernetes clusters
Apache License 2.0
4.75k stars 585 forks source link

Fail to generate json/yaml report. Command line option not working #312

Closed tempandk123 closed 4 years ago

tempandk123 commented 4 years ago

What happened

Following the last commit, when I run kube-hunter.py I cannot get the json (nor yaml) report anymore. The "--report" option does not seem to be working.

image

Expected behavior

I should get the report in a JSON format.

iyehuda commented 4 years ago

Hi @tempandk123 !

Thanks for your report. I have verified this in it looks like #310 created a regression.

@mormamn It looks like the factory implementation did not instantiated reporters and dispatchers. This part should be tested.

mormamn commented 4 years ago

@iYehuda , I apologize it's my bad for not testing. Anyway, I'll make sure it wont happen again. I'm on it, + test file.