RDS for MariaDB DB instances should be encrypted in transit
Checks that RDS for MariaDB DB instances set require_secure_transport to 1 in their DB parameter group, so the database refuses any connection that does not use SSL/TLS. The parameter exists only from MariaDB 10.5, so an older instance fails until it is upgraded.
- service
- RDS
- severity
- Medium
- scope
- evaluated in every region
How to fix it
- Interrupts service: If the instance is on a default parameter group, which cannot be edited, attach a custom group holding this value; it applies only after a reboot, though this check passes before then.
- Can break clients: Once it applies, MariaDB answers a connection without SSL/TLS with an Access denied error, so move every application, job and agent onto SSL/TLS first.
In the console
RDS → Parameter groups → the group attached to the DB instance
- require_secure_transport
- 1
With the AWS CLI
aws rds modify-db-parameter-group --db-parameter-group-name <parameter-group-name> --parameters ParameterName=require_secure_transport,ParameterValue=1,ApplyMethod=immediate --region <region>With Terraform
resource "aws_db_parameter_group" "this" {
name = var.parameter_group_name
family = var.family
parameter {
name = "require_secure_transport"
value = "1"
}
}
See which of your accounts this check is failing on.
Book a live scan