Need a special offer?Find out if your project fits.
+

Connect to OpenSearch DB with basic auth

Answered
Graham McCulloch asked on September 23, 2022

Our Elastic data is in an OpenSearch DB, protected by basic authentication. I'm trying to connect like this but Flexmonster seems to be stripping out the basic auth username and password before sending the request.

report={{
  dataSource: {
    type: 'elasticsearch',
    node: 'https://<username>:<password>@<opensearch-id>.us-east-2.es.amazonaws.com',
    index: '<my-index>'
  }
}}

How can I connect to a data source that requires basic authentication?

2 answers

Public
Graham McCulloch September 23, 2022

Actually - got it working! I hadn't spotted the requestHeaders option.

Public
Solomiia Andrusiv Solomiia Andrusiv Flexmonster September 26, 2022

Hello, Graham!

Thank you for reaching out to us.

We are glad to hear that you have resolved the issue.

Feel free to contact us if any other questions arise.

Regards,
Solomiia

Please login or Register to Submit Answer