elastic / connectors-ruby

Official Connector Clients for Elastic Elasticsearch, Enterprise Search, App Search and Workplace Search
https://www.elastic.co/guide/en/enterprise-search/master/index.html
Other
9 stars 17 forks source link

Make it possible to send headers to Elasticsearch clients from config #502

Closed artem-shelkovnikov closed 1 year ago

artem-shelkovnikov commented 1 year ago

In pursuit of https://github.com/elastic/enterprise-search-team/issues/3553

From SDH https://github.com/elastic/sdh-enterprise-search/issues/1022

On cloud, we now need to pass-through the x-elastic-app-auth header.

This PR is a reflection of Python PR https://github.com/elastic/connectors-python/pull/243 and just makes it possible to specify elasticsearch.headers in config file. These settings are then passed to elasticsearch client when it's initialised.

Checklists

Pre-Review Checklist

Changes Requiring Extra Attention

Related Pull Requests

[<!--List any relevant PRs here or remove the section if this is a standalone PR.

For Elastic Internal Use Only

github-actions[bot] commented 1 year ago

💚 Backport PR(s) successfully created

Status Branch Result
8.5 https://github.com/elastic/connectors-ruby/pull/503
8.6 https://github.com/elastic/connectors-ruby/pull/504

The backport PRs will be merged automatically after passing CI.