non-k8s: KubeArmor panics when not-enabled policy type is received #1787
Labels
bug
Something isn't working
good first issue
Good for newcomers
help wanted
Extra attention is needed
Bug Report
General Information
To Reproduce
Modify
make run
target in KubeArmor's Makefile to something like below such that host policy is disabled:Once KubeArmor is running, send the below host policy by running
karmor vm policy --gRPC=:32767 add <path-to-policy>
:You'll see that KubeArmor panics and dies with the below log:
Similar behavior is observed when container policy is disabled.
Expected behavior
KubeArmor should not panic and just log OR send back the response that policy enforcement for this
kind
(KubeArmorPolicy/KubeArmorHostPolicy) is not enabled.The text was updated successfully, but these errors were encountered: