[MONGOCRYPT-329] Spring FLE POC Created: 09/Aug/21 Updated: 20/Oct/21 Resolved: 19/Aug/21 |
|
| Status: | Closed |
| Project: | Libmongocrypt |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Unknown |
| Reporter: | Rachelle Palmer | Assignee: | Kevin Albertson |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
Scope Write a POC to allow lazily supplying encryption schemas to libmongocrypt. This must enable driver API like the following:
|
| Comments |
| Comment by Kevin Albertson [ 19/Aug/21 ] | ||
|
I considered two solutions. 1. The driver lazily passes a schema into libmongocrypt when the first operation occurs on collection "foo" and the state machine enters the MONGOCRYPT_CTX_NEED_COLLINFO state. 2. Allow libmongocrypt to set additional schemas by repeated calls to mongocrypt_setopt_schemamap I chose to implement option 2 with the C driver. The syntax looks like the following:
A branch of mongodb/mongo-c-driver containing the POC and an integration test is located here: An integration test of lazily setting a collection schema and performing automatic encryption is located here: A branch of mongodb/libmongocrypt containing the required libmongocrypt changes is located here:
|