-
Notifications
You must be signed in to change notification settings - Fork 4.4k
fix(dynamodb): missing grantRead for ConditionCheckItem #12313
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@hoegertn any justification on this change? Is this permission related to transactions? Should we have a separate API that includes transactions? I'm just not 100% sure what the implications here are. |
|
Yes, you are right, this permission is used within transactions. Imho it is a read action on a table so I see no reason why it should not be allowed on |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes are consistent.
As documented ConditionCheckItem is general read-only action:
https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazondynamodb.html
https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/specifying-conditions.html
When condition is used together with PutItem/UpdateItem/DeleteItem resulting permission error relates to write action. This will also help understanding permission issues. This is another reason to add it to overall read permissions.
skinny85
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fine, you wore me down 🙂
|
Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
|
Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license