Allow Insecure Connections for Testing

Created on 25 August 2021, almost 4 years ago
Updated 6 May 2025, 2 months ago

Problem/Motivation

Developers rarely have access to signed certificates on their local environment when developing/testing.

OpenDistro ships Docker images with self signed certificates to help with local development.

https://hub.docker.com/r/amazon/opendistro-for-elasticsearch

eg.

curl -XGET https://localhost:9200 -u admin:admin --insecure

This module can work with these types of setups if we allow developers to toggle on insecure connections.

Steps to reproduce

* Run the Docker image in the above example
* Configure this module to connect
* Try to index content

Proposed resolution

Add a cluster config which allows "insecure" connections.

Remaining tasks

* Add a field to the form
* Update the client manager to handle this type of connection

User interface changes

A new toggle in the cluster configuration form.

API changes

N/A

Data model changes

N/A

✨ Feature request
Status

Needs work

Version

7.0

Component

Code

Created by

πŸ‡¦πŸ‡ΊAustralia nick_schuch

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • First commit to issue fork.
  • πŸ‡ΊπŸ‡ΈUnited States jsutta United States

    While testing the code in the merge request I experienced the following:

    Warning: Undefined array key "insecure" in Drupal\elasticsearch_connector\ElasticSearch\ClientManager->getClientForCluster() (line 63 of /var/www/html/web/modules/contrib/elasticsearch_connector/src/ElasticSearch/ClientManager.php) 
    

    I resolved it and added the updated code to the merge request.

Production build 0.71.5 2024