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; transport encryption is the deployment's job (a TLS edge, ingress, or mesh in front of the hub), so there is no certificate to manage.
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 rotate-secret # rotate the JWT secret (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. |
|
hubsecret
Package hubsecret manages the hub's JWT signing secret: a 32-byte random value persisted as the jwt-secret file in the hub state directory.
|
Package hubsecret manages the hub's JWT signing secret: a 32-byte random value persisted as the jwt-secret file in the hub state directory. |
|
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. |
|
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 plain column list.
|
Package style is the CLI's small output vocabulary: a success mark, a dim note, and a plain column list. |
|
token
Package token is the copy-paste enrollment token that carries what a peer needs to join: the hub's tunnel URL (its scheme selects the transport) and the JWT that authenticates the peer.
|
Package token is the copy-paste enrollment token that carries what a peer needs to join: the hub's tunnel URL (its scheme selects the transport) and the JWT that authenticates the peer. |
|
webui
Package webui owns the hub's embedded web console.
|
Package webui owns the hub's embedded web console. |