Interview Prep/Real-World Interview/Secrets, security & access

If an attacker got a shell in one of your pods, what could they reach?

AdvancedBehavioralSecrets, security & access
Answer

Good answer looks like → Answer honestly with your controls. "They'd run as a non-root user with a read-only root filesystem and no service-account token mounted unless needed. NetworkPolicies limit them to that service's dependencies. The pod's IAM role only reads one bucket prefix. IMDSv2 hop limit 1 blocks the node role. Their biggest reach would be that service's database credentials, so the database user has only the tables it needs."

Follow-ups to expect → What would you detect, and how fast? What would you improve?

Red flags → "Nothing, our cluster is secure."

All Real-World Interview questions Roadmap: Interview readiness

More on Secrets, security & access