Redshift Serverless namespaces should not use the default admin username
Flags Amazon Redshift Serverless namespaces whose admin username is a default or easily guessed name: admin, awsuser, root, sa, oracle or postgres. This list is broader than AWS's own control, which flags only admin. Unlike a provisioned cluster's (Redshift.8), this username can be changed in place.
- service
- RedshiftServerless
- severity
- Medium
- scope
- evaluated in every region
How to fix it
- Can break clients: The password changes with the user name, so every application, BI tool or scheduled job signing in as the admin user fails until it gets the new credentials.
In the console
Redshift Serverless → Namespace configuration → the namespace → Actions → Edit admin credentials
- Edit admin credentials
- A new admin user name other than admin, awsuser, root, sa, oracle or postgres, with a new password
With the AWS CLI
aws redshift-serverless update-namespace --namespace-name <namespace-name> --admin-username <admin-username> --admin-user-password <admin-user-password> --region <region>With Terraform
resource "aws_redshiftserverless_namespace" "this" {
namespace_name = var.namespace_name
admin_username = var.admin_username
}
See which of your accounts this check is failing on.
Book a live scan