Skip to content

Python: Add CMK support to create Index#4949

Merged
moonbox3 merged 11 commits intomicrosoft:mainfrom
charotAmine:python-cmk
Feb 9, 2024
Merged

Python: Add CMK support to create Index#4949
moonbox3 merged 11 commits intomicrosoft:mainfrom
charotAmine:python-cmk

Conversation

@charotAmine
Copy link
Contributor

@charotAmine charotAmine commented Feb 9, 2024

Motivation and Context

Thank you for your contribution to the semantic-kernel repo!
Please help reviewers and future users, providing the following information:

  1. Why is this change required?
    When we try to create an index in AI Search where the encryption is enabled we have this issue :
    Code: OperationNotAllowed
    Message: The creation of non-encrypted Indexes is not alowed when encryption policy is enforced.
    Which make the operation create_collection unusable
  2. What problem does it solve?
    Use create_collection function
  3. What scenario does it contribute to?
    If the customer uses the CMK for the encryption
  4. If it fixes an open issue, please link to the issue here.

Description

The Azure Search Documents supports the encryption key with the class SearchResourceEncryptionKey, adding it (Free to the customer to use it or not) resolve the issue.
Maybe it may be use it in save_information function as well ?

Contribution Checklist

@charotAmine charotAmine requested a review from a team as a code owner February 9, 2024 10:54
@shawncal shawncal added python Pull requests for the Python Semantic Kernel memory labels Feb 9, 2024
Copy link
Collaborator

@moonbox3 moonbox3 left a comment

Choose a reason for hiding this comment

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

LGTM

@moonbox3 moonbox3 added this pull request to the merge queue Feb 9, 2024
Merged via the queue into microsoft:main with commit 6ab4fb2 Feb 9, 2024
@moonbox3
Copy link
Collaborator

moonbox3 commented Feb 9, 2024

@charotAmine your change went in just in time for the latest release. Thank you for your contribution!

eavanvalkenburg pushed a commit to eavanvalkenburg/semantic-kernel that referenced this pull request Feb 12, 2024
### Motivation and Context

Thank you for your contribution to the semantic-kernel repo!
Please help reviewers and future users, providing the following
information:
  1. Why is this change required?
When we try to create an index in AI Search where the encryption is
enabled we have this issue :
        Code: OperationNotAllowed
Message: The creation of non-encrypted Indexes is not alowed when
encryption policy is enforced.
      Which make the operation create_collection unusable
  2. What problem does it solve?
      Use create_collection function
  3. What scenario does it contribute to?
      If the customer uses the CMK for the encryption
  4. If it fixes an open issue, please link to the issue here.

### Description

The Azure Search Documents supports the encryption key with the class
SearchResourceEncryptionKey, adding it (Free to the customer to use it
or not) resolve the issue.
Maybe it may be use it in save_information function as well ?

### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [X] The code builds clean without any errors or warnings
- [X] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [X] All unit tests pass, and I have added new tests where possible
- [X] I didn't break anyone 😄

---------

Co-authored-by: Evan Mattson <35585003+moonbox3@users.noreply.github.com>
Bryan-Roe pushed a commit to Bryan-Roe-ai/semantic-kernel that referenced this pull request Oct 6, 2024
### Motivation and Context

Thank you for your contribution to the semantic-kernel repo!
Please help reviewers and future users, providing the following
information:
  1. Why is this change required?
When we try to create an index in AI Search where the encryption is
enabled we have this issue :
        Code: OperationNotAllowed
Message: The creation of non-encrypted Indexes is not alowed when
encryption policy is enforced.
      Which make the operation create_collection unusable
  2. What problem does it solve?
      Use create_collection function
  3. What scenario does it contribute to?
      If the customer uses the CMK for the encryption
  4. If it fixes an open issue, please link to the issue here.

### Description

The Azure Search Documents supports the encryption key with the class
SearchResourceEncryptionKey, adding it (Free to the customer to use it
or not) resolve the issue.
Maybe it may be use it in save_information function as well ?

### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [X] The code builds clean without any errors or warnings
- [X] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [X] All unit tests pass, and I have added new tests where possible
- [X] I didn't break anyone 😄

---------

Co-authored-by: Evan Mattson <35585003+moonbox3@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

memory python Pull requests for the Python Semantic Kernel

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants