Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow insecure HTTPS #2491

Open
dodie opened this issue May 2, 2024 · 1 comment
Open

Allow insecure HTTPS #2491

dodie opened this issue May 2, 2024 · 1 comment

Comments

@dodie
Copy link

dodie commented May 2, 2024

Problem Description

When I try to connect to an Elasticsearch cluster with HTTPS, it is only possible to do so with a certificate with valid CA that is set up via the ca_certs configuration option. In my case, the target Elasticsearch is a test instance used for trials only, but it only accepts HTTPS traffic. For ad-hoc tests it would be convenient to access it without verifying the certificates. (Similarly to how curl can be used with the --insecure flag.)

Proposed Solution

Allow setting the verify_certs property via the connector config.yml, e.g.:

connectors:
-
  ...

elasticsearch:
  host: "https://<ES_HOST>:9200"
  verify_certs: false    # Defaults to true
  api_key: "..."

Additional Context

As workaround to allow insecure access via HTTPS, one might locally change the following flag to False:

options["verify_certs"] = True

@dodie dodie added the enhancement New feature or request label May 2, 2024
@Goldini500
Copy link

We are currently facing the exact same issue.
Unfortunately changing options["verify_certs"] to "False" and then rebuilding the container does not change anything.

We are getting the same issue:

[FMWK][15:44:34][INFO] Waiting for Elasticsearch at https://elasticsearch-test-cluster-es-http.mgt.svc:9200 (so far: 1 secs)
[FMWK][15:44:34][ERROR] Could not connect to the Elasticsearch server
[FMWK][15:44:34][ERROR] Cannot connect to host elasticsearch-test-cluster-es-http.mgt.svc:9200 ssl:True
[SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate (_ssl.c:1007)')]

@dodie is this working for you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants