Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-4179

Authenticate to mongo ATLAS using AWS IAM role, defined in AWS_ROLE_ARN environment variable, instead of role defined in instance metadata

    • Type: Icon: Improvement Improvement
    • Resolution: Duplicate
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: 4.3.0
    • Component/s: Authentication
    • Labels:
    • Environment:
      AWS EKS

      In an application running in AWW EKS, when trying to authenticate to mongo atlas using an AWS IAM Role, the driver should try to get the temporary credentials using the role defined in the environment variable AWS_ROLE_ARN, before getting the temporary credentials using the instance metadata.

      This is useful when running an application in AWS EKS, where an AWS IAM Role can be defined for a specific container. In that case the mongo java driver will use this role to get the temporary credentials instead of getting the temporary credentials from the EKS worker node instance metadata.

            Assignee:
            Unassigned Unassigned
            Reporter:
            skouassi@regmail.west.com Stephane Kouassi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: