Skip to content

Comments

feat: Elasticsearch access via API Key#13167

Open
leonardlin wants to merge 1 commit intoinfiniflow:mainfrom
peoplegeist:main
Open

feat: Elasticsearch access via API Key#13167
leonardlin wants to merge 1 commit intoinfiniflow:mainfrom
peoplegeist:main

Conversation

@leonardlin
Copy link

What problem does this PR solve?

As requested: #10321

Elasticsearch configuration uses username/password.
In order to use external / cloud hosted elasticsearch, we need to enable API-Key based authentication.

Following changes:
Adds ELASTIC_API_KEY as configuration
Connection Pool checks if APIKey is present and tries to use it
HelmChart allows to disable the elasticsearch deployment

Type of change

  • Bug Fix (non-breaking change which fixes an issue)
  • [ X ] New Feature (non-breaking change which adds functionality)
  • Documentation Update
  • Refactoring
  • Performance Improvement
  • Other (please describe):

@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. 💞 feature Feature request, pull request that fullfill a new feature. labels Feb 18, 2026
@leonardlin
Copy link
Author

@Magicbook1108 @KevinHuSh this is the updated PR

fixed local configuration

feat: Elasticsearch access via API Key: reverse testconfig

feat: Elasticsearch access via API Key: reverse testconfig
@kowkowhuang
Copy link

Exactly what's the point of Basic Auth when the Elastic Cloud provided default API is based on endpoint + API Key? Shockingly bad decision to build something with basic auth.

@click.option("--es-user", default=None, help="Elasticsearch username")
@click.option("--es-password", default=None, help="Elasticsearch password")

Can I plase also request you do NOT default the endpoint of ES cloud to 9200 pls? The ES cloud's default provided port is 443 not 9200

@click.option("--es-port", default=9200, type=int, help="Elasticsearch port")

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

Labels

💞 feature Feature request, pull request that fullfill a new feature. size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants