Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-5453

Improve field encryption usability with attributes/API

    • Type: Icon: New Feature New Feature
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • Dotnet Drivers
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?
    • None
    • None
    • None
    • None
    • None
    • None

      If you wish to use CSFLE with MongoDB C# today you need to manually generate a schema which is then attached to the MongoClient in order that the fields are correctly encrypted and decrypted.

      We should consider a new FieldEncryption attribute that optionally takes:

      • a data key (GUID)
      • A BSON type for storage
      • an AES encryption enum to determine RANDOM or DETERMINISTIC

      We should also consider whether we want to have attributes and/or an API in order to set the data key at a higher level (e.g. collection) in order to reduce repetition.

            Assignee:
            ferdinando.papale@mongodb.com Ferdinando Papale
            Reporter:
            damien.guard@mongodb.com Damien Guard
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: