[GODRIVER-2648] Mongo FLE keyvault collection has hardcoded majority read and write concern Created: 09/Nov/22  Updated: 15/Nov/22

Status: Backlog
Project: Go Driver
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Unknown
Reporter: Elena Flat Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to DRIVERS-1960 Make read concern and write concern f... Backlog

 Description   

Hello,

currently the key vault has hardcoded majority read and write concern: https://github.com/mongodb/mongo-go-driver/blob/master/mongo/client.go#L40-L46

 

This does not let us run our applications with any other concern, since our applications utilize FLE. Even if the rest of the application uses read local and w=1, the key vault reads will hang indefinitely if a majority read is not currently available.

What is the rationale behind this? Would you be open to allowing a config entry point that would allow to change the read and write concern on the key vault to something else?

 

Thank you,

 

Elena Flat



 Comments   
Comment by Kevin Albertson [ 09/Nov/22 ]

Hello eflat@league.com

Using majority read and write concern is a requirement of the driver specification https://github.com/mongodb/specifications/blob/d268119c9d4354f60e59d2e798c3cb3ee5323a29/source/client-side-encryption/client-side-encryption.rst#key-vault-collection:

For key management functions that require creating, updating, or deleting key documents in the key vault collection, the corresponding operations MUST be done with write concern majority.

For encryption/decryption and key management functions that require reading key documents from the key vault collection, the corresponding operations MUST be done with read concern majority.

DRIVERS-1960 tracks the request to make it configurable. Please watch that ticket for updates.

 

 

Generated at Thu Feb 08 08:39:05 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.