Coder Social home page Coder Social logo

Comments (7)

mattsb42-aws avatar mattsb42-aws commented on June 29, 2024 1

Thanks for reporting this.

It looks like this is caused by the intersection between the boto3 BatchWriter and our EncryptedClient (for my future reference: [1][2][3]).

We look for the reserved attributes to attempt to keep the user from accidentally using those attributes for other things or re-encrypting items (exactly what is happening here).

I think that a reasonable balance here might be to add a check into the encrypt_batch_write_item to determine whether the item was already encrypted. We will want to do what we can to make sure that the item was actually encrypted by this client and was not since modified.

[1] https://github.com/boto/boto3/blob/develop/boto3/dynamodb/table.py#L133-L147
[2] https://github.com/aws/aws-dynamodb-encryption-python/blob/master/src/dynamodb_encryption_sdk/internal/utils.py#L270-L298
[3] https://github.com/aws/aws-dynamodb-encryption-python/blob/master/src/dynamodb_encryption_sdk/encrypted/item.py#L67-L71

from aws-dynamodb-encryption-python.

mattsb42-aws avatar mattsb42-aws commented on June 29, 2024

We will be addressing this in #92

from aws-dynamodb-encryption-python.

woodyza avatar woodyza commented on June 29, 2024

Hey @mattsb42-aws any idea when this might get into an official release?

from aws-dynamodb-encryption-python.

mattsb42-aws avatar mattsb42-aws commented on June 29, 2024

Hi @woodyza. Sorry, this fell through the cracks.

Since this changes the API behavior, this is going to need to be a minor-version change. Because of that I had wanted to get the change to address #90 in that release as well, but have had other things that kept taking priority.

However, after taking another look through #90, I realize now that we cannot process that silently like we could the batch operations (detailed update in that issue).

I have a couple minor linting issues that I need to address (pylint update, I think), but after that we should be good to publish. I'll update here once a new version is pushed.

from aws-dynamodb-encryption-python.

woodyza avatar woodyza commented on June 29, 2024

All good, thanks for the update! 👍

from aws-dynamodb-encryption-python.

mattsb42-aws avatar mattsb42-aws commented on June 29, 2024

@woodyza 1.1.0 is now live with these changes.

from aws-dynamodb-encryption-python.

woodyza avatar woodyza commented on June 29, 2024

Great stuff, thank you!

from aws-dynamodb-encryption-python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.