- Newest
- Most votes
- Most comments
When you have SAML authentication enabled for your Amazon OpenSearch Service domain, it can indeed cause complications for JDBC access using internal accounts. This is because SAML authentication is primarily designed for web browser-based access, such as through OpenSearch Dashboards.
For JDBC connections, which typically use basic authentication, you may need to take additional steps:
-
Ensure that fine-grained access control is properly configured on your OpenSearch domain. This allows you to use both SAML for web-based access and internal users for API access.
-
Create an internal master user within OpenSearch's internal user database. This is separate from SAML and allows you to have a username and password combination specifically for OpenSearch.
-
In your JDBC connection string or configuration, make sure you're using the internal master user credentials, not attempting SAML authentication.
-
If you're using security groups or network ACLs, ensure that the necessary ports are open for JDBC connections from your client's IP address.
-
Double-check that the IAM permissions associated with your OpenSearch domain allow for the type of access you're attempting with JDBC.
If you've confirmed all of these and are still having issues, you may need to contact AWS support for further assistance. They can help diagnose any specific configuration issues with your OpenSearch domain that might be preventing JDBC access when SAML is enabled.
Remember, SAML authentication is primarily for OpenSearch Dashboards access through a web browser. For programmatic access like JDBC, you typically need to use IAM authentication or internal user authentication.
Sources
Can i use identity center user or permission sets as master user in amazon opensearch? | AWS re:Post
Build SAML identity federation for Amazon OpenSearch Service domains within a VPC | AWS Big Data Blog
answered a year ago
In fact, we can connect using internal account thru Rest API so I think that our Opensearch is well configurated.
answered a year ago
Relevant content
asked 8 months ago
asked 2 years ago
