elastic / logstash-filter-elastic_integration

The Elastic Integrations filter for Logstash, which enables running Elastic Integrations inside of Logstash pipelines
Other
2 stars 9 forks source link

fix: preemptively send basic auth #127

Closed yaauie closed 9 months ago

yaauie commented 9 months ago

When Elasticsearch is configured to allow anonymous auth, it does not include a challenge header in response to requests, so we cannot rely on the apache http client's auth handling (which is overkill anyway, since an individual Elasticsearch client is not connected to multiple realms).

Instead, we build the http basic auth header ourselves, and register an interceptor to ensure it is added to all requests, similar to how we handle api key auth headers.

elasticmachine commented 9 months ago

:broken_heart: Build Failed

Failed CI Steps

History

yaauie commented 9 months ago

Buildkite failed because it is trying to build against Elasticsearch 8.13's source, but the 8.13 branch has not yet been cut. When building against Elasticsearch 8.11's source (as done in our gradle tasks for building and releasing the artifact), tests succeed.