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
Issue fork elasticsearch_connector-3229732
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
nick_schuch CreditAttribution: nick_schuch commentedPull request submitted
Comment #4
lebster CreditAttribution: lebster commentedHey, thanks, anyway I think that you don't really need special field for this, because it is easy forgot about this when you do export site configuration.
You could use hook_elasticsearch_connector_load_library_options_alter to make necessay change, like this:
You could control
site_env
setting via settings.local.php, like:I have tested this solution with a real ElasticSearch cluster running on AWS.
Comment #5
nick_schuch CreditAttribution: nick_schuch commentedSounds great. I like the approach.
Comment #6
sokru CreditAttribution: sokru as a volunteer commentedI think it would be nice to add the code snippet on
elasticsearch_connector.api.php
on relevant hook with some description.