Get Kubernetes Pod secrets with curl and the Service Account token
Rhys Campbell
Here’s a simple explainer for how to access secrets a Kubernetes Pod is allowed to access with its default service account. curl --header "Authorization: Bearer $(cat /var/run/secrets/kubernetes.io/serviceaccount/token)" --cacert /var/run/secrets/kubernetes.io/serviceaccount/ca.crt...