← Learn
Safe
kubectl get secret db-creds -o jsonpath='{.data.password}' | base64 -d

cross-platform · yaml · Expert

Reads one field of a Kubernetes secret you are authorised to read and decodes it for display. It looks like credential theft, but Kubernetes stores secrets base64-encoded by design and decoding is the only way to use the value; the access control question was already answered by RBAC.

Think you can spot these under time pressure?

Start Training

More Kubernetes