Question

How to encrypt data at rest for PostgreSQL database?

Posted November 24, 2020 2.1k views
DigitalOcean Managed PostgreSQL Database

As I read this article https://www.digitalocean.com/blog/announcing-managed-databases-for-postgresql/ I understood that all data at rest and in transit is encrypted. Could somebody provide me with more information about setting up the encryption?

Is the encryption set up by default for my PostgresSQL? If not, is there any tutorial on how to set it up? Is it possible to use at least the AES256 encryption key?

Thank you

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.

×
Submit an Answer
1 answer

Hi @viktorhrtanek,

Managed Database data is encrypted at rest with LUKS and in transit with SSL. This means all data is unreadable outside of the cluster until sent purposefully.

When you allow inbound sources (such as Droplets, Kubernetes nodes, or external IP addresses) to the database, the inbound source is presented with decrypted data when requesting it. All of the data is still encrypted while on our network, so any man in the middle trying to snoop your information will be unable to do so.

You can check our below product documentation which can provide more details about PostgreSQL Managed database.

https://docs.digitalocean.com/products/databases/postgresql/

Regards,
Rajkishore