Uploaded image for project: 'Libmongocrypt'
  1. Libmongocrypt
  2. MONGOCRYPT-90

Simplify the find filter for datakeys

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None

    Description

      When a mongocrypt_ctx_t is in the state MONGOCRYPT_CTX_NEED_MONGO_KEYS, the context provides a filter to query the key vault collection.

      Currently, this filter will include an empty $in array for _id or keyAltNames in cases that one isn't necessary. E.g.

      {"$or": [{"_id": {"$in": [ UUID(...) ] }}, {"keyAltName": {"$in": []}}]}
      

      Instead, in cases where we have one or the other empty, we should simplify the filter:

      {"_id": {"$in": [ UUID(...) ] }}}
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            kevin.albertson@mongodb.com Kevin Albertson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: