Skip to content

Commit a32324b

Browse files
committed
Eliminated problematic special characters from password generation.
1 parent e96880b commit a32324b

2 files changed

Lines changed: 26 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# 0.13.8 (Apr 17, 2025)
2+
* Eliminated problematic special characters from password generation.
3+
14
# 0.13.7 (Mar 17, 2025)
25
* Added support for storage auto-scaling.
36

password.tf

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,29 @@ resource "random_password" "this" {
66
special = true
77

88
// The password for the master database user can include any printable ASCII character except /, ", @, or a space.
9-
override_special = "!#$%&*()-_=+[]{}<>:?"
9+
// We're also excluding the following characters:
10+
// ':' - not allowed by DMS (Database Migration Service)
11+
// ';' - not allowed by DMS
12+
// '+' - not allowed by DMS
13+
// '%' - not allowed by DMS, confuses url encoding
14+
// '?' - confuses url encoding
15+
// '#' - confuses url encoding
16+
// '[' - confuses url encoding
17+
// ']' - confuses url encoding
18+
// '{' - confuses url encoding
19+
// '}' - confuses url encoding
20+
// '(' - issues with batch files
21+
// ')' - issues with batch files
22+
// '&' - issues with batch files
23+
// '!' - issues with batch files
24+
// '^' - issues with batch files
25+
// '<' - issues with batch files
26+
// '>' - issues with batch files
27+
override_special = "$*-_="
28+
29+
lifecycle {
30+
ignore_changes = [override_special] // Prevent changing passwords for provisioned dbs
31+
}
1032
}
1133

1234
resource "aws_secretsmanager_secret" "password" {

0 commit comments

Comments
 (0)