[DRIVERS-947] Clarify that auto decryption is not an error on < 4.2 servers Created: 31/Jan/20  Updated: 31/Mar/22

Status: Backlog
Project: Drivers
Component/s: Client Side Encryption
Fix Version/s: None

Type: Spec Change Priority: Minor - P4
Reporter: Kevin Albertson Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Driver Changes: Not Needed

 Description   

The client side encryption spec is a little vague/misleading about whether an error should be raised for automatic decryption (i.e. when bypassAutomaticEncryption is set).

It says:

Drivers MUST raise an error when attempting to auto encrypt a command if the maxWireVersion is less than 8. The error message MUST contain "Auto-encryption requires a minimum MongoDB version of 4.2".

But incorrectly indicates that an error is raised on auto decryption against a pre 4.2 server:

However, errors are only raised for automatic encryption/decryption against older servers

We can also add a spec test to validate that automatic decryption works on pre 4.2 servers.


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