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

KMS message should error if no AWS credentials are set

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None

    Description

      In kms-message, calling kms_request_get_signed without setting AWS credentials should fail but doesn't. kms-message doesn't error but gives you a malformed request. We should set an error on the passed kms_request_t (using KMS_ERROR) and return NULL. Let's add a test in test_kms_request.c to verify the behavior.

      It may be worthwhile to have other functions in kms-message fail as well.

      Attachments

        Activity

          People

            clyde.bazile@mongodb.com Clyde Bazile III (Inactive)
            kevin.albertson@mongodb.com Kevin Albertson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: