stac-utils / stac-fastapi-elasticsearch-opensearch

Elasticsearch backend for stac-fastapi with Opensearch support.
https://stac-utils.github.io/stac-fastapi-elasticsearch-opensearch
MIT License
31 stars 15 forks source link

Opensearch ssl_version #199

Closed jamesfisher-geo closed 9 months ago

jamesfisher-geo commented 9 months ago

Describe the bug It appears that ssl.TLSVersion.TLSv1_3 is not supported in OpenSearch. When connecting to a secured OpenSearch instance, I get an error like

ValueError: invalid or unsupported protocol version 772

Changing config["ssl_version"] to the default, ssl.PROTOCOL_SSLv23, in stac_fastapi/opensearch/stac_fastapi/opensearch/config.py resolves the issue.

To Reproduce Steps to reproduce the behavior:

  1. Connect to a secure OpenSearch instance
  2. See error

Expected behavior Connection to OpenSearch client with no errors

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):