Skip to content

Commit 94722e6

Browse files
authored
Merge pull request #10 from revealmobile/master
exclude colon from password generator for Postgres
2 parents 75dacb1 + f2ad81c commit 94722e6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

SecretsManagerRDSPostgreSQLRotationMultiUser/lambda_function.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def create_secret(service_client, arn, token):
120120
current_dict['username'] = get_alt_username(current_dict['username'])
121121

122122
# Generate a random password
123-
passwd = service_client.get_random_password(ExcludeCharacters='/@"\'\\')
123+
passwd = service_client.get_random_password(ExcludeCharacters=':/@"\'\\')
124124
current_dict['password'] = passwd['RandomPassword']
125125

126126
# Put the secret

SecretsManagerRDSPostgreSQLRotationSingleUser/lambda_function.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def create_secret(service_client, arn, token):
114114
logger.info("createSecret: Successfully retrieved secret for %s." % arn)
115115
except service_client.exceptions.ResourceNotFoundException:
116116
# Generate a random password
117-
passwd = service_client.get_random_password(ExcludeCharacters='/@"\'\\')
117+
passwd = service_client.get_random_password(ExcludeCharacters=':/@"\'\\')
118118
current_dict['password'] = passwd['RandomPassword']
119119

120120
# Put the secret

0 commit comments

Comments
 (0)