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

GODRIVER-3038 Apply CSE to IndexView operations #1636

Merged
merged 5 commits into from May 21, 2024

Conversation

prestonvasquez
Copy link
Collaborator

GODRIVER-3038

Summary

Add FLE support to IndexView.List and IndexView.Crypt

Background & Motivation

@mongodb-drivers-pr-bot mongodb-drivers-pr-bot bot added the priority-3-low Low Priority PR for Review label May 10, 2024
Copy link

API Change Report

No changes found!

})
}

func TestFLEIndexView(t *testing.T) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@kevinAlbs Would this be a good candidate as an optional FLE prose test for drivers that support index view?

Copy link
Contributor

Choose a reason for hiding this comment

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

libmongocrypt bypasses listIndexes and dropIndexes. The commands are returned as-is since the commands are not expected to contain values needing encryption.

I still agree with this PR. I think it is slightly preferable to process these commands with libmongocrypt for consistency with other commands. But I expect it is not strictly necessary, since the caller would not observe a difference when processing with libmongocrypt.

Since I expect is no observable behavior difference when processing listIndexes and dropIndexes with libmongocrypt, and a prose test may rely on private API that is not consistent among all drivers, I recommend against pursuing a prose test for all drivers.

kevinAlbs
kevinAlbs previously approved these changes May 13, 2024
})
}

func TestFLEIndexView(t *testing.T) {
Copy link
Contributor

Choose a reason for hiding this comment

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

libmongocrypt bypasses listIndexes and dropIndexes. The commands are returned as-is since the commands are not expected to contain values needing encryption.

I still agree with this PR. I think it is slightly preferable to process these commands with libmongocrypt for consistency with other commands. But I expect it is not strictly necessary, since the caller would not observe a difference when processing with libmongocrypt.

Since I expect is no observable behavior difference when processing listIndexes and dropIndexes with libmongocrypt, and a prose test may rely on private API that is not consistent among all drivers, I recommend against pursuing a prose test for all drivers.

qingyang-hu
qingyang-hu previously approved these changes May 16, 2024
Copy link
Collaborator

@qingyang-hu qingyang-hu left a comment

Choose a reason for hiding this comment

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

👍

@prestonvasquez prestonvasquez merged commit a18e483 into mongodb:master May 21, 2024
20 of 27 checks passed
@prestonvasquez prestonvasquez deleted the GODRIVER-3038 branch May 21, 2024 21:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority-3-low Low Priority PR for Review
Projects
None yet
3 participants