feat: NetBox insights, host tools and configurable TUI #45

Merged
Sebi merged 1 commits from feat/netbox-insights into main 2026-11-18 11:39:59 +00:00
Owner

Summary

  • netssh info / open / whois: NetBox details incl. site › nested locations › rack › rack units, NetBox web page, reverse IP lookup
  • Status warning (ssh.warn_status, --force), TUI status badge and filters (status:, site:, location:, rack:, role:, platform:, tenant:)
  • ssh.rules / command restrictions match site, role, platform, tenant, status
  • tui.columns: configurable TUI columns; TCP reachability check is an optional column (off by default)
  • resolver.fallback: connect to another strategy's address when the chosen one does not answer
  • netssh copy-id, netssh known-hosts reset, address-change notices
  • netssh export ansible (YAML/INI, groups incl. location/rack) and netssh export ssh-config
  • Keyring tokens: token: keyring, netssh token set|migrate|delete|status
  • CHANGELOG entry v1.2.0; fixes the stale menu number in testenv/tests/13-configure.sh

Test plan

  • go test ./..., go vet ./...
  • Cross-compile linux/darwin amd64/arm64 with CGO_ENABLED=0
  • testenv: 184/185 passing; 16-render tmux [SYNC] OCR check fails identically on main (pre-existing)

🤖 Generated with Claude Code

## Summary - `netssh info` / `open` / `whois`: NetBox details incl. site › nested locations › rack › rack units, NetBox web page, reverse IP lookup - Status warning (`ssh.warn_status`, `--force`), TUI status badge and filters (`status:`, `site:`, `location:`, `rack:`, `role:`, `platform:`, `tenant:`) - `ssh.rules` / command restrictions match `site`, `role`, `platform`, `tenant`, `status` - `tui.columns`: configurable TUI columns; TCP reachability check is an optional column (off by default) - `resolver.fallback`: connect to another strategy's address when the chosen one does not answer - `netssh copy-id`, `netssh known-hosts reset`, address-change notices - `netssh export ansible` (YAML/INI, groups incl. location/rack) and `netssh export ssh-config` - Keyring tokens: `token: keyring`, `netssh token set|migrate|delete|status` - CHANGELOG entry v1.2.0; fixes the stale menu number in `testenv/tests/13-configure.sh` ## Test plan - [x] `go test ./...`, `go vet ./...` - [x] Cross-compile linux/darwin amd64/arm64 with `CGO_ENABLED=0` - [x] testenv: 184/185 passing; `16-render` tmux `[SYNC]` OCR check fails identically on main (pre-existing) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sebi added 1 commit 2026-11-18 11:34:30 +00:00
feat: NetBox insights, host tools and configurable TUI
Test / test (pull_request) Successful in 4m15s
1660bb3098
- info/open/whois: NetBox details (site, nested locations, rack units,
  role, platform, tenant, IPs per interface), web page, reverse IP lookup
- cache status, site, role, platform, tenant, location chain and rack;
  ask before connecting to hosts in ssh.warn_status (--force skips)
- ssh rules and command restrictions match site/role/platform/tenant/status
- tui.columns selects what the TUI shows; optional TCP reachability column;
  detail view (Ctrl+L), NetBox page (Ctrl+G), status/location filters
- resolver.fallback tries other strategies' addresses when unreachable
- copy-id, known-hosts reset and address-change notices
- export ansible (YAML/INI) and export ssh-config
- token: keyring stores NetBox tokens in the system keyring
- fix stale menu number in testenv configure test

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sebi merged commit c87c2623ec into main 2026-11-18 11:39:58 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Sebi/ssh-netbox-wrapper#45