Skip to content

Database authorization capability with SSL disabled #387

Closed
@GrzegorzPustulka

Description

@GrzegorzPustulka

Describe the bug
When the environment variable "ES_USE_SSL" is set to false, there is no possibility of authorization, which results in receiving a 401 error every time. This is caused by the fact that in the _es_config() function, if ES_USE_SSL is set to false, a return is executed before adding authorization. I believe we should provide such a possibility. In my case, OpenSearch is behind a VPN, so disabling SSL should slightly improve performance without compromising security.

To Reproduce
Steps to reproduce the behavior:

  1. Setting ES_USE_SSL=false
  2. OpenSearch with authorization, e.g., using username and password
  3. We get a 401 error - no authorization

Expected behavior
Ability to add authentication with SSL disabled.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions