kubearmor-client icon indicating copy to clipboard operation
kubearmor-client copied to clipboard

`sysdump` crashes if no KubeArmor running

Open daemon1024 opened this issue 3 years ago • 2 comments

Running sysdump utility with no KubeArmor running in k8s causes a runtime error. image

Possible Solution We probably need to validate if there are any items in context of KubeArmor before we use it https://github.com/kubearmor/kubearmor-client/blob/f90ced4f3605d9b2f03a13feea94911eaffcf995/sysdump/sysdump.go#L226

List of tasks

  • [ ] sysdump should work even if kubearmor is not installed
  • [ ] sysdump should work in vagrant dev env
  • [ ] sysdump should work even if kubearmor is not working (i.e., installed but going into CrashLoopBackOff for some reasons)
  • [ ] sysdump should work in systemd mode as well

Hi, If it is the first time that you contribute to KubeArmor, follow these steps: Write a comment in this issue thread to let other possible contributors know that you are working on this bug. For eg : Hey all, I would like to work on this issue., checkout Contributing Guide :fire::sparkles: and feel free to ask anything related to this issue in this thread or on our slack channel ✌🏽

daemon1024 avatar Jun 20 '22 07:06 daemon1024

I'll take this up and try solving

AvineshTripathi avatar Jul 02 '22 08:07 AvineshTripathi

Thanks a lot for taking this up @AvineshTripathi !

daemon1024 avatar Jul 02 '22 08:07 daemon1024