aws-sdk-js icon indicating copy to clipboard operation
aws-sdk-js copied to clipboard

docs(cognito_identity_credentials): Explain limitation of CognitoIden…

Open RanVaknin opened this issue 1 year ago • 0 comments

This method uses the simplified authflow, which means users cannot explicitly set a session policy. This results in STS appending the Default Session Policy to the request, which can lead to limiting permissions even if they are explicitly attached to a role.

The doc change highlights the limitation of the connivence method since it uses that Enhanced (simplified) flow "under the hood" which limits permissions on the assumed role because of the intersection of multiple policies resulting in the least permissive one being applied to the credentials returned from STS.

Related ticket

RanVaknin avatar Jun 22 '23 22:06 RanVaknin