Skip to content

Cannot use Datahub CLI using a remote host with SSL verification #9705

@hpereira98

Description

@hpereira98

Describe the bug
We're not being able to use the Datahub CLI connected to a remote host (defined in ~/.datahubenv file - https://<our remote server>, with the given token). Our host has SSL verification configured and, unlike the sink configurations, we're not allowed to specify the CA certificates in the CLI configuration.

To Reproduce
Steps to reproduce the behavior:

  1. Configure Datahub instance endpoints using datahub init or configuring ~/.datahubenv file.
  2. Try to execute any Datahub CLI commands (e.g. datahub ingest list-runs).

Expected behavior
Commands work correctly if the CA certificate is provided.

Screenshots

SSLError: HTTPSConnectionPool(host='<our host>', port=443): Max retries exceeded with url: /runs?action=list (Caused by SSLError(SSLZeroReturnError(6, 'TLS/SSL connection has been closed (EOF) (_ssl.c:1129)')))

Additional context
A PR was open that seemed to fix the issue (#3964), but was closed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedAn Issue that is confirmed as a bug by the DataHub Maintainers.bugBug report

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions