Skip to content

More options for elasticsearch config #4059

Open
@CvekCoding

Description

@CvekCoding

Description
I have a case when I need to tune some elastic client settings - my cloud provider require to use https (which is ok), but it uses self-signed ca-certificate. Default behavior of elasticsearch client to skip this type of connection. So I need to have a way to tune this connection.
I believe there are more cases when we need to have a way to fine tune elasticsearch client library. So I propose to add an options key to elastic config.
Example

# src/config/packages/api_platform.yaml
api_platform:
    elasticsearch:
        hosts: ['%env(ELASTICSEARCH_HOST)%']
        options:
            sslVerification: '%env(resolve:ELASTICSEARCH_CA_ROOT)%'

We need only a few changes to implement it. I can create a merge request for this.
WDYT?

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