DataDog / KubeHound

Kubernetes Attack Graph
https://kubehound.io
Apache License 2.0
705 stars 39 forks source link

Collector offline #163

Closed jt-dd closed 4 months ago

jt-dd commented 5 months ago

This PR add a function to add an offline collector. It allows to dump locally or directly on a s3 bucket.

d0g0x01 commented 5 months ago

This PR add a function to add an offline collector. It allows to dump locally or directly on a s3 bucket.

  • local dump (compressed): ./kubehound dump local --compress --output-dir /tmp/kubehound --debug
  • local dump (flat): ./kubehound dump local --output-dir /tmp/kubehound --debug
  • s3 dump: ./kubehound collector s3 --bucket kubehound --region us-east-1

I think this should be a separate binary. If you consider the KHaaS use case we just want a small binary to collect data and upload to s3 so no need to ship all the kubehound stuff like mongo/janus clients etc to do that