No description
  • Go 85.5%
  • Python 13.8%
  • Shell 0.5%
  • Makefile 0.2%
Find a file
trvon c4ca0f1497
All checks were successful
release / build (push) Successful in 3m58s
progress: show self-update steps and a spinner on slow fleet calls
self-update prints each step (checking releases, verifying signature,
downloading with MB and percent, verifying sha256, replacing binary). Fleet
commands show a spinner after 400 ms while an API call is in flight. Output
goes to stderr on a terminal only; never with --json, TERM=dumb or
HUB_NO_PROGRESS=1. stdout and exit codes are unchanged.
2026-11-14 14:38:13 -07:00
.forgejo/workflows hub: operator CLI with signed self-update 2026-11-10 20:32:32 -07:00
cmd/hub progress: show self-update steps and a spinner on slow fleet calls 2026-11-14 14:38:13 -07:00
docs progress: show self-update steps and a spinner on slow fleet calls 2026-11-14 14:38:13 -07:00
internal progress: show self-update steps and a spinner on slow fleet calls 2026-11-14 14:38:13 -07:00
probe fixtures: track root-beta/usr/local/bin (anchor the bin/ ignore to the repo root) 2026-11-10 21:35:52 -07:00
scripts hub: operator CLI with signed self-update 2026-11-10 20:32:32 -07:00
.gitignore fixtures: track root-beta/usr/local/bin (anchor the bin/ ignore to the repo root) 2026-11-10 21:35:52 -07:00
AGENTS.md hub: operator CLI with signed self-update 2026-11-10 20:32:32 -07:00
CLAUDE.md hub: operator CLI with signed self-update 2026-11-10 20:32:32 -07:00
go.mod hub: operator CLI with signed self-update 2026-11-10 20:32:32 -07:00
LICENSE hub: operator CLI with signed self-update 2026-11-10 20:32:32 -07:00
Makefile hub: operator CLI with signed self-update 2026-11-10 20:32:32 -07:00
README.md hub: operator CLI with signed self-update 2026-11-10 20:32:32 -07:00

hub

Operator CLI for a Security Hub fleet: fleet status, drift and jobs over the read-only fleet API, read-only host profiling over ssh, adoption suggestions, profile diffs, and hub self-update from signed releases. One static Go binary, standard library only. License: GPL-3.0-or-later (see LICENSE).

make hub                              # bin/hub (needs Go 1.27)
hub version
hub self-update --check
Command What
status, drift, jobs fleet snapshot, module-hash drift, recent Salt jobs (need fleet_url)
profile <host> run the embedded read-only probe over ssh and store the profile
suggest <host> groups, pillar snippet, blockers and candidates from the latest profile
profile-diff <host> compare the two newest profiles
self-update [--check] [--version vX.Y.Z] verify a signed release and replace this binary
version hub <version>

Config is ~/.config/security-hub/hub.json; there is no default fleet address. Docs: docs/cli.md (commands, config), docs/adopting-a-host.md (probe contract), docs/releasing.md (releases and the self-update trust chain).

This repository is public and must stay free of real site data. Fixtures use documentation addresses (192.0.2.0/24, 198.51.100.0/24, 100.64.0.x for the tailnet), example.org, hosts alpha/beta and user admin; the real-*.json fixtures are captured probe output rewritten to those values. internal/hygiene fails the build when that is violated.

Checks: make test (go vet, go test, Python probe tests).