Skip to content

Conversation

@hoegertn
Copy link
Contributor

@hoegertn hoegertn commented Jan 2, 2021


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@gitpod-io
Copy link

gitpod-io bot commented Jan 2, 2021

@github-actions github-actions bot added the @aws-cdk/aws-dynamodb Related to Amazon DynamoDB label Jan 2, 2021
@skinny85
Copy link
Contributor

skinny85 commented Jan 4, 2021

@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.

@hoegertn
Copy link
Contributor Author

hoegertn commented Jan 4, 2021

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 grantRead. I would even argue that adding it might help people to use transactions inside their apps because they can still use the normal grant methods.

Copy link
Contributor

@bitbauer bitbauer left a 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.

Copy link
Contributor

@skinny85 skinny85 left a 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 🙂

@mergify
Copy link
Contributor

mergify bot commented Jan 8, 2021

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-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject6AEA49D1-qxepHUsryhcu
  • Commit ID: f7d68e1
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@mergify
Copy link
Contributor

mergify bot commented Jan 8, 2021

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).

@mergify mergify bot merged commit e157007 into aws:master Jan 8, 2021
@hoegertn hoegertn deleted the dynamodb-condition-check branch July 17, 2021 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

@aws-cdk/aws-dynamodb Related to Amazon DynamoDB

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants