Skip to content

Commit

Permalink
Merge pull request aws-samples#10 from revealmobile/master
Browse files Browse the repository at this point in the history
exclude colon from password generator for Postgres
  • Loading branch information
willtong1234 authored Apr 24, 2019
2 parents 75dacb1 + f2ad81c commit 94722e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def create_secret(service_client, arn, token):
current_dict['username'] = get_alt_username(current_dict['username'])

# Generate a random password
passwd = service_client.get_random_password(ExcludeCharacters='/@"\'\\')
passwd = service_client.get_random_password(ExcludeCharacters=':/@"\'\\')
current_dict['password'] = passwd['RandomPassword']

# Put the secret
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def create_secret(service_client, arn, token):
logger.info("createSecret: Successfully retrieved secret for %s." % arn)
except service_client.exceptions.ResourceNotFoundException:
# Generate a random password
passwd = service_client.get_random_password(ExcludeCharacters='/@"\'\\')
passwd = service_client.get_random_password(ExcludeCharacters=':/@"\'\\')
current_dict['password'] = passwd['RandomPassword']

# Put the secret
Expand Down

0 comments on commit 94722e6

Please sign in to comment.