Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-5616 Cache the AWS credentials provider in the MONGODB-AWS auth logic
  3. NODE-5939

Implement 6.x: Cache the AWS credentials provider in the MONGODB-AWS auth logic

    • Type: Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 6.4.0
    • Affects Version/s: None
    • Component/s: None
    • 0
    • Not Needed
    • v5.x
    • Hide

      Create a copy of the Kickoff Template with the issue key (NODE-XXX) in the filename and share a link to the new doc via this field.

      Show
      Create a copy of the Kickoff Template with the issue key (NODE-XXX) in the filename and share a link to the new doc via this field.
    • Not Needed
    • 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?

      Use Case

      As a... engineer
      I want... to store the AWS provider per client
      So that... it uses the native AWS ASK cashing feature and prevents overwhelming the auth endpoint

      Acceptance Criteria

      Implementation Requirements

      • Refactor AUTH_PROVIDERS to have factory functions instead of creating providers
      • Create Provider on MongoClient
      • Store AWS SDK provider on the MongoDBAWS AuthProvider instance
      • Providers must be stateless

      Testing Requirements

      • See the STS test that spies on the fromNodeProviderChain, assert that we only call it once even when making more than one connection

            Assignee:
            alena.khineika@mongodb.com Alena Khineika
            Reporter:
            alena.khineika@mongodb.com Alena Khineika
            Durran Jordan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: