Skip to content

Releases

v0.15.1

Choose a tag to compare

@github-actions github-actions released this 21 Oct 15:34

Fixed

  • Bump rustls-webpki 0.103.15 → 0.103.16 and webpki-roots 1.0.9 → 1.0.10
    (RUSTSEC-2026-0382, RUSTSEC-2026-0381: distrusted emSign intermediates could
    be accepted).

What's Changed

  • deps: bump rustls-webpki and webpki-roots for emSign distrust by @lance0 in #158

Full Changelog: v0.15.0...v0.15.1

v0.15.0

Choose a tag to compare

@github-actions github-actions released this 20 Oct 18:28

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 — in X-NetBox-Token, or in Authorization when 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_clear only 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, or 403
    when OIDC/--http-token already authenticated it), never silently downgraded
    to the server's profile token.
    Tokens are redacted everywhere; the audit log records auth=netbox-token plus
    a short SHA-256 netbox_token_fp and 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
    existing Dockerfile.release only wraps prebuilt release binaries) and a
    docker-compose.yml for 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_bundle trust 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 with invalid peer certificate: UnknownIssuer. Previously the only escape hatch was verify_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 rmcp 1.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 the read_resource / get_prompt handler
    returns moved to their rmcp 3 shapes.
  • Dependency refresh: jsonwebtoken 10 → 11, base64 0.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, and dirs 7 only moves the Windows preference directory, which
    nbox does not use (config paths are the same on every platform).
  • Bump rmcp 3.3 → 3.5 (ServerInfo → ServerConfig rename; the handshake
    version stays pinned at 2025-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, otherwise Token) 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 to docs/INSTALL.md and docs/FEATURES.md, indexed by docs/README.md.

