Skip to content

Commit

Permalink
fix(password): generate password without special chars (#6)
Browse files Browse the repository at this point in the history
Signed-off-by: Di Wang <[email protected]>
  • Loading branch information
hemslo authored Nov 26, 2024
1 parent ce228f6 commit 05bc0e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions er_aws_rds/rds.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,9 @@ def _password(self) -> None:
self,
id=f"{self.data.identifier}-password",
length=20,
# MasterUserPassword Constraints in https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_CreateDBInstance.html
override_special="!#$%*()-_=+[]{}<>:?",
min_special=0, # need to be 0 to import current password. It should be improved in next version of module once the instaces are imported.
# avoid special chars for MasterUserPassword Constraints in https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_CreateDBInstance.html
# also consistent with terraform-resources random password generation
special=False,
min_numeric=0,
keepers={"reset_password": self.data.reset_password or ""},
).result
Expand Down

0 comments on commit 05bc0e6

Please sign in to comment.