Skip to content

Opensearch hook passes auth even if login and password are blank #39979

Description

@pdebelak

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.

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?

  • Yes I am willing to submit a PR!

Code of Conduct

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions