aws-samples / hardeneks

Runs checks to see if an EKS cluster follows EKS Best Practices.
https://aws-samples.github.io/hardeneks/
MIT No Attribution
862 stars 91 forks source link

Possibility to export to save the report #9

Closed aana5i closed 1 year ago

aana5i commented 1 year ago

Hello, Thanks for this realy nice feature. Would be nice to have an option to save the report as text or so.

dorukozturk commented 1 year ago

@aana5i Sorry for the late response. I am looking into https://rich.readthedocs.io/en/stable/console.html#exporting. It seems possible so I will add an option to export. Thanks for the feedback !

aana5i commented 1 year ago

thanks @dorukozturk

dorukozturk commented 1 year ago

I added 2 options to export the report:

hardeneks --export-txt some.txt

or

hardeneks --export-html some.html

Thanks for the feedback !

aana5i commented 1 year ago

Thanks @dorukozturk The text export is working but links are not viewable, we only see the Click to see the guide.

The html export works better.

aana5i commented 1 year ago

BTW @dorukozturk, i think HTML is a the best format for an export anyway.