|
The CSE specification in https://github.com/mongodb/specifications/blob/master/source/client-side-encryption/client-side-encryption.rst#mongoclient-changes requires that MongoClient accepts schema map as an inline map.
Given the expected size of schema maps, which the CSE specification already mentions, it is likely that schema maps will be stored in their own files. Therefore it will be convenient for users to be able to specify path to the schema map rather than load the schema map and pass it inline to MongoClient.
Another instance where files are used are TLS keys and certificates. These are externally generated and are passed without modification by MongoClient to the TLS layer that uses them. Schema maps follow the same pattern of use - they are generated externally to MongoClient and MongoClient passes their contents verbatim to libmongocrypt.
|