We need to encrypt some columns in a postgresql 9.6 database. We are planning to use pgcrytpo's asymmetric key method for our requirement. we keep daily, weekly, monthly and yearly backups using pg_dump.
we are planning to rotate encryption keys every month and i have some questions regarding this
- while rotating keys, do we have to decrypt data which was encrypted with previous key and again encrypt with new key or we can use any other approach?
- As we keep very old backups, do we have to restore backup and decrypt data which was encrypted with previous key and again encrypt with new key?
- what are the best practices and points to remember for key rotation?
As i am doing encryption for the first time, please bear with me if i have asked any silly question.