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

Consider Using AWS SDK for Auth

    • Needed
    • Hide

      Need to update the page: https://www.mongodb.com/docs/drivers/node/current/fundamentals/authentication/mechanisms/

      Note under MONGODB-AWS that as of 4.11.0 the driver has an optional dependency on @aws-sdk/credential-providers and if it is installed it will be used for getting credentials from the environment. Can also note that:

      If the optional aws-sdk dependency is installed, the driver will now use the SDK to get credentials
      from the environment. Because of this, if you have a shared AWS credentials or config file, then
      those credentials will be used by default if AWS auth environment variables are not set. To override this
      behavior, set AWS_SHARED_CREDENTIALS_FILE="" in your shell or set the
      equivalent environment variable value in your script or application. Alternatively, you can create
      an AWS profile specifically for your MongoDB credentials and set the AWS_PROFILE environment
      variable to that profile name.

      Show
      Need to update the page: https://www.mongodb.com/docs/drivers/node/current/fundamentals/authentication/mechanisms/ Note under MONGODB-AWS that as of 4.11.0 the driver has an optional dependency on @aws-sdk/credential-providers and if it is installed it will be used for getting credentials from the environment. Can also note that: If the optional aws-sdk dependency is installed, the driver will now use the SDK to get credentials from the environment. Because of this, if you have a shared AWS credentials or config file, then those credentials will be used by default if AWS auth environment variables are not set. To override this behavior, set AWS_SHARED_CREDENTIALS_FILE="" in your shell or set the equivalent environment variable value in your script or application. Alternatively, you can create an AWS profile specifically for your MongoDB credentials and set the AWS_PROFILE environment variable to that profile name.

      This ticket was split from DRIVERS-2475, please see that ticket for a detailed description.

            Assignee:
            durran.jordan@mongodb.com Durran Jordan
            Reporter:
            dbeng-pm-bot PM Bot
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: