Skip to content

Support the elasticSearch authentication for elasticsearch connector#2311

Closed
ellieshen wants to merge 1 commit intotrinodb:masterfrom
ellieshen:master
Closed

Support the elasticSearch authentication for elasticsearch connector#2311
ellieshen wants to merge 1 commit intotrinodb:masterfrom
ellieshen:master

Conversation

@ellieshen
Copy link
Copy Markdown

Support the elasticsearch authentication for elasticsearch connector(fix issue prestosql#2127) , it worked in our cluster with this fix.

@cla-bot cla-bot bot added the cla-signed label Dec 19, 2019
@martint martint self-requested a review December 26, 2019 18:28
Copy link
Copy Markdown
Member

@martint martint left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for working on this. It's a great start! We should adjust how the configuration is wired and handled, though. Here's how to approach it. It should be implemented like we do for AWS security:

  • There should be another entry in ElasticsearchConfig.Security (e.g., PASSWORD)
  • There should be a separate class to capture the user/password config (e.g., PasswordConfig, similar to AwsSecurityConfig)
  • ElasticSearchConnectorModule should conditionally bind PasswordConfig if security is set to PASSWORD
  • ElasticsearchClient should take an Optional<PasswordConfig> and act accordingly. See how it handles AwsSecurityConfig.

@martint
Copy link
Copy Markdown
Member

martint commented Jan 17, 2020

@ellieshen, let me know if you need any help with this.

@martint
Copy link
Copy Markdown
Member

martint commented Jun 23, 2020

Superseded by #4165

@martint martint closed this Jun 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants