Skip to content

Client create requires unreasonable privileges #68

@pbudzyns

Description

@pbudzyns

When using ElasticsearchRetriever.from_es_params I am getting cluster level access error because init function is calling es_client.info() method which requires permissions on cluster. It's not always the case, especially in enterprise setup. There should be better ways to test connectivity.

https://elasticsearch-py.readthedocs.io/en/v7.14.1/api.html?highlight=info#elasticsearch.Elasticsearch.info

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