Documentation
¶
Overview ¶
Command holt is the operator CLI for a reverse-tunnel hub: run the hub, enroll peers, and manage live tunnels. Peers authenticate with a JWT and the tunnel transport is encrypted with the hub's self-signed certificate, which the client pins.
The peer side is a separate program — see cmd/starter-client, or write your own; both consume the enroll token.
holt hub # run the hub holt enroll <peer> # mint a join token for a peer holt renew # regenerate the hub cert (invalidates tokens) holt expose <addr> --token … # expose a local HTTP service through the hub holt ls # list live tunnels holt kill <peer> # disconnect a tunnel (peer may reconnect) holt block <peer> # disconnect + ban the peer id holt unblock <peer> # lift a block
Directories
¶
| Path | Synopsis |
|---|---|
|
internal
|
|
|
clog
Package clog builds the CLI logger.
|
Package clog builds the CLI logger. |
|
config
Package config loads the operator CLI's connection profiles, used by the admin commands to reach a remote hub (e.g.
|
Package config loads the operator CLI's connection profiles, used by the admin commands to reach a remote hub (e.g. |
|
jwtauth
Package jwtauth issues and verifies the HMAC-SHA256 JWTs peers present when attaching to the hub.
|
Package jwtauth issues and verifies the HMAC-SHA256 JWTs peers present when attaching to the hub. |
|
selfsigned
Package selfsigned generates and persists the hub's self-signed TLS certificate — used to encrypt the tunnel transport — and its JWT secret, as files in the config folder.
|
Package selfsigned generates and persists the hub's self-signed TLS certificate — used to encrypt the tunnel transport — and its JWT secret, as files in the config folder. |
|
store
Package store is the hub's durable non-secret state: a single SQLite database under the config directory (~/.holt/holt.db).
|
Package store is the hub's durable non-secret state: a single SQLite database under the config directory (~/.holt/holt.db). |
|
style
Package style is the CLI's small output vocabulary: a success mark, a dim note, and a bordered table.
|
Package style is the CLI's small output vocabulary: a success mark, a dim note, and a bordered table. |
|
token
Package token is the copy-paste enrollment token that carries everything a peer needs to join: the hub's tunnel address, the JWT that authenticates it, and the hub's self-signed cert to pin (so the TLS-encrypted tunnel is verified, not blindly trusted).
|
Package token is the copy-paste enrollment token that carries everything a peer needs to join: the hub's tunnel address, the JWT that authenticates it, and the hub's self-signed cert to pin (so the TLS-encrypted tunnel is verified, not blindly trusted). |
|
webui
Package webui owns the hub's embedded web console.
|
Package webui owns the hub's embedded web console. |