Flaky: AWS Auth With SDK Installed [2]

XMLWordPrintableJSON

    • Not Needed
    • None
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?
    • None
    • None
    • None
    • None
    • None
    • None

      https://evergreen.mongodb.com/task_log_raw/mongo_node_driver_next_ubuntu2004_test_mongodb_aws_aws_latest_auth_test_run_aws_auth_test_with_assume_role_credentials_27840b8f00f8aa1dc5e53dd991bab5a185fc4ce8_75c01e57abc470e785838d3c6dd0a8c0_25_07_17_14_32_08/0?type=T

       

       [2025/07/18 02:09:23.170]   1) AWS KMS Credential Fetching
       [2025/07/18 02:09:23.170]        when the AWS SDK is installed
       [2025/07/18 02:09:23.170]          does not return any extra keys for the `aws` credential provider:
       [2025/07/18 02:09:23.170]      MongoAWSError: Could not load credentials from any providers
       [2025/07/18 02:09:23.170]       at AWSSDKCredentialProvider.getCredentials (src/cmap/auth/aws_temporary_credentials.ts:52:6)
       [2025/07/18 02:09:23.170]       at processTicksAndRejections (node:internal/process/task_queues:105:5)
       [2025/07/18 02:09:23.170]       at async loadAWSCredentials (src/client-side-encryption/providers/aws.ts:9:4)
       [2025/07/18 02:09:23.170]       at async refreshKMSCredentials (src/client-side-encryption/providers/index.ts:170:4)
       [2025/07/18 02:09:23.170]       at async Context.<anonymous> (test/integration/auth/mongodb_aws.test.ts:503:23)
       [2025/07/18 02:09:23.170]      Caused by: CredentialsProviderError: Could not load credentials from any providers
       [2025/07/18 02:09:23.170]       at /data/mci/f7a6bee96e9f5bfb296c908297103c7c/src/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js:129:13
       [2025/07/18 02:09:23.170]       at /data/mci/f7a6bee96e9f5bfb296c908297103c7c/src/node_modules/@smithy/property-provider/dist-cjs/index.js:99:33
       [2025/07/18 02:09:23.170]       at processTicksAndRejections (node:internal/process/task_queues:105:5)
       [2025/07/18 02:09:23.170]       at async coalesceProvider (node_modules/@smithy/property-provider/dist-cjs/index.js:126:18)
       [2025/07/18 02:09:23.170]       at async AWSSDKCredentialProvider._provider (node_modules/@smithy/property-provider/dist-cjs/index.js:144:18)
       [2025/07/18 02:09:23.170]       at async AWSSDKCredentialProvider.getCredentials (src/cmap/auth/aws_temporary_credentials.ts:52:6)
       [2025/07/18 02:09:23.170]       at async loadAWSCredentials (src/client-side-encryption/providers/aws.ts:9:4)
       [2025/07/18 02:09:23.170]       at async refreshKMSCredentials (src/client-side-encryption/providers/index.ts:170:4)
       [2025/07/18 02:09:23.170]       at async Context.<anonymous> (test/integration/auth/mongodb_aws.test.ts:503:23)

              Assignee:
              Unassigned
              Reporter:
              Durran Jordan
              None
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: