Report this

What is the reason for this report?

Are all secrets, even Opaque ones, encrypted on disk in DOKS?

Posted on March 27, 2021

I saw this post from a year back: https://www.digitalocean.com/community/questions/are-kubernetes-secrets-encrypted-on-disk.

It seems like all secrets by default are encrypted by DOKS. Does this include stringData key/value pairs created as Opaque secrets in Kubernetes, i.e., via

kubectl create secret generic foosecret ...


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi there,

Yes, I believe that all data in etcd is encrypted at rest on the backend storage clusters.

If you have an existing cluster, I would recommend checking the versions and making sure that it is running a later version than the ones mentioned in the question that you’ve shared.

Regards, Bobby

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.