Repository navigation
Conversation
A possible fix for serverless#3151 Switch from using IAM `getUser` to get the account ID of the current user to calling STS `getCallerIdentity`. It is expected that this is a less protected segment of rights and will, as a result, impact fewer users. Of course, this is hard to guarantee. Changes tests appropriately Related Docs: http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/STS.html#getCallerIdentity-property
5 tasks done
Contributor
Author
|
It may be worth polling the VIP group to ensure that everyone has |
eahefnawy
approved these changes
Jan 27, 2017
Contributor
|
Thanks @erikerikson /cc @serverless/vip ☝️ |
pmuens
approved these changes
Jan 27, 2017
pmuens
left a comment
Contributor
There was a problem hiding this comment.
Nice fix! Thanks @erikerikson
Tested it and it works great!
Thanks for saving our ability to deploy! 🥇
Closed
Contributor
|
+1 thank you @erikerikson |
erikerikson
deleted the
bug-fix-use-sts-instead-of-iam-to-get-account-id
branch
January 27, 2017 20:40
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What did you implement:
A possible fix for #3151
How did you implement it:
Switch from using IAM
getUserto get the account ID of the current user to calling STSgetCallerIdentity. It is expected that this is a less protected segment of rights and will, as a result, impact fewer users. Of course, this is hard to guarantee.Changes tests appropriately
Related Docs:
http://docs.aws.amazon.com/STS/latest/APIReference/API_Operations.html
http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/STS.html#getCallerIdentity-property
How can we verify it:
See awsProvider.spec.js tests. Use this to deploy any project.
Todos:
Is this ready for review?: YES
Is it a breaking change?: NO