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

Client Encryption: Adds fix to allow partition key path and id to be part of client encryption policy. #30678

Conversation

aayush3011
Copy link
Member

@aayush3011 aayush3011 commented Aug 28, 2022

Description

  • Added support to include partition key path and id during encryption policy creation (only deterministic encryption type) and bumps up the format version.
  • Added support to encrypt the partition key and id during encryption.
  • Updated the encryption SDK version to 2.0.0

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:

  • The pull request does not introduce [breaking changes]
  • CHANGELOG is updated for new features, bug fixes or other significant changes.
  • I have read the contribution guidelines.

General Guidelines and Best Practices

  • Title of the pull request is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

  • Pull request includes test coverage for the included changes.

@kushagraThapar
Copy link
Member

@aayush3011 can you please also link the corresponding .Net PR in this PR description.

*/
@Beta(value = Beta.SinceVersion.V4_14_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING)
public ClientEncryptionPolicy(List<ClientEncryptionIncludedPath> paths, int policyFormatVersion) {
if (policyFormatVersion > 2 || policyFormatVersion < 1) {
Copy link
Member

Choose a reason for hiding this comment

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

I think we can make policyFormatVersion immutable (so that it is initialized only once per ClientEncryptionPolicy).

@aayush3011 aayush3011 requested a review from jeet1995 as a code owner October 31, 2022 17:52
@JonathanGiles
Copy link
Member

@aayush3011 What is the status on this PR?

@ghost ghost added the no-recent-activity There has been no recent activity on this issue. label Feb 10, 2023
@ghost
Copy link

ghost commented Feb 10, 2023

Hi @aayush3011. Thank you for your interest in helping to improve the Azure SDK experience and for your contribution. We've noticed that there hasn't been recent engagement on this pull request. If this is still an active work stream, please let us know by pushing some changes or leaving a comment. Otherwise, we'll close this out in 7 days.

@ghost ghost removed the no-recent-activity There has been no recent activity on this issue. label Feb 16, 2023
@azure-sdk
Copy link
Collaborator

API change check

APIView has identified API level changes in this PR and created following API reviews.

azure-cosmos

@aayush3011 aayush3011 closed this Feb 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants