

# Security in database cluster groups for Aurora

To secure a database cluster group for Aurora, you secure each member cluster as you do any Aurora DB cluster, and you also secure the resources that the group adds. Security is a shared responsibility between AWS and you. To learn how this model applies to Aurora, see [Security in Amazon Aurora](UsingWithRDS.md).

You manage the group's own resources through the Amazon RDS API, and IAM authorizes those calls. With routing enabled, the group also adds the routing layer, the routing endpoint, and router users. The following table shows where each control applies.


| Area | What the group adds | What stays with each member cluster | 
| --- | --- | --- | 
| Users and grants | Router users, which sign in at the routing endpoint, and their routing layer privileges. See [Router users and routing layer privileges](databaseclustergroups-router-users.md). | Member cluster users and their data privileges. See [Security with Amazon Aurora MySQL](AuroraMySQL.Security.md). | 
| Encryption in transit | TLS from clients to the routing layer. Mutual TLS from the routing layer to member clusters. Both use AWS managed certificates. See [Encryption in transit (TLS) and at rest](databaseclustergroups-tls.md). | Direct connections follow each member cluster's own TLS settings. See [Using SSL/TLS to encrypt a connection to a DB cluster](UsingWithRDS.SSL.md). | 
| Encryption at rest | The routing layer holds no table data. | Each member cluster's own AWS KMS key for its storage, backups, and snapshots. See [Encrypting Amazon Aurora resources](Overview.Encryption.md). | 
| IAM and API permissions | Permissions on the group's API operations and resources. See [IAM and API permissions](databaseclustergroups-iam.md). | Cluster API permissions, and IAM database authentication on direct connections. See [Identity and access management for Amazon Aurora](UsingWithRDS.IAM.md) and [IAM database authentication ](UsingWithRDS.IAMDBAuth.md). | 
| Network access | The routing endpoint's subnets and security groups in your Amazon VPC. See [Network access](databaseclustergroups-network.md). | Each member cluster's own subnets and security groups. See [Amazon VPC and Amazon Aurora](USER_VPC.md). | 

A group with routing has two access paths to secure: the routing endpoint, and each member cluster's own endpoints. A direct connection to a member cluster doesn't go through the routing layer, so routing layer privileges and router user host parts don't apply to it. The member cluster authenticates and authorizes that connection itself. Allow direct connections to member clusters only from the hosts that need them.

The routing endpoint serves every member cluster in the group, and you can't limit it to some of them. You control which member clusters a router user reaches with the member cluster users that you create on each member cluster.

**Security best practices**

The following practices give each router user and each direct connection only the access that it needs. They are general guidelines, not a full security plan for your setup. The ones for router users and the routing endpoint apply when routing is on.
+ Allow traffic to the routing endpoint only from your application hosts, and to member clusters only from the hosts that connect directly. See [Security group rules](databaseclustergroups-network.md#databaseclustergroups-network-security-groups).
+ Set every client to connect with TLS. See [TLS on the routing endpoint](databaseclustergroups-tls.md#databaseclustergroups-requiring-tls-on-the-routing-endpoint).
+ On Aurora MySQL, sign in applications that connect directly to a member cluster with IAM database authentication instead of a stored password. See [IAM database authentication](databaseclustergroups-iam.md#databaseclustergroups-iam-db-auth).
**Note**  
IAM database authentication isn't available for router users. To sign in with IAM database authentication, connect directly to a member cluster.
+ Give each router user the narrowest host part that its clients need, and keep the administrative router user out of applications. See [Creating a router user](databaseclustergroups-router-users.md#databaseclustergroups-router-users-create) and [Router users and member cluster users](databaseclustergroups-router-users.md#databaseclustergroups-managing-router-users-and-member-cluster-users).
+ Grant each router user only the routing layer privileges that it needs, and each member cluster user only its data privileges. See [Routing layer privileges](databaseclustergroups-router-users.md#databaseclustergroups-router-users-privileges).
+ Rotate passwords with a dual password. See [Rotating passwords](databaseclustergroups-maintaining-router-users.md#databaseclustergroups-router-users-rotate).
+ Turn on deletion protection, and require it with an IAM policy. See [Identity-based policy examples](databaseclustergroups-iam.md#databaseclustergroups-iam-policy-examples).
+ Review router users, their privileges, and the group's Amazon RDS API calls on a fixed schedule. Audit statements on member clusters. See [Auditing access and member cluster configuration](databaseclustergroups-auditing.md).

The following topics cover the controls that the group adds.

**Topics**
+ [Router users and routing layer privileges](databaseclustergroups-router-users.md)
+ [Maintaining router users](databaseclustergroups-maintaining-router-users.md)
+ [Encryption in transit (TLS) and at rest](databaseclustergroups-tls.md)
+ [IAM and API permissions](databaseclustergroups-iam.md)
+ [Network access](databaseclustergroups-network.md)