Fixed

  • Bump h2 0.4.15 → 0.4.19 (RUSTSEC-2026-0258, unbounded empty DATA frames) and
    rustls 0.23.40 → 0.23.45 (RUSTSEC-2026-0285, TLS 1.3 handshake messages
    accepted across encryption levels).
  • Bump lru 0.18.0 → 0.18.4 (RUSTSEC-2026-0253, unsound LruCache::pop), and
    move off yanked chacha20 0.10.0 and spin 0.9.8.
  • Allow clippy::unused_async_trait_impl (new in rustc 1.98) on the MCP
    ServerHandler impl, whose methods are async by the rmcp trait contract.
  • Bump rustls 0.23.45 → 0.23.46 (RUSTSEC-2026-0346, -0347, -0348, -0349:
    Debug impls exposing session secrets, ECH-rejection data leak, brotli
    certificate decompression allocation, ServerHello key-exchange downgrade).
  • Satisfy the clippy::assert_is_empty lint (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

  • @eaxi made their first contribution in #149

Full Changelog: v0.14.1...v0.15.0

v0.14.1

Choose a tag to compare

@github-actions github-actions released this 31 Jul 15:25

Fixed

  • Bump crossbeam-epoch 0.9.18 → 0.9.20 to clear RUSTSEC-2026-0204 (invalid
    pointer dereference in its fmt::Pointer impl; a transitive dependency, not
    on a reachable nbox code path).
  • Satisfy the stricter clippy::question_mark lint in MemoryStore::get
    introduced by rustc 1.97.0; no behavior change.

Full Changelog: v0.14.0...v0.14.1

v0.14.0

Choose a tag to compare

@github-actions github-actions released this 29 Jun 15:31

Added

  • Local stdio MCP writes (ADR-0002). nbox serve --local-writes and
    [serve].local_writes = true enable 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 serve and verifies the read path, a --local-writes reserve/apply/readback,
    and the no---local-writes refusal.
  • Structured exports, two more on the same surface. Alongside nbox export prometheus-sd, the export surface now covers the netbox-lists niche as one
    fast binary:
    • nbox export address-list — a firewall/blocklist address list. A
      --prefix source lists the prefix's assigned IPs as host entries (/32,
      /128; the interface mask is dropped); a --tag source lists the IPs and
      whole prefixes carrying the tag. Entries are de-duplicated and sorted;
      --family 4|6 keeps one IP family; --summarize aggregates 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). The nbox_search and nbox_get MCP tools
    accept an optional fields array 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 --fields flag uses (now a shared output::json::select_fields).
    Omitting fields returns 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 shared MutationPlan / MutationReceipt engine backs a
    narrow, operation- and field-specific pilot, nbox interface <device> <iface> set description "…". Every write builds a plan from the live object first
    (minimal PATCH, 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-run previews with no mutation and needs neither. --confirm
    without --allow-writes is a usage error (exit 2, empty stdout). Non-TTY /
    JSON / CSV / --no-tui never prompt.
    • Concurrency. On NetBox 4.6+ the engine records the REST ETag on the
      read-before-write and sends If-Match on apply (a stale object yields
      412); on 4.2–4.5 it falls back to a last_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 NetBox changelog_message (validated to the
      200-character limit before applying) is recorded in the object-change
      entry; the local write audit logs only a message_present flag + length,
      never the body.
    • Audit. Every planned write emits one structured tracing event (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 --message body is ever logged.
  • nbox device <name> set status <value> — the second safe write. Reuses
    the ADR-0001 foundation (the same MutationPlan/MutationReceipt engine,
    --dry-run / --allow-writes --confirm / --message gate, ETag+If-Match
    on 4.6+, pre-4.6 last_updated+before-hash fallback, and local write audit)
    as the interface-description pilot. Sends a minimal PATCH body
    ({"status": "<value>"}); a no-op status (current value already matches)
    sends no PATCH.
    • Choice validation. status is a server-enumerated field, so nbox asks
      NetBox for the allowed values via a read-only OPTIONS before any PATCH,
      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 any PATCH. 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.
  • nbox ip reserve <prefix> — the first allocate write. Reserves the next
    available IP in a prefix via a POST to …/prefixes/{id}/available-ips/, on
    the same ADR-0001 gate/confirm/audit lifecycle as the PATCH pilots
    (--dry-run / --allow-writes --confirm / --message). Optional
    --vrf <name|rd|id> scopes the prefix; --description and --dns-name set
    those fields on the new IP (the v1 allow-list — no status/role/tags/assignment).
    Proves the foundation generalizes past in-place update:
    • Server-allocated, race-safe. NetBox picks the address and never hands out
      the same one twice, so the plan carries no client precondition (no ETag /
      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. --json apply returns a
      MutationReceipt whose new object field 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 for update, so schema_version stays 1.
    • 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 logs operation=allocate, http_method=POST, and field names only.
  • 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 minimal PATCH that replaces the full tags array, 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 as nbox tagged); the target object is
    resolved the same way as nbox <kind> <ref>. Adding a tag the object already
    carries is a no-op (no PATCH).
    • List field. Tags are the first multi-valued writable field: the plan
      carries the full replacement {"tags": [slugs]} (NetBox PATCH replaces 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 same tags array shape), so no per-kind model is
      needed for this write.
  • nbox tag remove <type> <name> <tag> — the fifth safe write. Removes a
    tag from any taggable object, mirroring tag add: same PATCH-replaces-
    whole-array semantics, same gate/confirm/audit lifecycle. Removing a tag the
    object doesn't carry is a no-op (no PATCH). 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 a POST to …/prefixes/{id}/available-prefixes/,
    on the same ADR-0001 gate/confirm/audit lifecycle as the PATCH pilots and
    ip reserve (--dry-run / --allow-writes --confirm / --message). Optional
    --vrf <name|rd|id> scopes the parent prefix; --length N requests a specific
    child prefix length; --description sets that field on the new prefix (the v1
    allow-list — no status/role/tags/vlan). Proves the allocate pattern extends
    past ip reserve:
    • Server-allocated, race-safe. NetBox picks the block and never hands out
      the same one twice, so the plan carries no client precondition (no ETag /
      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. --json apply returns a
      MutationReceipt whose object field 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 logs operation=allocate, `http_method=POST...
Read more

v0.13.0

Choose a tag to compare

@github-actions github-actions released this 26 Jun 00:00

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 from nbox journal (operator notes): this is the audit trail.
    Each row carries time/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 as journal.
    MCP tool nbox_history mirrors it (tools: 10 → 11).
  • MCP prompts catalog. nbox serve advertises a small catalog of read-only
    investigation prompts via prompts/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, the y copy action now emits OSC 52 so the local terminal can write
    the local clipboard through the terminal stream. macOS, Windows, and desktop
    sessions still try arboard'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
    vrf or route_target bundle 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 in nbox status, and stdout output
    remains the same REST-shaped view.
  • nbox history --diff. The audit-log view now has a --diff flag (MCP
    diff=true) that includes the full before/after change payloads per row —
    the full JSON for a single change (CLI --diff implies --limit 1). The
    compact fields_changed list stays the default; before/after are omitted
    unless diff is 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 skips terminal.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
    full page_size (100 by default). The merge truncates to req.limit anyway,
    so a --limit 25 search 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's score_match is coarser than NetBox's own q relevance). A regression
    test pins the per-endpoint limit= 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_CAP 200, SECTION_CAP 50, VRF_SECTION_CAP 200) collapsed into a
    single DETAIL_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 /24 still 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-request MAX_PAGE_SIZE ceiling 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 list Vec<Row> is rebuilt on every draw
    (~5.5 Hz while the 180ms PreviewTick fires; see the ROADMAP TUI render dirty-flag item) for rows no one reads. The filter is the escape hatch, not
    a bigger cap. The list-count badge reads 500+ 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

Choose a tag to compare

@github-actions github-actions released this 24 Jun 19:24

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 a schema_canary test 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 into search_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
    mcpServers JSON object most MCP hosts read, then exits — without starting
    the server or connecting to NetBox, so it works before a token is even set.
    The command is the absolute path to this binary (the host finds it even if
    nbox isn't on its PATH); args always begins with serve and echoes any
    --profile/--config you passed so the snippet reproduces your invocation;
    env.NBOX_TOKEN is a placeholder (set it there, export it, or drop the block
    if nbox config init holds 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-type kinds (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 a nbox search fan-out. Both are
    dead-simple name/slug/description objects with a relation count (rack_count
    / virtual_machine_count), plus owner/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.)

  • owner field + --owner/--owner-group filters (NetBox 4.5). NetBox
    4.5 added a native owner (a user or group) on most objects — structured
    ownership that beats tag-scraping for agents. owner is now surfaced on every
    detail view as a friendly label, omitted when absent (byte-identical for
    pre-4.5 objects). In search, --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-circuit kind (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>, the nbox://virtual_circuit/<cid> resource,
    and a nbox search fan-out. Virtual circuits are multi-point overlays on
    device interfaces — no A/Z sides, no physical cables — so each termination is a
    flat device/interface ref (for navigation) rather than a cable-path
    diagram. The view also surfaces the optional provider_network,
    provider_account, type, status, tenant, owner (4.5), and
    description scalars. Model shape verified against the live 4.6.2 OpenAPI
    schema.

  • MCP response contracts: every nbox_get kind view pinned. The JSON shape
    each nbox_get kind 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 every nbox_get kind 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 and nbox_get. nbox journal interface <device>/<name> surfaces an interface's operator notes like every
    other kind, and nbox_get (MCP tool + nbox://interface/<device>/<name>
    resource) returns the same InterfaceView as nbox 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). The nbox open interface/<device>/<name> path now shares the same splitter.

  • NAT inside/outside enrichment (nbox ip). NetBox 4.6 embeds nat_inside
    (a brief IP ref) on a NAT outside IP and nat_outside (an array) on the
    inside IP. nbox ip now 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 from search --tag
    (which needs a q and 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 friendly kind/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). The TaggedReport JSON shape is
    pinned by a response-contract test (top-level tag/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 /48 is 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_get kind mac / nbox://mac/<addr>), and nbox 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 by parent
    (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 reads within "10.0.0.0/24". Completes the browse
    filter across every Nav-rail kind (name-bearing kinds by name__ic, prefix/IP by
    containment); the router's None → 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 with LOGIN_REQUIRED=False, so a
    200 status response can hide a bad/expired token. nbox status and MCP
    nbox_status now run a best-effort probe of NetBox 4.5's
    /api/authentication-check/ (gated on IsAuthenticated; returns the flat
    UserSerializer body) and surface the verdict in a new token field: valid
    (carrying the authenticated username/display), invalid (HTTP 401/403 — the
    token was rejected, with the server's reason), or unverified (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 status is 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!), so nbox status costs no extra serial round-trip for
    the token verdict.

Fixed

  • nbox search --tenant no longer over-broadens rack-groups / VM types.
    The 4.6 kinds rack-group and vm-type have no tenant filter in the
    NetBox OpenAPI schema, but the search fan-out declared one for them — so with
    --tenant active those branches sent a tenant= 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 --tenant is active, matching
    every other scope-mismatched branch. Caught by the new schema canary.

Changed

  • list_all follows the server's next link across pages. Pagination no
    longer computes offset += page_size itself; from the second page on it
    follows the next URL NetBox (DRF LimitOffsetPagination) 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_SIZE below 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...
Read more

v0.11.0

Choose a tag to compare

@github-actions github-actions released this 23 Jun 23:52

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__ic for devices/racks/sites/VLANs/VRFs/
    route-targets, cid__ic for circuits). The pane title shows the active filter and
    count (Devices · name contains "bfr" · 52), 1000+ signals the result cap (refine
    to narrow). Esc on the list clears the active filter; while editing, Esc
    instead cancels the edit (keeping the filter), and Ctrl+X or 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, so list_all sizes one page to it; the filter narrows
    past the cap. The list-count badge reads 1000+ 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

Choose a tag to compare

@github-actions github-actions released this 23 Jun 18:10

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 a p path 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 structured terminations
    array — each hop in its path includes a device ref ({id, name}) so an agent
    can jump straight to the device — plus the rendered diagram lines 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 with nbox 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 a Ctrl+A "advanced"
    toggle. The profile name is no longer hardcoded to default — it's derived
    from the URL host (https://netbox.acme.com → acme, falling back to prod
    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 stray default profile
    that duplicates one you add later.

Fixed

  • The --no-tui first-run setup hint printed the wrong profile add syntax
    (--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

Choose a tag to compare

@github-actions github-actions released this 22 Jun 21:29

Added

  • Interfaces are first-class in the TUI. A device detail's interfaces (i) and
    cables (c) tabs are now selectable lists — j/k move a cursor and Enter
    opens the interface's detail (its attributes plus the cable path). A new
    interface object kind backs this purely as a navigation/detail target: it's
    reached from a device, not the global search fan-out, so nbox search / MCP
    nbox_get keep their existing surface, and the new navigation row ids are
    non-serialized — the nbox device JSON/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 in nbox interface output.
  • 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 GET accepts an API path with or without the /api/ prefix. A bare
    path like dcim/devices/?limit=1 previously 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
    write dcim/..., api/dcim/..., or /api/dcim/...; absolute URLs are rejected so
    raw stays 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 3 for 302142, Prefixes with no
    count at all). Counts are now abbreviated — exact below 1000, then k/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 interface render endpoints as local-port → far-device far-port (was
    local-port -> far-port, remote device omitted). The far device also flows into
    the serialized connected_to labels, so nbox interface / nbox device JSON and
    MCP nbox_get now carry "<device> <port>" there — a content change to those
    string labels, not a shape change.

Security

  • Updated the transitive quinn-proto dependency to 0.11.15 to clear
    RUSTSEC-2026-0185. It's a lockfile-only dependency (pulled via reqwest); nbox
    builds without QUIC/HTTP3, so it isn't compiled into the binary — but the release
    audit gate scans the whole Cargo.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 raw paths to /api/ and reject absolute URLs by @lance0 in #65

Full Changelog: v0.8.1...v0.9.0

v0.8.1

Choose a tag to compare

@github-actions github-actions released this 22 Jun 17:16
f984fe6

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's brief representation, which omits those counts and returns the
    name + slug the 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

  • fix(browse): brief site list to avoid count-annotation timeout (0.8.1) by @lance0 in #63

Full Changelog: v0.8.0...v0.8.1