pdebelak opened a new issue, #39979: URL: https://github.com/apache/airflow/issues/39979
### Apache Airflow version 2.9.1 ### If "Other Airflow 2 version" selected, which one? _No response_ ### What happened? When leaving the login and password values blank, the opensearch hook passes empty strings to the `http_auth` parameter of opensearch which ends up generating an `Authorization` header with a mostly empty base64 encoded value. ### What you think should happen instead? If no login or password are passed, no `http_auth` argument should be provided. The [elasticsearch provider works in this way](https://github.com/apache/airflow/blob/main/airflow/providers/elasticsearch/hooks/elasticsearch.py#L66-L69). ### How to reproduce Don't set a login or password on an opensearch hook connection and try to use it to connect. ### Operating System Debian GNU/Linux 11 (bullseye) ### Versions of Apache Airflow Providers apache-airflow-providers-opensearch==1.1.2 ### Deployment Official Apache Airflow Helm Chart ### Deployment details _No response_ ### Anything else? _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
