Skip to content

Support connecting to Cumulocity using its IP and custom HTTP and MQTT ports #1834

@albinsuresh

Description

@albinsuresh

Is your feature request related to a problem? Please describe.

Thin-Edge can not connect to a Cumulocity instance if the HTTPS and MQTTS ports exposed by it are different from the default ones (443 and 8883 respectively). It's not easy to connect to Cumulocity via its IP either, without using custom DNS entries, as c8y.url doesn't support IP addresses either.

The tedge config set command supports any String value as c8y.url including an IP address. But, you won't be able to connect to c8y with tedge connect or upload the certificate with tedge cert upload etc. These commands will fail to parse the IP address as a URL and fail with errors like this:

Error: failed to connect Cumulocity cloud.

Caused by:
    0: Provided endpoint url is not valid, provide valid url.
       relative URL without a base
    1: relative URL without a base

Describe the solution you'd like

Accept IP addresses as c8y.url and additionally support c8y.http.port and c8y.mqtt.port for HTTP and MQTT ports that may default to 443 and 8883 respectively.

Describe alternatives you've considered

For the c8y.url not accepting IP addresses, a user can create a local DNS entry on the thin-edge device for a dummy domain name pointing to that Cumulocity instance IP. But for different HTTP and MQTT ports, there are no workarounds available.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ideaideas/opportunities/feature requests which need to be further investigated before implementationtheme:c8yTheme: Cumulocity related topicstheme:mqttTheme: mqtt and mosquitto related topics

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions