Request for IAM authentication with the Spark connector

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Community Answered
    • Priority: Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • 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

      Hi Team,

      There is an ask from the customer for having an AWS IAM authentication enabled with the spark connector for MongoDB. 

      Would like to know, a. If it is possible to use an IAM Authentication URL with MongoDB spark connectors 10.1.1. 

      b. If no, is there any roadmap for this feature to be included?

       

      Example: 

      current Spark Connector:

      spark = SparkSession \

          .builder \

          .appName("myApp") \

          .config("spark.mongodb.read.connection.uri", "mongodb+srv://<username>:<pasword>@<server address>.mongodb.net/<database>.<collection>?retryWrites=true&w=majority") \

          .getOrCreate()

       

      Expected Spark Connector:

      current Spark Connector:

      spark = SparkSession \

          .builder \

          .appName("myApp") \

          .config("spark.mongodb.read.connection.uri", "mongodb+srv://<AWS access key>:<AWS secret key>@s3load.frzascf.mongodb.net/?authSource=%24external&authMechanism=MONGODB-AWS&retryWrites=true&w=majority&authMechanismProperties=AWS_SESSION_TOKEN:<session token (for AWS IAM Roles)>") \

          .getOrCreate()

       

       

              Assignee:
              Prakul Agarwal
              Reporter:
              Babu Srinivasan
              None
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: