Manage SQL Server Encryption Keys Across AWS Regions for Disaster Recovery
This blog post details a strategy for backing up, replicating, and restoring the Microsoft SQL Server encryption key hierarchy across AWS Regions. It addresses a common oversight in cross-region disaster recovery planning for SQL Server on Amazon EC2, where missing encryption keys can prevent database recovery. The post guides users through managing each layer of the SQL Server encryption hierarchy using AWS Secrets Manager and Amazon S3 to ensure encrypted databases are recoverable during DR events.
- →Cross-region DR for SQL Server Encryption Keys
- →SQL Server Encryption Hierarchy Overview
- →Service Master Key (SMK) and Database Master Key (DMK) Management for DR
- →TDE Certificate Management for Cross-Region DR
- →Column-level Encryption Key Management for DR
Notes (5) ›
- Cross-region DR for SQL Server Encryption Keys
This blog post provides a method for managing SQL Server encryption keys across AWS Regions to enable successful encrypted database recovery during cross-region disaster recovery (DR) events on Amazon EC2. It highlights the critical importance of the entire encryption key hierarchy for DR.
- SQL Server Encryption Hierarchy Overview
The post explains the layered encryption hierarchy used by SQL Server, where each key protects the one below it. It details how Transparent Data Encryption (TDE), encrypted backups with certificates, and column-level encryption keys traverse this hierarchy and the implications for DR. Missing any key in the chain can lead to data inaccessibility.
- Service Master Key (SMK) and Database Master Key (DMK) Management for DR
For cross-region DR to a different SQL Server instance, the DR instance's master database has its own SMK. TDE certificates are protected by the DR instance's DMK. User databases restored to the DR instance retain their original DMK, which must be re-encrypted by the new instance's SMK if column-level encryption keys are protected by it.
- TDE Certificate Management for Cross-Region DR
To ensure TDE-encrypted databases can be restored on a DR instance, TDE certificates and their private keys must be exported from the primary instance and then imported onto the DR instance's master database before restoring the database.
- Column-level Encryption Key Management for DR
Column-level encryption keys stored within a database have different DR behaviors based on what protects them. If protected by the DMK, the keys travel with the database, but the DMK must be re-encrypted with the DR instance's SMK. If protected by a certificate, that certificate needs export/import. Passwords for password-protected keys should be stored in AWS Secrets Manager.
https://aws.amazon.com/blogs/modernizing-with-aws/managing-sql-server-encryption-keys-across-aws-regions-for-disaster-recovery/
Related releases
- Amazon EC2 R8a Instances Now Available in Canada (Central) Region AWS What's New ·
- AWS EC2 Image Builder streamlines Microsoft Office integration Modernizing with AWS Blog ·
- AWS EC2 High Memory U7in Instances Now Available in São Paulo AWS What's New ·
- Amazon EC2 introduces application status checks for app-level monitoring AWS What's New ·
- Amazon EC2 R8i and R8i-Flex instances available in Europe (Milan) AWS What's New ·
- Amazon GameLift Servers adds 21 EC2 instance types AWS What's New ·