Using Kubernetes' kubectl
I can execute arbitrary commands on any pod such as kubectl exec pod-id-here -c container-id -- malicious_command --steal=creditcards
Should that ever happen, I would need to be able to pull up a log saying who executed the command and what command they executed. This includes if they decided to run something else by simply running /bin/bash
and then stealing data through the tty.
How would I see which authenticated user executed the command as well as the command they executed?