View a markdown version of this page

Encryption in transit (TLS) and at rest - Amazon Aurora

Encryption in transit (TLS) and at rest

In a database cluster group for Aurora, clients connect to the routing layer with TLS, and the routing layer connects to member clusters with mutual TLS. Both connections use AWS managed certificates. A direct connection to a member cluster uses that cluster's own TLS settings. Each member cluster encrypts its data at rest with its own AWS KMS key.

TLS on the routing endpoint

The routing endpoint requires TLS 1.2 or TLS 1.3, and it refuses a connection without TLS. On Aurora MySQL, the client gets MySQL error 3159 after the credential and account-lock checks. The routing endpoint presents an AWS managed certificate, so you don't provide a certificate for it. Set each client to use TLS, with the routing endpoint name as the host. A client that can't use TLS 1.2 or later can't connect.

Set the client's TLS mode, for example the --ssl-mode=REQUIRED option of the mysql client. For the TLS options of other clients and drivers, see TLS connections to Aurora MySQL DB clusters.

For a router user, REQUIRE takes only NONE and SSL.

Note

IAM database authentication isn't available for router users.

Note

The routing endpoint accepts TLS 1.2 and TLS 1.3 only, with the AES-GCM cipher suites that Aurora MySQL 8.4 supports. You can't change the minimum TLS version or the cipher suites.

Note

The routing endpoint presents a public certificate from AWS Certificate Manager. To verify it, use a trust store that has the Amazon Trust Services root certificates, and check that the host name matches the endpoint.

For how to connect, see Connecting to the routing endpoint.

TLS between the routing layer and member clusters

The routing layer connects to each member cluster with mutual TLS, using AWS managed certificates. You don't configure certificates for these connections.

A direct connection to a member cluster uses that cluster's TLS settings, as for any Aurora DB cluster, including its reader and instance endpoints. For Aurora MySQL, see TLS connections to Aurora MySQL DB clusters.

Data is encrypted in transit during a data movement job with mutual TLS, using AWS managed certificates.

Encryption at rest

Each member cluster encrypts its storage, backups, and snapshots with its own AWS KMS key, as for any Aurora DB cluster, and this key can be a customer managed key. Adding a cluster to a group doesn't change its encryption key, and the group doesn't encrypt the cluster again under another key. The routing layer holds none of your table data. For how to encrypt a DB cluster, see Encrypting Amazon Aurora resources.

Member clusters in one group can use different AWS KMS keys. When you restore a group, set the key for the restored member clusters with KmsKeyId in --member-cluster-provisioning-configuration or --member-cluster-overrides.

Note

A database cluster group for Aurora has no KmsKeyId parameter. Each member cluster keeps its own encryption key.