-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Client Encryption: Adds fix to allow partition key path and id to be part of client encryption policy. #33648
Client Encryption: Adds fix to allow partition key path and id to be part of client encryption policy. #33648
Conversation
API change check APIView has identified API level changes in this PR and created following API reviews. |
…b.com:aayush3011/azure-sdk-for-java into users/akataria/AddEncryptionIdAndPartitionKey
…b.com:aayush3011/azure-sdk-for-java into users/akataria/AddEncryptionIdAndPartitionKey
return Mono.just(itemId); | ||
} | ||
|
||
private Mono<PartitionKey> checkAndGetEncryptedPartitionKey(PartitionKey partitionKey, EncryptionSettings encryptionSettings) { |
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.
Please add dedicated unit tests for this method going through PartitonKey NULL/EMPTY/null as well as single and hierarchical partition keys with dedicated encryption and because parent node is part of the encryption policy.
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.
I have already added partition key tests for null/empty and single pk. I don't have test cases for the hierarchical pks. I will add those and update this 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.
@aayush3011 Is this done?
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.
Yes
...mos-encryption/src/main/java/com/azure/cosmos/encryption/CosmosEncryptionAsyncContainer.java
Outdated
Show resolved
Hide resolved
...mos-encryption/src/main/java/com/azure/cosmos/encryption/CosmosEncryptionAsyncContainer.java
Show resolved
Hide resolved
...encryption/src/main/java/com/azure/cosmos/encryption/implementation/EncryptionProcessor.java
Outdated
Show resolved
Hide resolved
...-encryption/src/main/java/com/azure/cosmos/encryption/models/SqlQuerySpecWithEncryption.java
Outdated
Show resolved
Hide resolved
...-encryption/src/main/java/com/azure/cosmos/encryption/models/SqlQuerySpecWithEncryption.java
Show resolved
Hide resolved
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.
Few comments that need review/addressing.
…b.com:aayush3011/azure-sdk-for-java into users/akataria/AddEncryptionIdAndPartitionKey
…b.com:aayush3011/azure-sdk-for-java into users/akataria/AddEncryptionIdAndPartitionKey
/azp run java - cosmos - tests |
Azure Pipelines successfully started running 1 pipeline(s). |
...mos-encryption/src/main/java/com/azure/cosmos/encryption/CosmosEncryptionAsyncContainer.java
Show resolved
Hide resolved
return Mono.just(itemId); | ||
} | ||
|
||
private Mono<PartitionKey> checkAndGetEncryptedPartitionKey(PartitionKey partitionKey, EncryptionSettings encryptionSettings) { |
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.
@aayush3011 Is this done?
...mos-encryption/src/main/java/com/azure/cosmos/encryption/CosmosEncryptionAsyncContainer.java
Show resolved
Hide resolved
...mos-encryption/src/main/java/com/azure/cosmos/encryption/CosmosEncryptionAsyncContainer.java
Show resolved
Hide resolved
...-encryption/src/main/java/com/azure/cosmos/encryption/models/SqlQuerySpecWithEncryption.java
Show resolved
Hide resolved
…b.com:aayush3011/azure-sdk-for-java into users/akataria/AddEncryptionIdAndPartitionKey
Comments have been resolved
Description
If an SDK is being regenerated based on a new swagger spec, a link to the pull request containing these swagger spec changes has been included above.
.Net PRs:
All SDK Contribution checklist:
General Guidelines and Best Practices
Testing Guidelines