Skip to content

Opensearch ssl_version #199

Closed
Closed
@jamesfisher-geo

Description

@jamesfisher-geo

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):

  • OpenSearch Version: 7.10.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions