Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-14207

FLE Code examples are a bit missleading

    XMLWordPrintableJSON

Details

    • 1

    Description

      Description

      Hello,

      For AWS examples there is a python command that does not add up for example:

      client_encryption = pymongo.encryption.ClientEncryption(
         {
           "aws": {
             "accessKeyId": "<IAM User Access Key ID>",
             "secretAccessKey": "<IAM User Secret Access Key>"
           }
         },
         key_vault_namespace,
         client,
         CodecOptions(uuid_representation=STANDARD)
      )
      data_key_id = client_encryption.create_data_key("aws")

      The "client" is never defined no where, and the client_encryption.create_data_key("aws") expects to get actually a master_key parameter, eg:

      data_key_id = client_encryption.create_data_key(kms_provider="aws",master_key = { "region": "eu-west-1","key": "arn:aws:kms:eu-west-1:..."})

      I think those are critical for people to onboard FLE succesfully.

      FYI

      Scope of changes

      As a user, I understand where variables are defined that are used in examples.

      Refer to the companion project and the other languages in the guide for context on this project.

      Impact to Other Docs

      MVP (Work and Date)

      Resources (Scope or Design Docs, Invision, etc.)

      Attachments

        Activity

          People

            kailie.yuan@mongodb.com Kailie Yuan
            pavel.duchovny@mongodb.com Pavel Duchovny
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              2 years, 40 weeks, 4 days ago