Skip to content

Add support for IAM authentication in connection string for DocumentDB source#6418

Open
dcmckay-amzn wants to merge 2 commits intoopensearch-project:mainfrom
dcmckay-amzn:main
Open

Add support for IAM authentication in connection string for DocumentDB source#6418
dcmckay-amzn wants to merge 2 commits intoopensearch-project:mainfrom
dcmckay-amzn:main

Conversation

@dcmckay-amzn
Copy link

@dcmckay-amzn dcmckay-amzn commented Jan 21, 2026

Description

Add support for IAM authentication in connection string for DocumentDB source (AWS docs link) –

  • Adds validation for either providing authentication.username/password OR aws.sts_role_arn in documentdb source configuration
  • Adds new test class for MongoDBSourceConfigTest.java
  • In MongoDBConnection.java, detects authentication mode and creates the required connection string and credential for the MongoClientSettings.Builder during connection creation

Issues Resolved

Resolves #5983

Check List

  • New functionality includes testing.
  • New functionality has a documentation issue. Please link to it in this PR.
    • New functionality has javadoc added (n/a, change to existing functions)
  • Commits are signed with a real name per the DCO

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support IAM Auth for DocumentDB Connections

3 participants