dehub

command module
v0.4.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 17, 2024 License: MIT Imports: 23 Imported by: 0

README

Overview

A lightweight and secure debugging lib for remote process. Especially useful for debugging a service that you can deploy code to but you don't have direct access to, such as as k8s pod, github workflow, etc.

Features:

  • Execute and attach to random CLI command on remote machine.
  • Forward socks5 proxy on remote.
  • Mount a remote directory to local with NFS.
  • Uses the golang.org/x/crypt/ssh to establish secure connections.
  • Hub server can be an endpoint of a http server.
  • Servant can run behind a firewall.
flowchart LR
    M[Master Client]
    S[Servant Client]

    subgraph Cluster
        H1[Hub Server 01]
        H2[Hub Server 02]
    end

    S ---> H2
    M --> H1
    H1 -- relay --> H2

Because Master and Servant uses public key to communicate, the Hub server can be a untrusted server.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
lib

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL