Hacker News new | ask | show | jobs
by timmahoney 1517 days ago
In kubernetes I run external secrets, which is nice. I store The secrets in key value or file format in AWS Secrets Manager, which gets synchronized to the cluster into a secret. From there it gets mounted into the running pod via the envFrom or volume mount method.
1 comments

External secrets are great, especially if your app can read them directly from k8s and avoid ever having them mounted as a volume (or in env var).

If your app can’t interface directly w/k8s, but it can read secrets from a file, you can use a small init program to fetch the k8s secret and write it to a named pipe. This is advantageous compared to mounting as a volume, because the pipe disappears after both ends close their connection to it.