Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-5781

When using AWS IAM authentication without @aws-sdk/credential-providers installed, driver returns empty role name

      When fetching role names using fall-back method of fetching AWS credentials, constructed API endpoint duplicates slashes in API path resulting in empty role name being returned.

      Use Case

      As a... user of AWS IAM authentication
      I want... to be able to correctly fetch role names without installing a peer dependency
      So that... I can authenticate easily

      User Impact

      • At least one (HELP-53167)

      Dependencies

      • N/A

      Unknowns

      • None

      Acceptance Criteria

      Implementation Requirements

      • deduplicate slashes in constructed API paths in src/cmap/auth/mongodb_aws.ts

      Testing Requirements

      • Add unit tests to verify that constructed API paths do not have duplicated slashes

      Documentation Requirements

      • None

      Follow Up Requirements

      • File ticket to add integration test coverage for these code paths

            Assignee:
            Unassigned Unassigned
            Reporter:
            warren.james@mongodb.com Warren James
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: