From 457927da1dcc42bc7331603c9fccac8b8d496698 Mon Sep 17 00:00:00 2001 From: Alistair Curtis Date: Tue, 23 Jan 2024 11:54:56 +0000 Subject: [PATCH 1/4] exclude special characters from password --- terraform/environments/cdpt-chaps/secrets.tf | 1 + 1 file changed, 1 insertion(+) diff --git a/terraform/environments/cdpt-chaps/secrets.tf b/terraform/environments/cdpt-chaps/secrets.tf index 0fb0eb8c757..75905eb1e21 100644 --- a/terraform/environments/cdpt-chaps/secrets.tf +++ b/terraform/environments/cdpt-chaps/secrets.tf @@ -6,6 +6,7 @@ resource "aws_secretsmanager_secret" "db_password" { resource "random_password" "password_long" { length = 32 + override_special = "@/ " } resource "aws_secretsmanager_secret_version" "db_password" { From 5fb1c8779e2882b7a20e26b02aab5d2b4ca35bf5 Mon Sep 17 00:00:00 2001 From: Alistair Curtis Date: Tue, 23 Jan 2024 12:08:26 +0000 Subject: [PATCH 2/4] exclude special characters from password --- terraform/environments/cdpt-chaps/secrets.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terraform/environments/cdpt-chaps/secrets.tf b/terraform/environments/cdpt-chaps/secrets.tf index 75905eb1e21..d6232fc252e 100644 --- a/terraform/environments/cdpt-chaps/secrets.tf +++ b/terraform/environments/cdpt-chaps/secrets.tf @@ -6,7 +6,7 @@ resource "aws_secretsmanager_secret" "db_password" { resource "random_password" "password_long" { length = 32 - override_special = "@/ " + special = false } resource "aws_secretsmanager_secret_version" "db_password" { From 325c02dab950e6a04ecde21e69d09f6e0d90e8cb Mon Sep 17 00:00:00 2001 From: Alistair Curtis Date: Tue, 23 Jan 2024 12:14:23 +0000 Subject: [PATCH 3/4] exclude special characters from password --- terraform/environments/cdpt-chaps/secrets.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terraform/environments/cdpt-chaps/secrets.tf b/terraform/environments/cdpt-chaps/secrets.tf index d6232fc252e..083d5f1dcb3 100644 --- a/terraform/environments/cdpt-chaps/secrets.tf +++ b/terraform/environments/cdpt-chaps/secrets.tf @@ -6,7 +6,7 @@ resource "aws_secretsmanager_secret" "db_password" { resource "random_password" "password_long" { length = 32 - special = false + override_special = "!@#$%&*()-_=+[]{}<>:?@/ " } resource "aws_secretsmanager_secret_version" "db_password" { From 15679f7b348bdb0e90ce543d51f5bf5359bf1cc1 Mon Sep 17 00:00:00 2001 From: Alistair Curtis Date: Tue, 23 Jan 2024 12:23:41 +0000 Subject: [PATCH 4/4] exclude special characters from password --- terraform/environments/cdpt-chaps/secrets.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/terraform/environments/cdpt-chaps/secrets.tf b/terraform/environments/cdpt-chaps/secrets.tf index 083d5f1dcb3..b1441468707 100644 --- a/terraform/environments/cdpt-chaps/secrets.tf +++ b/terraform/environments/cdpt-chaps/secrets.tf @@ -5,8 +5,8 @@ resource "aws_secretsmanager_secret" "db_password" { } resource "random_password" "password_long" { - length = 32 - override_special = "!@#$%&*()-_=+[]{}<>:?@/ " + length = 32 + special = false } resource "aws_secretsmanager_secret_version" "db_password" {