Skip to content

Commit

Permalink
Thanks to @Stype:
Browse files Browse the repository at this point in the history
Update the kmsauth token validation code to verify that all remote_usernames are checked against the offered kmsauth_token.
  • Loading branch information
russell-lewis committed Mar 29, 2017
1 parent 7c025fb commit c543416
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bless/aws_lambda/bless_lambda.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def lambda_handler(event, context=None, ca_private_key_password=None,
)
# decrypt_token will raise a TokenValidationError if token doesn't match
validator.decrypt_token(
"2/user/{}".format(request.remote_usernames.split(',')[0]),
"2/user/{}".format(request.remote_usernames),
request.kmsauth_token
)
except TokenValidationError as e:
Expand Down

0 comments on commit c543416

Please sign in to comment.