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

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Querying
    • None
    • Query Optimization
    • Fully Compatible
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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."

            Assignee:
            [DO NOT USE] Backlog - Query Optimization
            Reporter:
            Davis Haupt (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: