Skip to content
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

Encryption Api for Bulk Operations #26672

Merged
merged 18 commits into from
Feb 5, 2022

Conversation

aayush3011
Copy link
Member

@aayush3011 aayush3011 commented Jan 24, 2022

Encryption Api for Bulk Operations

  1. Added the encryption and decryption logic for the bulk api.
  2. Added test cases for all bulk operations - create, upsert, read and delete.

@ghost ghost added the Cosmos label Jan 24, 2022
@aayush3011 aayush3011 marked this pull request as ready for review January 24, 2022 22:33
@aayush3011 aayush3011 added the azure-cosmos-encryption Issues related to azure cosmos encryption project label Jan 24, 2022
@aayush3011
Copy link
Member Author

/azp run java - cosmos - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Member

@simplynaveen20 simplynaveen20 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please do manual testing as well with to see if this holds good on high number of documents eg 5-10k

@aayush3011
Copy link
Member Author

/azp run java - cosmos - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Member

@simplynaveen20 simplynaveen20 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please change the title of PR to some description , currently it had branch name in it

@simplynaveen20
Copy link
Member

Once all the current comments are resolved and emulator ci run clean, please run the full ci by commenting "/azp run java - cosmos - tests" in the pr. As we have touched the files in Cosmos project , its safe to do that

@aayush3011 aayush3011 changed the title Users/akataria/encryption bulk api Encryption Api for Bulk Operations Feb 1, 2022
return cosmosItemOperationMono;
});

final CosmosBulkExecutionOptions cosmosBulkExecutionOptions = bulkOptions;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will not work, because encryptionProcessor is not initialized if the encryption does not happen. Encryption happens only when the above flux gets executed. And this header code will get executed before encryption is happening.
This header needs to be set in the flux chain. Please revert this code to its original state.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reverted the code.

@aayush3011 aayush3011 requested review from kushagraThapar and removed request for moderakh February 3, 2022 21:27
@aayush3011
Copy link
Member Author

/azp run java - cosmos - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Member

@simplynaveen20 simplynaveen20 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM , thanks @aayush3011

@aayush3011 aayush3011 merged commit 58c802a into Azure:main Feb 5, 2022
azure-sdk pushed a commit to azure-sdk/azure-sdk-for-java that referenced this pull request Nov 16, 2023
Ericchoi/main/event hub/2024 01 01 (Azure#26672)

* Adding new version 2024-01-01 with changes in Clusters.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
azure-cosmos-encryption Issues related to azure cosmos encryption project Cosmos
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants