Skip to content

Releases: Cumulocity-IoT/cumulocity-remote-access-local-proxy

v2.5.0

06 Feb 08:53
41262eb
Compare
Choose a tag to compare

What's Changed

Full Changelog: v2.4.1...v2.5.0

v2.4.1

27 Mar 20:54
cf4ab65
Compare
Choose a tag to compare

What's Changed

Full Changelog: v2.4.0...v2.4.1

v2.4.0

01 Feb 15:48
a7e9288
Compare
Choose a tag to compare

What's Changed

  • Fallback to first PASSTHROUGH config when no matches found. #102

    If the the PASSTHROUGH configuration endpoint name does not match the given name, then it will use the first passthrough endpoint (if any). In this case it will also warn the user that the name is potentially wrong. In most cases this "guess" should be good enough, as it only affects devices with more than 1 passthrough endpoint.

    Example
    If you specify the incorrect --config <name>, then everything should still work fine. It will fail if there are no passthrough endpoints.

    # This will fallback to the first available passthrough config on the device
    c8ylp connect ssh TST-import_commutative_width --ssh-user docker --config ThisNameIsWrong

Full Changelog: v2.3.0...v2.4.0

v2.3.0

24 Oct 21:22
Compare
Choose a tag to compare

What's Changed

  • Support stdin-/out forwarding by @gillima in #81

    Support stdin/out forwarding to the Cumulocity server it can be used directly as a ssh ProxyCommand without the need of starting a local TCP server and using socat. This method works for both, windows and unix.

    Example

    ssh -o 'ProxyCommand=c8ylp server <device> --stdio --env-file .env' <device_username>@<device>

    By adding the proxy command to the .ssh/config file, the usage of the Cumulocity server can be simplified even more.

    The file allows to define user and environment file so the connection can be done by simply typing ssh <device>.

    For this use the following example configuration (%n will be replaced by ssh with the given device name):

    Host <device>
        User <device_username>
        PreferredAuthentications publickey
        IdentityFile <identify_file>
        ServerAliveInterval 120
        StrictHostKeyChecking no
        UserKnownHostsFile /dev/null
        ProxyCommand c8ylp server %n --stdio --env-file .env
    
    # Or you can create a generic ssh config for all devices with a similar prefix:
    # Usage;
    #   => ssh linux-device01
    #   => ssh linux-device02
    Host linux-*
        User admin
        PreferredAuthentications publickey
        IdentityFile ~/.ssh/myprivatekey
        ServerAliveInterval 120
        StrictHostKeyChecking no
        UserKnownHostsFile /dev/null
        ProxyCommand c8ylp server %n --stdio --env-file .env
  • chore: improve integration test compatibility to make it possible to run on MacOS. #85

  • chore: upgrade dependencies. #78, #82, #84, #87

New Contributors

Full Changelog: v2.2.0...v2.3.0

v2.2.0

12 Apr 11:21
Compare
Choose a tag to compare

What's Changed

  • feat: Unix only - Support starting a proxy using a Unix socket server (instead of a local tcp server) @mortbauer in #60

    Example

    # Start c8ylp proxy server which uses a unix socket instead of a tcp server
    c8ylp server <device> --env-file .env --socket-path /tmp/device.socket
    
    # Use ssh with proxy command (requires socat)
    ssh -o 'ProxyCommand=socat - UNIX-CLIENT:/tmp/device.socket' <device_username>@localhost
  • chore: update project dependencies (including dev) by @reubenmiller in #63

New Contributors

Full Changelog: v2.1.4...v2.2.0

v2.1.4

17 Mar 20:16
Compare
Choose a tag to compare

What's Changed

Fixes

  • c8y connect ssh supports reading the --ssh-user values from the C8YLP_SSH_USER environment variable

Full Changelog: v2.1.3...v2.1.4

v2.1.3

24 Feb 14:18
Compare
Choose a tag to compare

What's Changed

Fixes

  • Remove duplicated -t shorthand option for the --token option. Fixes #45
  • Add new option to disable storage of token in an dotenv file using --no-store-token (opposite of the existing --store-token option). Previously there was not a way to disable it using a flag

Full Changelog: v2.1.2...v2.1.3

v2.1.2

16 Feb 09:51
Compare
Choose a tag to compare

Fixes

  • fix: Only display deprecation warning for reconnects option when it is used.

Full Changelog: v2.1.1...v2.1.2

v2.1.1

16 Feb 09:31
Compare
Choose a tag to compare

Fixes

  • fix: Added deprecation mark on reconnects option which was removed during an erroneous merge

Full Changelog: v2.1.0...v2.1.1

v2.1.0

16 Feb 09:26
Compare
Choose a tag to compare

Fixes

  • fix: Shutdown websocket when the tcp client terminates. #38
  • fix: Mark --reconnects option as deprecated, it will be removed in the next major release. The reconnect logic websocket has been removed as attempting a reconnect after the client has been connected once causes problems with different servers. #40
  • build: update dev dependencies

Full Changelog: v2.0.4...v2.1.0