Repository navigation
Releases
v0.15.1
Fixed
- Bump
rustls-webpki0.103.15 → 0.103.16 andwebpki-roots1.0.9 → 1.0.10
(RUSTSEC-2026-0382, RUSTSEC-2026-0381: distrusted emSign intermediates could
be accepted).
What's Changed
Full Changelog: v0.15.0...v0.15.1
v0.15.0
Added
- Multi-user NetBox API-token pass-through.
nbox serve --http --netbox-token-passthrough(or[serve].netbox_token_passthrough = true)
makes one nbox process serve many users: each caller presents their own NetBox
API token per request — inX-NetBox-Token, or inAuthorizationwhen that
header isn't already used by OIDC or--http-token— and nbox forwards it
verbatim to NetBox. NetBox's object permissions and changelog therefore apply
to the real caller, with no IdP and no[serve.vault]mapping. Reads are
cached per token so one user's view is never served to another,
nbox_cache_clearonly drops the caller's own partition, and--allow-writes
runs writes under the caller's token (behind OIDC the JWT still needs
nbox:write). A request without a caller token is rejected (401, or403
when OIDC/--http-tokenalready authenticated it), never silently downgraded
to the server's profile token.
Tokens are redacted everywhere; the audit log recordsauth=netbox-tokenplus
a short SHA-256netbox_token_fpand the per-caller rate-limit bucket keys on
it. Pass-through requires the HTTP transport (stdio has no per-request
headers, so asking for it there is a usage error) and allows binding a routable
address; terminate TLS in front of it. - Container image built from source. A
Dockerfile(multi-stage; the
existingDockerfile.releaseonly wraps prebuilt release binaries) and a
docker-compose.ymlfor running the multi-user pass-through server:
unprivileged uid 10001, read-only root filesystem, all capabilities dropped,
published on loopback for a TLS-terminating proxy to front, and no NetBox
credential baked into the image. ca_bundletrust anchors for NetBox behind an internal CA.
[profiles.<name>].ca_bundle = "/path/ca.pem"adds certificates to the
bundled Mozilla roots (which contain no private CAs), so an enterprise-issued
NetBox certificate verifies instead of failing withinvalid peer certificate: UnknownIssuer. Previously the only escape hatch wasverify_tls = false,
which disables verification altogether — it would expose the NetBox token to
anyone able to intercept the connection. An unreadable bundle, or one
containing no certificates, is a startup error rather than a silently
unverified connection.
Changed
- Upgrade the MCP SDK
rmcp1.8 → 3.3. No change to the tools, resources,
prompts, or negotiated protocol version (2025-11-25); the resource-template
and prompt-message types and theread_resource/get_prompthandler
returns moved to their rmcp 3 shapes. - Dependency refresh:
jsonwebtoken10 → 11,base640.22 → 0.23,dirs
6 → 7, and semver-compatible updates across the tree (tokio, clap, serde,
time, futures, …). No behavior change: the OIDC algorithm allowlist is
unchanged, anddirs7 only moves the Windows preference directory, which
nbox does not use (config paths are the same on every platform). - Bump
rmcp3.3 → 3.5 (ServerInfo→ServerConfigrename; the handshake
version stays pinned at2025-11-25, no behavior change) plus
semver-compatible refreshes (tokio, clap_complete, serde_json, thiserror,
tokio-util, jsonwebtoken, libc, tokio-test, insta). - Vault (
[serve.vault]) writes pick the auth scheme from each caller's token
(nbt_…→Bearer, otherwiseToken) instead of inheriting the profile's
auth_scheme, and share the profile client's GraphQL probe. - The README is now a short overview; install, usage, keybindings, and themes
moved todocs/INSTALL.mdanddocs/FEATURES.md, indexed bydocs/README.md.
Fixed
- Bump
h20.4.15 → 0.4.19 (RUSTSEC-2026-0258, unbounded empty DATA frames) and
rustls0.23.40 → 0.23.45 (RUSTSEC-2026-0285, TLS 1.3 handshake messages
accepted across encryption levels). - Bump
lru0.18.0 → 0.18.4 (RUSTSEC-2026-0253, unsoundLruCache::pop), and
move off yankedchacha200.10.0 andspin0.9.8. - Allow
clippy::unused_async_trait_impl(new in rustc 1.98) on the MCP
ServerHandlerimpl, whose methods are async by the rmcp trait contract. - Bump
rustls0.23.45 → 0.23.46 (RUSTSEC-2026-0346, -0347, -0348, -0349:
Debugimpls exposing session secrets, ECH-rejection data leak, brotli
certificate decompression allocation, ServerHello key-exchange downgrade). - Satisfy the
clippy::assert_is_emptylint (new in rustc 1.99) in tests:
assert!(x.is_empty())→assert_eq!; no behavior change.
What's Changed
- deps: upgrade rmcp 1.8 -> 3.3 by @lance0 in #145
- deps: bump jsonwebtoken 11, base64 0.23, dirs 7, refresh lockfile by @lance0 in #146
- fix: clear rustc 1.99 clippy gate and rustls advisories by @lance0 in #156
- Add ca_bundle profile option to trust a private CA by @eaxi in #149
- Add multi-user NetBox API-token pass-through to the MCP HTTP server by @eaxi in #151
- Add from-source Docker image and compose for the pass-through server by @eaxi in #152
- docs: slim README, move reference material under docs/ by @lance0 in #155
- deps: bump rmcp 3.3 -> 3.5 and refresh semver-compatible crates by @lance0 in #157
New Contributors
Full Changelog: v0.14.1...v0.15.0
v0.14.1
Fixed
- Bump
crossbeam-epoch0.9.18 → 0.9.20 to clear RUSTSEC-2026-0204 (invalid
pointer dereference in itsfmt::Pointerimpl; a transitive dependency, not
on a reachable nbox code path). - Satisfy the stricter
clippy::question_marklint inMemoryStore::get
introduced by rustc 1.97.0; no behavior change.
Full Changelog: v0.14.0...v0.14.1
v0.14.0
Added
- Local stdio MCP writes (ADR-0002).
nbox serve --local-writesand
[serve].local_writes = trueenable the existing safe MCP write tools
(nbox_plan_write/nbox_apply_write) for the common local subprocess setup,
using the active profile token and the MCP host's approval prompt as the human
gate. The server-issued plan store remains authoritative: forged, edited, or
replayed plans are rejected. Shared/network HTTP writes remain on the existing
--allow-writes+ OIDC +[serve.vault]path, and HTTP profile-token writes
are intentionally deferred. Live NetBox CI now launches real stdio
nbox serveand verifies the read path, a--local-writesreserve/apply/readback,
and the no---local-writesrefusal. - Structured exports, two more on the same surface. Alongside
nbox export prometheus-sd, the export surface now covers thenetbox-listsniche as one
fast binary:nbox export address-list— a firewall/blocklist address list. A
--prefixsource lists the prefix's assigned IPs as host entries (/32,
/128; the interface mask is dropped); a--tagsource lists the IPs and
whole prefixes carrying the tag. Entries are de-duplicated and sorted;
--family 4|6keeps one IP family;--summarizeaggregates contiguous
entries into the minimal covering set (two /25s → one /24). Output is a JSON
array of CIDR strings, or--format plain(one per line) for
ipset/nftables/pf includes.nbox export device-inventory— one record per device (name,
status,role,site,model,platform,serial,asset_tag,
rack,primary_ip,tenant,tags), filtered by any combination of
--site/--role/--tag/--status/--manufacturer(ANDed). JSON
array (default) or--format csv; the JSON keys and CSV columns align
one-to-one, and CSV reuses the shared writer so quoting matches-o csv.
- MCP field projection (
fields). Thenbox_searchandnbox_getMCP tools
accept an optionalfieldsarray to keep only those top-level keys (per hit for
search; on the object for get), trimming response tokens for agents that only
need a slice of a fat view model. Unknown keys are silently ignored — the same
projection the CLI--fieldsflag uses (now a sharedoutput::json::select_fields).
Omittingfieldsreturns the full shape, byte-identical to before. Projection
runs after the read cache, so callers asking for different subsets share one fetch. - Safe write foundation (ADR-0001) — the first write. nbox is no longer
strictly read-only: a sharedMutationPlan/MutationReceiptengine backs a
narrow, operation- and field-specific pilot,nbox interface <device> <iface> set description "…". Every write builds a plan from the live object first
(minimalPATCH, before/after diff, an opaque confirmation token, an
optimistic-concurrency precondition), applies only after explicit enablement
AND confirmation, and emits a receipt. Read-only stays the default: writes
need--allow-writes(the gate) AND--confirm(or a TTY prompt in plain
output);--dry-runpreviews with no mutation and needs neither.--confirm
without--allow-writesis a usage error (exit 2, empty stdout). Non-TTY /
JSON / CSV /--no-tuinever prompt.- Concurrency. On NetBox 4.6+ the engine records the REST
ETagon the
read-before-write and sendsIf-Matchon apply (a stale object yields
412); on 4.2–4.5 it falls back to alast_updated+ before-hash
read-before-write check. Either way a concurrent writer is caught and the
write is refused with a "re-run dry-run" message (exit 1). --message. An opt-in NetBoxchangelog_message(validated to the
200-character limit before applying) is recorded in the object-change
entry; the local write audit logs only amessage_presentflag + length,
never the body.- Audit. Every planned write emits one structured
tracingevent (target
nbox::write_audit) with an allow-list of fields — changed field names
(never values), outcome, HTTP method/path, status, latency. No token, raw
patch, full object, or--messagebody is ever logged.
- Concurrency. On NetBox 4.6+ the engine records the REST
nbox device <name> set status <value>— the second safe write. Reuses
the ADR-0001 foundation (the sameMutationPlan/MutationReceiptengine,
--dry-run/--allow-writes --confirm/--messagegate,ETag+If-Match
on 4.6+, pre-4.6last_updated+before-hash fallback, and local write audit)
as the interface-description pilot. Sends a minimalPATCHbody
({"status": "<value>"}); a no-op status (current value already matches)
sends noPATCH.- Choice validation.
statusis a server-enumerated field, so nbox asks
NetBox for the allowed values via a read-onlyOPTIONSbefore anyPATCH,
and normalizes the operator's input to the canonical wire value. Canonical
values are accepted; labels are accepted case-insensitively when they map
unambiguously to one value. Unknown or ambiguous status is a usage error
(exit 2, empty stdout) that names the input and lists the allowed canonical
values — before anyPATCH. This is the smallest reusable mechanism for
REST choice fields (src/netbox/choices.rs), not a generic schema editor;
writable-field discovery, required-field checking, and relation shaping
stay out of scope (ROADMAP). - Shared CLI write path. The gate decision and the dry-run/prompt/apply/
audit lifecycle are factored into shared helpers (gate_write,
apply_or_preview) now used by both write commands, so there is one write
path, not two.
- Choice validation.
nbox ip reserve <prefix>— the firstallocatewrite. Reserves the next
available IP in a prefix via aPOSTto…/prefixes/{id}/available-ips/, on
the same ADR-0001 gate/confirm/audit lifecycle as thePATCHpilots
(--dry-run/--allow-writes --confirm/--message). Optional
--vrf <name|rd|id>scopes the prefix;--descriptionand--dns-nameset
those fields on the new IP (the v1 allow-list — no status/role/tags/assignment).
Proves the foundation generalizes past in-placeupdate:- Server-allocated, race-safe. NetBox picks the address and never hands out
the same one twice, so the plan carries no client precondition (noETag/
last_updated). The dry-run shows the currently next address as an advisory
note — the applied address may differ, since NetBox allocates at apply time. - Receipt returns the created object.
--jsonapply returns a
MutationReceiptwhose newobjectfield is the reserved IP's view (address,
status, …), so scripts get the assigned address without a follow-up read. The
field is additive and omitted forupdate, soschema_versionstays1. - A bare reserve
POSTs an empty body; an exhausted prefix (409) and a NetBox
validation rejection (400) surface as clean errors (exit 1, empty stdout).
The audit logsoperation=allocate,http_method=POST, and field names only.
- Server-allocated, race-safe. NetBox picks the address and never hands out
nbox tag add <type> <name> <tag>— the fourth safe write. Adds a tag to
any taggable object (device, IP, prefix, VLAN, site, rack, circuit, VM, …) via
a minimalPATCHthat replaces the fulltagsarray, on the same ADR-0001
gate/confirm/audit lifecycle as the interface/device pilots (--dry-run/
--allow-writes --confirm/--message). The tag is resolved by id, exact
name, or exact slug (same resolver asnbox tagged); the target object is
resolved the same way asnbox <kind> <ref>. Adding a tag the object already
carries is a no-op (noPATCH).- List field. Tags are the first multi-valued writable field: the plan
carries the full replacement{"tags": [slugs]}(NetBoxPATCHreplaces the
whole array), so the before/after diff shows the tag slugs.ETag+If-Match
on 4.6+,last_updated+before-hash on pre-4.6. - Any object kind. The planner reads the object as a raw value (every
NetBox object carries the sametagsarray shape), so no per-kind model is
needed for this write.
- List field. Tags are the first multi-valued writable field: the plan
nbox tag remove <type> <name> <tag>— the fifth safe write. Removes a
tag from any taggable object, mirroringtag add: samePATCH-replaces-
whole-array semantics, same gate/confirm/audit lifecycle. Removing a tag the
object doesn't carry is a no-op (noPATCH). Shares one planner/applier with
tag add(TagOperation::Add/Remove), proving the foundation extends to
the inverse operation without new machinery.nbox prefix reserve <cidr>— the sixth safe write. Reserves the next
available child prefix via aPOSTto…/prefixes/{id}/available-prefixes/,
on the same ADR-0001 gate/confirm/audit lifecycle as thePATCHpilots and
ip reserve(--dry-run/--allow-writes --confirm/--message). Optional
--vrf <name|rd|id>scopes the parent prefix;--length Nrequests a specific
child prefix length;--descriptionsets that field on the new prefix (the v1
allow-list — no status/role/tags/vlan). Proves the allocate pattern extends
pastip reserve:- Server-allocated, race-safe. NetBox picks the block and never hands out
the same one twice, so the plan carries no client precondition (noETag/
last_updated). The dry-run shows the currently next available block as an
advisory warning — the applied block may differ, since NetBox allocates at
apply time. - Receipt returns the created object.
--jsonapply returns a
MutationReceiptwhoseobjectfield is the reserved prefix's view
(prefix, description, …), so scripts get the assigned block without a
follow-up read. - A bare reserve
POSTs an empty body; an exhausted parent (409) and a
NetBox validation rejection (400) surface as clean errors (exit 1, empty
stdout). The audit logsoperation=allocate, `http_method=POST...
- Server-allocated, race-safe. NetBox picks the block and never hands out
v0.13.0
Added
nbox history— object change history (audit log).nbox history <kind> <ref>shows the system-recorded create/update/delete timeline for an object
(who, when, and which fields changed), from/api/core/object-changes/(NetBox
4.x). Distinct fromnbox journal(operator notes): this is the audit trail.
Each row carriestime/action/user/object/message/fields_changed
(the top-level fields whose values differ pre vs post — not the full
before/after JSON) /request_id. Same kind set + ref resolution asjournal.
MCP toolnbox_historymirrors it (tools: 10 → 11).- MCP prompts catalog.
nbox serveadvertises a small catalog of read-only
investigation prompts viaprompts/list+prompts/get:
ip_utilization_audit,cable_path_trace,find_stale_prefixes,
object_change_review. Each returns a user-role message with a structured
plan naming the exact nbox tools to call (incl.nbox_history), tailored to
the supplied arguments. Zero live dependency — a prompt is a plan, not data;
the agent runs the plan against the tools.enable_prompts()capability
advertised. - TUI copy over SSH/headless terminals. On non-macOS Unix with no graphical
display, theycopy action now emits OSC 52 so the local terminal can write
the local clipboard through the terminal stream. macOS, Windows, and desktop
sessions still tryarboard's native clipboard first, with OSC 52 as a
fallback if that call fails.
Changed
- GraphQL accelerator fallback is more resilient. If an effective GraphQL
vrforroute_targetbundle fails at runtime (for example, a low NetBox
GRAPHQL_MAX_QUERY_DEPTH), nbox now warns and retries the same detail over
REST. Schema/probe fallback remains visible innbox status, and stdout output
remains the same REST-shaped view. nbox history --diff. The audit-log view now has a--diffflag (MCP
diff=true) that includes the fullbefore/afterchange payloads per row —
the full JSON for a single change (CLI--diffimplies--limit 1). The
compactfields_changedlist stays the default;before/afterare omitted
unlessdiffis requested, so existing output is byte-identical.- TUI idle redraw gate. The 180ms preview tick still drives debounce, status
expiry, and the loading spinner, but the event loop now skipsterminal.draw
when a conservative render signature has not changed. Idle ticks no longer
rebuild the Results table; spinner/status/async results/keypresses/resize still
redraw normally. - TUI browse switching. Browse-by-kind results are now cached in the TUI
session by kind + active browse filter, so revisiting a Nav kind repaints the
prior list immediately while a background browse refreshes it. - TUI preview cancellation. Scrolling the results list spawns a background
preview fetch per settle; a second settle while the first fetch is still in
flight now aborts the superseded task instead of letting it run to completion
and dropping its result on arrival — freeing the connection + CPU. Stale-
response suppression stays as a backstop; the detail cache ("preview warms
open") is unaffected. - VLAN detail fan-out. VLAN detail now fetches referencing prefixes and the
VLAN group's scope concurrently, preserving the same JSON/plain view shape while
saving one round trip when a VLAN has both. - Search per-endpoint row cap. Each search branch now fetches at most
min(page_size, max(req.limit, SEARCH_BRANCH_FLOOR))rows (floor 25), not the
fullpage_size(100 by default). The merge truncates toreq.limitanyway,
so a--limit 25search previously deserialized ~20 endpoints × 100 rows
(2000 rows) to return 25; it now fetches ~20 × 25 (500). The merge/sort/
dedupe/truncate behavior is unchanged — each branch just contributes a narrower
top-K. A floor of 25 keeps each branch wide enough to rank across endpoints
(nbox'sscore_matchis coarser than NetBox's ownqrelevance). A regression
test pins the per-endpointlimit=query param so the cap can't drift back to
page_size. - Detail-section cap normalized to 200. The three detail-view section caps
(DEVICE_CAP200,SECTION_CAP50,VRF_SECTION_CAP200) collapsed into a
singleDETAIL_SECTION_CAP = 200(src/domain/detail.rs).SECTION_CAP = 50
was an unprincipled outlier — a VRF's addresses showed 200 but a prefix's child
IPs (the same kind of data) showed 50, a 4× gap that truncated common/24
prefixes (254 hosts) at 50 rows. Prefix/VLAN child rows now rise to 200 (covering
the vast majority) and the three-names-one-concept inconsistency ends. The cap
is a rendering concern (rows in one detail section), so it's named at that
layer, not the dcim/ipam domain layer.BROWSE_CAP = 1000(whole-kind browse,
a different concept) is unchanged. A full/24still truncates at 200; closing
that fully is a targeted--all/fetch-all toggle, not a cap bump. - Browse cap reverted 1000 → 500. A Nav-rail browse now pulls up to 500 rows
(0.11.0 raised it to 1000; reverted). 500 is still a single round trip (it's
below NetBox's per-requestMAX_PAGE_SIZEceiling of 1000), so the network
cost is identical — but the rows past a few hundred are essentially never
scrolled to (at that scale the filter narrows, not the cap), and 1000 doubled
the TUI's idle render work: the listVec<Row>is rebuilt on every draw
(~5.5 Hz while the 180msPreviewTickfires; see the ROADMAPTUI render dirty-flagitem) for rows no one reads. The filter is the escape hatch, not
a bigger cap. The list-count badge reads500+when capped. (The dirty-flag
fix would eliminate idle rebuilds for all list sizes — a separate, scheduled
win; it doesn't change that 500 is the right cap either way, since every
change still rebuilds the full list and 1000 stays 2× the cost at those
moments.)
What's Changed
- fix(detail): normalize the three section caps to one DETAIL_SECTION_CAP = 200 by @lance0 in #79
- fix(browse): revert BROWSE_CAP 1000 → 500 by @lance0 in #82
- feat(search): cap per-endpoint fetch at min(page_size, max(limit, floor)) by @lance0 in #83
- feat(history): object change history (audit log) — CLI + MCP by @lance0 in #84
- feat(mcp): read-only investigation prompts (prompts/list + prompts/get) by @lance0 in #85
- chore(deps): bump rmcp from 1.7.0 to 1.8.0 in the rust-dependencies group by @dependabot[bot] in #81
- chore(deps): bump actions/cache from 5 to 6 by @dependabot[bot] in #80
- perf(tui): render-signature redraw gate + concurrent VLAN detail by @lance0 in #86
- feat(tui): OSC 52 clipboard for SSH/headless terminals by @lance0 in #87
- perf(tui): session browse cache for instant Nav kind switches by @lance0 in #88
- feat(history --diff) + perf(tui): cancellable preview by @lance0 in #89
- ci: split PR gate into parallel named checks + scheduled supply-chain by @lance0 in #90
- fix(graphql): harden accelerator fallback and docs by @lance0 in #91
- test(it): assert route_target effective backend on the live 4.5 lane by @lance0 in #92
Full Changelog: v0.12.0...v0.13.0
v0.12.0
Added
-
Schema-drift canary. A compact NetBox OpenAPI snapshot
(tests/schema/netbox-4.6.2.json— bare GET filter params per search endpoint)
is pinned in-repo, and aschema_canarytest validates the search fan-out's
declared filter set (search_supported) against it at compile time
(include_str!). A filter nbox sends that the pinned release doesn't accept
fails the build naming the exact endpoint + filter — the manual
schema-curling this session relied on, replaced by a reproducible signal.
Refresh the snapshot against a new NetBox release with
scripts/gen_schema_snapshot.py(from a saved/api/schema/JSON or a live
URL) and the canary flags the drift before it reaches users. Centralizing the
per-endpoint filter lists intosearch_supported()also made it the single
source of truth the canary validates (no more scattered&[...]literals). -
nbox serve --print-config(install recipes). Prints the paste-ready
mcpServersJSON object most MCP hosts read, then exits — without starting
the server or connecting to NetBox, so it works before a token is even set.
Thecommandis the absolute path to this binary (the host finds it even if
nboxisn't on itsPATH);argsalways begins withserveand echoes any
--profile/--configyou passed so the snippet reproduces your invocation;
env.NBOX_TOKENis a placeholder (set it there, export it, or drop the block
ifnbox config initholds the token). docs/MCP.md now lists the exact
config-file path per host (Claude Code, Claude Desktop, Cursor). This prints
the stdio recipe; the HTTP/OIDC transport is configured separately. -
rack-group+vm-typekinds (NetBox 4.6). Two new first-class lookups
for the 4.6 additions:nbox rack-group <slug|name|id>and
nbox vm-type <slug|name|id>, each a full kind —nbox_get(MCP),
nbox journal <kind> <ref>,nbox open <kind>/<ref>, the
nbox://<kind>/<ref>resource, and anbox searchfan-out. Both are
dead-simple name/slug/description objects with a relation count (rack_count
/virtual_machine_count), plusowner/tags/custom_fields. Model shapes
verified against the live 4.6.2 OpenAPI schema. (cable-bundle, the third 4.6
addition, is deferred — it pairs with the cable-path visualizer.) -
ownerfield +--owner/--owner-groupfilters (NetBox 4.5). NetBox
4.5 added a nativeowner(a user or group) on most objects — structured
ownership that beats tag-scraping for agents.owneris now surfaced on every
detail view as a friendly label, omitted when absent (byte-identical for
pre-4.5 objects). Insearch,--owner <name>and--owner-group <name>
filter by user/group name; owner is polymorphic (user or group) so the two
are separate filters, and both are silently ignored on releases that carry no
owner data (every owner-bearing search endpoint accepts the params; nbox never
sends a filter a kind can't satisfy). -
virtual-circuitkind (NetBox 4.2+).nbox virtual-circuit <cid|id>
shows a virtual circuit and its terminations, and it's a full first-class kind:
nbox_get kind=virtual_circuit(MCP),nbox journal virtual-circuit <cid>,
nbox open virtual-circuit/<cid>, thenbox://virtual_circuit/<cid>resource,
and anbox searchfan-out. Virtual circuits are multi-point overlays on
device interfaces — no A/Z sides, no physical cables — so each termination is a
flatdevice/interfaceref (for navigation) rather than a cable-path
diagram. The view also surfaces the optionalprovider_network,
provider_account,type,status,tenant,owner(4.5), and
descriptionscalars. Model shape verified against the live 4.6.2 OpenAPI
schema. -
MCP response contracts: every
nbox_getkind view pinned. The JSON shape
eachnbox_getkind returns is now pinned by a response-contract test
(src/mcp/tests.rs::contracts): a removed/renamed field, or a new one not
listed, fails the test. Covers everynbox_getkind plus the already-pinned
status/search/journal/tags/tagged/available/cache-clear reports. Closes the
remaining contract gap; zero runtime change. -
Interface journal +
nbox_get interface(MCP). Interfaces are now a
first-class kind in the journal resolver andnbox_get.nbox journal interface <device>/<name>surfaces an interface's operator notes like every
other kind, andnbox_get(MCP tool +nbox://interface/<device>/<name>
resource) returns the sameInterfaceViewasnbox interface. Interfaces
have no single-string reference — they're addressed by device + name — so the
compound<device>/<name>form is the ref, taken verbatim after the device
since names may contain slashes (xe-0/0/1,Ethernet1/49). Thenbox open interface/<device>/<name>path now shares the same splitter. -
NAT inside/outside enrichment (
nbox ip). NetBox 4.6 embedsnat_inside
(a brief IP ref) on a NAT outside IP andnat_outside(an array) on the
inside IP.nbox ipnow surfaces both: the outside IP shows its inside
address (nat_inside: …), the inside IP shows its outside address(es)
(nat_outside: …). Both are omitted when absent, so a non-NAT IP's output is
byte-identical to before. The device IP tab (which fetches full IPs) picks it
up for free. -
Reverse-tag lookup (
nbox tagged <tag>). A new command that answers
"what objects carry tag X" across all kinds in one call, via NetBox 4.3's
/api/extras/tagged-objects/?tag_id=<id>. Distinct fromsearch --tag
(which needs aqand filters per-endpoint). The tag resolves by id, exact
name, or exact slug (names may carry colons, e.g.prod:us-east); a no-match
tag is not-found (exit 4). Each result carries a friendlykind/object_type
(mapped to nbox's kind labels, with a derived fallback for types nbox doesn't
model), the object id/display/url, plus the resolved tag. Available on the CLI
(nbox tagged) and via MCP (nbox_tagged). TheTaggedReportJSON shape is
pinned by a response-contract test (top-leveltag/results, row
kind/object_type/id/display/url). -
MAC reverse-lookup (
nbox mac <addr>). A new first-class kind (NetBox
4.2+) that reverse-resolves a MAC address to the interface(s)/device(s) that
carry it — a top operator/agent query nbox couldn't answer. Any common MAC
form is accepted and normalized (aa:bb:cc:dd:ee:ff,AABB.CCDD.EEFF,
aa-bb-…,aabbccddeeff, a trailing/48is stripped); a non-MAC is a usage
error (exit 2) with no NetBox round-trip. MACs aren't enforced globally unique,
so several carrying interfaces surface as ambiguous (exit 5) with the candidate
list, not a silent first-pick. Available on the CLI (nbox mac), via MCP
(nbox_getkindmac/nbox://mac/<addr>), andnbox open mac/<addr>.
Polymorphic assignment (physical interface or VM interface) is rendered as
"<parent> <interface>". -
CIDR-containment filter for prefix/IP browse. From the Nav rail,
/on a
prefix browse now filters server-side by network containment (within_include
— the prefix + everything inside it) and on an IP-address browse byparent
(addresses inside the prefix), instead of falling back to global search. The value
is a CIDR, validated locally on Enter — a typo is an instant error, not a NetBox
400 round-trip; the pane title readswithin "10.0.0.0/24". Completes the browse
filter across every Nav-rail kind (name-bearing kinds byname__ic, prefix/IP by
containment); the router'sNone→ search fallback remains for any future
non-filterable browse kind. -
Credential preflight in
nbox status(NetBox 4.5+)./api/status/is
reachable without a valid token on instances withLOGIN_REQUIRED=False, so a
200 status response can hide a bad/expired token.nbox statusand MCP
nbox_statusnow run a best-effort probe of NetBox 4.5's
/api/authentication-check/(gated onIsAuthenticated; returns the flat
UserSerializerbody) and surface the verdict in a newtokenfield:valid
(carrying the authenticatedusername/display),invalid(HTTP 401/403 — the
token was rejected, with the server's reason), orunverified(the endpoint is
absent on NetBox < 4.5, or the probe could not run). It never errors, so it can't
turn a successful status fetch into a failure, and the exit-code contract for
nbox statusis unchanged: a rejected token during the status fetch still exits
3; the preflight is informational. The capability probe and the preflight now
overlap (tokio::join!), sonbox statuscosts no extra serial round-trip for
the token verdict.
Fixed
nbox search --tenantno longer over-broadens rack-groups / VM types.
The 4.6 kindsrack-groupandvm-typehave notenantfilter in the
NetBox OpenAPI schema, but the search fan-out declared one for them — so with
--tenantactive those branches sent atenant=param NetBox silently
ignores and returned the kind unfiltered (mixed in with the tenant-scoped
hits). They now declare only the filters the schema accepts (tag/
owner/owner_group) and are skipped when--tenantis active, matching
every other scope-mismatched branch. Caught by the new schema canary.
Changed
list_allfollows the server'snextlink across pages. Pagination no
longer computesoffset += page_sizeitself; from the second page on it
follows thenextURL NetBox (DRFLimitOffsetPagination) returns, which
echoes every original filter param and sizes its offset with the capped
limit. This fixes a silent row-skip on NetBox servers configured with
MAX_PAGE_SIZEbelow the requested limit (the short page advanced by the full
request size, overshooting the rows the server actually returned) — the gap
can no longer open. Default NetBox (MAX_PAGE_SIZE≥ 1000) was unaffected and
sees no behavi...
v0.11.0
Added
- Browse filter (grep-style). When browsing a name-bearing kind from the Nav
rail,/now filters that list server-side by name instead of opening the
global search: type a substring, Enter, and the list re-fetches matching rows.
Explicit (not live), so it doesn't hammer NetBox while you type. Uses the kind's
case-insensitive name lookup (name__icfor devices/racks/sites/VLANs/VRFs/
route-targets,cid__icfor circuits). The pane title shows the active filter and
count (Devices · name contains "bfr" · 52),1000+signals the result cap (refine
to narrow).Escon the list clears the active filter; while editing,Esc
instead cancels the edit (keeping the filter), andCtrl+Xor an empty Enter
clear it.
This makes large instances usable — finding one of hundreds of thousands of
devices by name instead of scrolling a capped list. Prefix and IP-address lists
keep/as global search: their key field is a CIDR/inet column with no NetBox
substring lookup, so a name-style filter there would silently match nothing it
claimed to (CIDR-containment filtering for those kinds is planned separately).
Changed
- Browse cap raised 500 → 1000. A Nav-rail browse now pulls up to 1000 rows
(was 500). A cap-full list stays a single round trip — 1000 is NetBox's
per-request ceiling, solist_allsizes one page to it; the filter narrows
past the cap. The list-count badge reads1000+when capped.
What's Changed
- Server-side browse filter (grep by name) by @lance0 in #70
- docs: accuracy true-up across the doc tree by @lance0 in #71
- docs+tui: surface Ctrl+X in help, README browse-filter, KNOWN_ISSUES paging gap by @lance0 in #72
Full Changelog: v0.10.0...v0.11.0
v0.10.0
Added
- Circuit terminations + A↔Z path.
nbox circuit <cid>now resolves the
circuit's A/Z terminations and renders the path: each side's endpoint (a site or
a provider network) and the cable chain to the device it lands on — walking
through patch panels (rear↔front) to the far interface, since NetBox exposes no
/trace/for circuit terminations. Drawn as a vertical A↔Z diagram (mirroring the
interface cable-path view); the A and Z sides are walked concurrently, and a hop
that can't continue (e.g. an unwired panel) stops cleanly rather than guessing.
The TUI circuit detail gains appath tab and navigable links to the
provider, the sites, and every device along the path.-o json(and the MCP
nbox_get/nbox://circuit/{ref}resource) carries a structuredterminations
array — each hop in itspathincludes adeviceref ({id, name}) so an agent
can jump straight to the device — plus the rendereddiagramlines so an agent
or script can show the A↔Z art verbatim. Previously a circuit showed only flat
attributes (provider/type/status/rate) with no indication of where it landed.
Commit/port rates are humanized (e.g.400 Gbps). nbox profile remove <name>deletes a profile from the config
(format-preserving). It refuses to remove the active profile (switch withnbox profile use <other>first) or the only profile, mirroring the TUI's delete
guards — so you can drop a stray profile (e.g. one left by the onboarding
wizard) without hand-editing the file.
Changed
- First-run onboarding wizard redesign. The wizard now leads with the URL and
shows a simple three-field screen (url / name / token); the niche knobs
(token_env,auth_scheme,verify_tls) tuck behind aCtrl+A"advanced"
toggle. The profile name is no longer hardcoded todefault— it's derived
from the URL host (https://netbox.acme.com→acme, falling back toprod
for an IP/empty host), shown live as a placeholder and committed on save unless
you type your own. This stops the wizard from planting a straydefaultprofile
that duplicates one you add later.
Fixed
- The
--no-tuifirst-run setup hint printed the wrongprofile addsyntax
(--url <url>); the URL is a positional argument. The hint now matches the CLI
and the docs:nbox profile add <name> <url> [--token-env <VAR>].
What's Changed
- Add
nbox profile remove; fix the profile-add setup hint by @lance0 in #66 - Redesign the first-run onboarding wizard (simple + advanced, host-derived name) by @lance0 in #67
- Surface circuit A/Z terminations and the circuit path by @lance0 in #68
- Expose circuit path device refs + the rendered diagram in JSON by @lance0 in #69
Full Changelog: v0.9.0...v0.10.0
v0.9.0
Added
- Interfaces are first-class in the TUI. A device detail's interfaces (
i) and
cables (c) tabs are now selectable lists —j/kmove a cursor andEnter
opens the interface's detail (its attributes plus the cable path). A new
interfaceobject kind backs this purely as a navigation/detail target: it's
reached from a device, not the global search fan-out, sonbox search/ MCP
nbox_getkeep their existing surface, and the new navigation rowids are
non-serialized — thenbox deviceJSON/CSV shape is unchanged (the cable
endpoint labels gain the far device; see the Changed note below). - Cable-path visualizer. An interface's cable trace renders as a vertical A↔Z
diagram — the near end on top (A), the far end on the bottom (Z), the device
emphasized over its port, and each cable segment labelled (#id · type · length · status). A patch panel in the path collapses to a single pass-through stop
(front → rear); an unterminated side is shown explicitly. It's a dedicated
"cable path" tab in the TUI and an inline section innbox interfaceoutput. - Cable views name the far device. The Cables tab and an interface's "Connected
To" now show the remote device and port (e.g.swp25 → dsr1-us-west-01a 1/1/c13/1), not just the remote port — so you can tell where a cable goes.
Fixed
nbox raw GETaccepts an API path with or without the/api/prefix. A bare
path likedcim/devices/?limit=1previously resolved against the base URL to the
web UI (https://host/dcim/devices/), which returns HTML and failed to decode
("expected value at line N"). The path is now normalized to/api/…whether you
writedcim/...,api/dcim/..., or/api/dcim/...; absolute URLs are rejected so
rawstays scoped to the active profile.- Nav-rail per-kind counts no longer clip on large instances. The browse rail
rendered the full count right-aligned in a too-narrow fixed-width pane, so a big
number was cut to its first digit(s) (● Devices 3for 302142,Prefixeswith no
count at all). Counts are now abbreviated — exact below 1000, thenk/M(30k,
2.1M) — and the rail is widened to fit the longest label plus that count. - Detail tabs that list related objects now show their selection cursor. Device,
prefix, VLAN, site, and rack details carried navigable tab rows but rendered them
as plain text with no cursor — only the VRF/route-target views (which have a
header card) drew the cursor. The tab bar now pins in a fixed band for any tabbed
detail and every section renders its rows the same way, so the device
IP/VLAN/interfaces/cables, prefix children/addresses, and site/rack device tabs
are all actually navigable now.
Changed
- Cable endpoints now name the far device, in every surface. The Cables tab and
nbox interfacerender endpoints aslocal-port → far-device far-port(was
local-port -> far-port, remote device omitted). The far device also flows into
the serializedconnected_tolabels, sonbox interface/nbox deviceJSON and
MCPnbox_getnow carry"<device> <port>"there — a content change to those
string labels, not a shape change.
Security
- Updated the transitive
quinn-protodependency to0.11.15to clear
RUSTSEC-2026-0185. It's a lockfile-only dependency (pulled viareqwest); nbox
builds without QUIC/HTTP3, so it isn't compiled into the binary — but the release
audit gate scans the wholeCargo.lock.
What's Changed
- feat(tui): interfaces first-class — selectable detail tabs + cable-path visualizer (0.9.0) by @lance0 in #64
- fix(cli): normalize
nbox rawpaths to /api/ and reject absolute URLs by @lance0 in #65
Full Changelog: v0.8.1...v0.9.0
v0.8.1
Fixed
- Browsing sites no longer times out on large instances. NetBox's full site
list serializer attaches per-site aggregate counts (device / prefix / rack / vlan
/ circuit), each a subquery over a large table — slow enough to exceed the request
timeout on a sizable instance (observed: 100 sites > 120s, while the nav count and
every other browse kind return in well under a second). The site browse now
requests NetBox'sbriefrepresentation, which omits those counts and returns the
name+slugthe browse index shows (~400× faster in testing). Opening a site
still fetches the full object for its detail view, so nothing is lost there. Only
the site browse is affected; the other kinds already list quickly and keep their
full columns.
What's Changed
Full Changelog: v0.8.0...v0.8.1