A Running Amazon RDS Database Doesn't Necessarily Mean It's Secure
A database can be available, responding to queries, and serving an application without having the configuration you actually want in production. That's one of the reasons infrastructure reviews should go beyond checking
A database can be available, responding to queries, and serving an application without having the configuration you actually want in production.
That's one of the reasons infrastructure reviews should go beyond checking whether a resource was deployed successfully.
Amazon RDS simplifies database operations, but the security and availability decisions still matter.
Here are a few areas I believe deserve attention during an infrastructure review.
1. Public accessibility
One of the first settings worth checking is whether an RDS instance is publicly accessible.
A public configuration can give the database a public IP address and make it reachable from outside its VPC.
This does not automatically mean that the database is open to everyone. Security Groups and other network controls still determine which connections are allowed.
However, if the application and database communicate inside AWS, there is usually no reason to expose the database directly to the internet.
A useful review should ask:
- Does this database really need public access?
- Are inbound Security Group rules restricted to trusted sources?
- Is database access limited to the systems that need it?
Reducing unnecessary network exposure is a good starting point.
2. Encryption at rest
Another important setting is storage encryption.
Amazon RDS supports encryption at rest through AWS KMS. This can protect database storage, logs, automated backups, read replicas, and snapshots.
But enabling encryption is only part of the picture.
The permissions associated with the KMS key also matter. If the wrong identities can manage or use the key, the overall protection may be weaker than expected.
I would review:
- Whether encryption at rest is enabled.
- Which KMS key is being used.
- Which users and services can use or manage that key.
- Whether the encryption configuration meets the workload's requirements.
It is also important to remember that encryption at rest and encryption in transit solve different problems. Database connections should be reviewed separately to determine whether TLS is required.
3. Multi-AZ and availability
Security is not the only concern when reviewing a database.
For production workloads, availability requirements should influence the RDS deployment configuration.
A Multi-AZ deployment can maintain a standby database in another Availability Zone and support automatic failover when certain failures occur.
This can reduce downtime, but it does not mean that interruptions are impossible.
Applications should still be prepared to reconnect after a failover.
There is also a cost and capacity consideration: Multi-AZ configurations can require additional resources, so the decision should reflect the workload's recovery requirements.
One important distinction: a traditional Multi-AZ DB instance standby is not intended to serve read traffic. Multi-AZ DB clusters have a different architecture and can support reader instances.
4. Review the configuration, not just the running service
These examples highlight a broader infrastructure principle.
A resource being deployed successfully does not prove that its configuration is appropriate.
A database can be operational while still having:
- Unnecessary public exposure.
- Missing encryption at rest.
- Availability settings that do not match production requirements.
- Network rules that are broader than necessary.
That is why I prefer reviewing infrastructure configuration as part of the development process, rather than waiting until an issue appears.
Terraform makes infrastructure changes easier to track, but the configuration still needs to be reviewed with security and operational requirements in mind.
Final thoughts
Amazon RDS provides useful security and availability features, but teams still need to make deliberate configuration decisions.
Public accessibility, encryption, and Multi-AZ deployment are three good places to start.
The goal isn't to enable every possible feature on every database. It's to understand the workload, identify the risks, and choose configurations that match the requirements.
That's the same mindset I apply to infrastructure security and maintaining StageAuto.
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.