Interview Prep/DevSecOps/Rapid-Fire Tool Questions

How do you list everything a service account can do in Kubernetes?

IntermediateProductionRapid-Fire Tool Questions
Answer
kubectl auth can-i --list --as=system:serviceaccount:payments:payments-api -n payments
kubectl auth can-i get secrets --as=system:serviceaccount:payments:payments-api -n payments

Impersonation requires impersonate rights for the person running the command.

All DevSecOps questions

More on Rapid-Fire Tool Questions