Description
With IAM authentication enabled, Neptune requires AWS Signature Version 4 (SigV4) on data requests. IAM policies specify the data operations each client may perform.
Potential impact
With IAM authentication off, clients that can reach the cluster may be able to read or change data they do not need.
Remediation
Configure SigV4 signing and the required data permissions for clients, and restrict network paths and security groups. Apply iam_database_authentication_enabled = true during maintenance. The engine restarts and closes existing connections. After reconnecting, verify that permitted requests succeed and unauthorized requests are denied.
Examples
The examples change only request authentication for neptune-cluster-demo. Both encrypt data at rest and require separate DB instance, subnet and security group configuration.
Before
resource "aws_neptune_cluster" "neptune_cluster" {
cluster_identifier = "neptune-cluster-demo"
engine = "neptune"
storage_encrypted = true
iam_database_authentication_enabled = false
}
After
resource "aws_neptune_cluster" "neptune_cluster" {
cluster_identifier = "neptune-cluster-demo"
engine = "neptune"
storage_encrypted = true
iam_database_authentication_enabled = true
}