A threat actor gains access to a Kubernetes node and attempts to read secrets from environment variables. Which control most directly prevents secret disclosure even if the node is compromised?

Answer

Use workload identity and mount secrets via short-lived tokens with least privilege and strict RBAC

Explanation

Short-lived tokens and least-privilege access reduce the value of a compromised node for extracting secrets. Environment variables alone are too easily harvested from running containers.

Last reviewed: October 2026

Reviewed by FirstInTest Editorial Team

Report an error
QuestionBack to list