Uploaded image for project: 'Drivers'
  1. Drivers
  2. DRIVERS-2311

Provide FLE 2.0 API example for docs team

    • Needed
    • Hide

      Add example code for FLE 2 Automatic Encryption:

      • Create an encryptedFieldsMap with an indexed and unindexed field.
      • Create an FLE 2 collection.
      • Auto encrypt an insert and find with "Indexed" and "Unindexed" encrypted fields.

      Please use the example in the Go driver as a reference.

      Provide a link to the specification test: Explicit Encryption.

      Show
      Add example code for FLE 2 Automatic Encryption: Create an encryptedFieldsMap with an indexed and unindexed field. Create an FLE 2 collection. Auto encrypt an insert and find with "Indexed" and "Unindexed" encrypted fields. Please use the example in the Go driver as a reference. Provide a link to the specification test: Explicit Encryption .
    • $i18n.getText("admin.common.words.hide")
      Key Status/Resolution FixVersion
      CDRIVER-4379 Fixed 1.22.0
      CXX-2505 Done 3.8.0
      CSHARP-4164 Fixed 2.17.0
      GODRIVER-2406 Fixed 1.10.0, 1.10.0-beta1
      JAVA-4600 Fixed 4.7.0
      NODE-4227 Fixed 4.8.0
      MOTOR-956 Fixed 3.1
      PYTHON-3253 Fixed 4.2
      PHPLIB-863 Fixed 1.13.0
      RUBY-2986 Fixed 2.18.0
      RUST-1310 Fixed 2.4.0
      SWIFT-1561 Won't Do
      $i18n.getText("admin.common.words.show")
      #scriptField, #scriptField *{ border: 1px solid black; } #scriptField{ border-collapse: collapse; } #scriptField td { text-align: center; /* Center-align text in table cells */ } #scriptField td.key { text-align: left; /* Left-align text in the Key column */ } #scriptField a { text-decoration: none; /* Remove underlines from links */ border: none; /* Remove border from links */ } /* Add green background color to cells with FixVersion */ #scriptField td.hasFixVersion { background-color: #00FF00; /* Green color code */ } /* Center-align the first row headers */ #scriptField th { text-align: center; } Key Status/Resolution FixVersion CDRIVER-4379 Fixed 1.22.0 CXX-2505 Done 3.8.0 CSHARP-4164 Fixed 2.17.0 GODRIVER-2406 Fixed 1.10.0, 1.10.0-beta1 JAVA-4600 Fixed 4.7.0 NODE-4227 Fixed 4.8.0 MOTOR-956 Fixed 3.1 PYTHON-3253 Fixed 4.2 PHPLIB-863 Fixed 1.13.0 RUBY-2986 Fixed 2.18.0 RUST-1310 Fixed 2.4.0 SWIFT-1561 Won't Do

      Summary

      Add example code for FLE 2 Automatic Encryption:

      • Create an encryptedFieldsMap with an indexed and unindexed field.
      • Create an FLE 2 collection.
      • Auto encrypt an insert and find with "Indexed" and "Unindexed" encrypted fields.

      Please use the example in the Go driver as a reference.

      Provide a link to the specification test: Explicit Encryption.

      Background & Motivation

      This is requested from the docs team to give an example of FLE 2 usage to make it easier to write docs examples.

      The example code is not intended to be automatically scraped.
       

            Assignee:
            kevin.albertson@mongodb.com Kevin Albertson
            Reporter:
            martin.bajana@mongodb.com Martin Bajana
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: