ADR015: RDS storage encryption plans
We want to enable, or provide the option to enable, storage encryption (AKA encryption at rest) for the RDS instances of the tenants databases created by our RDS broker. The broker has logic to enable this option on creation.
But there are some limitations:
- Storage Encryption can only be enabled on creation of the DB. There is no way to update an instance to enable or disable encryption. The only way is by creating a encrypted (or unencrypted) copy of a snapshot, to then restore it to a DB instance.
Storage Encryption is only supported for some instance types. Specifically it is not supported for
db.t2.micro., used in our Small and Free plans
- Update 2018-01-24: Amazon have now enabled support for encryption of
- Users cannot migrate from a plan with encryption (Medium or Large) to a plan without encryption (Small or Free). But this use case is less common.
- Users can migrate from Free/Small to a plan with encryption (Medium or Large), but the instance will not have encryption enabled.
- If we enable encryption in the existing plans, the existing databases will remain without encryption.
- Due the API broker limitations, it is not possible to query the attributes of an existing instance.
We have 3 options to proceed:
- Enable Encryption in the Medium and Large plans, and document the restrictions.
- Less effort to implement.
- We might end having unencrypted database in a plan that is meant to be encrypted, which is confusing for the users and operators.
- Existing Instances will remain unencrypted.
- Change the instance type for the Small plan to
- Would allow migrate from Small to Medium or Large.
- We will still have the problem for the Free plan.
- Increases the costs for the Small plan (double).
- Provide additional explicit plans with Encryption enabled, and keep the old ones. Add logic to prevent updates between plans with or without encryption.
- It would be more explicit and clear, and the plan would match the state of the existing database.
- Existing instances would still match with the plan description.
- We will add more plans, which makes it more confusing for the tenants.
We decided to provide additional explicit plans with Encryption enabled, and keep the old ones.
We will add logic in the broker to prevent updates between plans with or without encryption.
We have decided only add the option of encryption to the HA plans to minimise the number of new plans added. In most of the cases the tenants would choose HA together with encryption and, although adding more plans is easy, removing them is painful once they are being used.
- More plans will be added to the offer, which is more confusing the tenants. Better documentation would be required to help the tenants to pick the right plan.
- It is not possible to migrate from a Non-Encrypted plan to an Encrypted plan, and vice versa.