Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-2409

Allow local.key KMS provider option to be specified as either bytes or a base64-encoded string

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • pymongocrypt-1.1
    • Affects Version/s: None
    • Component/s: None
    • None

      The spec now allows users to specify local.key as a byte array OR as the equivalent base64-encoded representation.


      ORIGINAL DESCRIPTION

      We now pass the KMS providers map as a BSON-encoded document to the libmongocrypt binary. The endpoint that accepts this map expects local.key to either be a base64-encoded string field or a BSON Binary field. Since there is no way to express a BSON binary value in Python 2 without importing bson.binary.Binary, as a workaround on Python 2 we instead encode the bytes as a base64 encoded string.

      These changes were introduced in PYTHON-2371 (https://github.com/mongodb/libmongocrypt/pull/125)

      We need to test this behavior.

            Assignee:
            prashant.mital Prashant Mital (Inactive)
            Reporter:
            prashant.mital Prashant Mital (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: