-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Opensearch connector #19698
base: main
Are you sure you want to change the base?
Opensearch connector #19698
Conversation
The Python checkstyle failed. Please run You can install the pre-commit hooks with |
The Python checkstyle failed. Please run You can install the pre-commit hooks with |
The Python checkstyle failed. Please run You can install the pre-commit hooks with |
The Python checkstyle failed. Please run You can install the pre-commit hooks with |
|
{ | ||
"$id": "https://open-metadata.org/schema/entity/services/connections/search/elasticSearch/basicAuth.json", | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "Basic Authentication", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should use the common basicAuth schema
"description": "Authentication for OpenSearch using AWS IAM credentials", | ||
"type": "object", | ||
"properties": { | ||
"awsAccessKeyId": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should use the common AWS creds schema
http_auth = aws_auth if aws_auth else (basic_auth if basic_auth else api_key) | ||
|
||
return OpenSearch( | ||
str(connection.hostPort), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we might want to use this instead https://github.com/open-metadata/OpenMetadata/blob/main/ingestion/src/metadata/utils/helpers.py#L359
Describe your changes:
Fixes #19697
I worked on ... because ...
Type of change:
Checklist:
Fixes <issue-number>: <short explanation>