Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-42066

[FLE] Replacement style update with randomly encrypted field with JSONPointer keyID should be allowed

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Querying
    • None
    • Query Optimization
    • Fully Compatible

    Description

      With this schema:

      {
              type: "object",
              properties: {
                  foo: {
                      encrypt: {
                          algorithm: "AEAD_AES_256_CBC_HMAC_SHA_512-Random",
                          keyId: "/key",
                          bsonType: "int"
                      }
                  }
              }
          }
      

      This update should pass:

      {q: {}, u: {foo: NumberInt(6), key: "hello"}}
      

      Since all the information necessary for encrypting the literal is included in the replacement-style update (as it would in an insert).

      But instead it fails with code 51093 and error message "A non-static (JSONPointer) keyId is not supported."

      Attachments

        Activity

          People

            backlog-query-optimization Backlog - Query Optimization
            davis.haupt@mongodb.com Davis Haupt (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: