kubefwd-v1.25.182026-10-16
kubefwd v1.25.18
Security release. Everyone on v1.25.17 or earlier should upgrade.
v1.25.17 shipped with known vulnerabilities in golang.org/x/net, golang.org/x/crypto and golang.org/x/text. This release updates those modules and has no other changes. It includes all of v1.25.17's bug fixes. See the v1.25.17 notes for those.
Advisories fixed (#623)
| Advisory | Module | Reachable from kubefwd | Summary |
|---|---|---|---|
| GO-2026-6617 | x/net | yes | HTTP/2 server crash from an HPACK encoder race |
| GO-2026-6612 | x/net | yes | Double flow-control refund on HTTP/2 server streams |
| GO-2026-6611 | x/net | yes | Excessive CPU from repeated initial window changes |
| GO-2026-6610 | x/net | yes | HTTP/2 transport accepts malformed framing headers |
| GO-2026-6603 | x/net | yes | HTTP/2 server memory exhaustion from Trailer headers |
| GO-2026-6355, GO-2026-6354 | x/crypto | no (ssh) | DoS on deadlocked SSH channels |
| GO-2026-6303 | x/crypto | no (ssh) | SSH source-address option not enforced |
| GO-2026-6629 | x/text | no (precis) | Panic parsing crafted input |
"Reachable" is govulncheck's call-graph result for kubefwd's source.
| Module | v1.25.17 | v1.25.18 |
|---|---|---|
| golang.org/x/net | 0.57.0 | 0.60.0 |
| golang.org/x/crypto | 0.54.0 | 0.57.0 |
| golang.org/x/text | 0.40.0 | 0.42.0 |
| golang.org/x/sync | 0.22.0 | 0.23.0 |
| golang.org/x/term | 0.45.0 | 0.46.0 |
The integration-test module also moves to x/crypto 0.57.0 and x/sys 0.48.0. That module isn't part of the binary.
Verification
Built with Go 1.26.9. govulncheck reports no vulnerabilities in:
- kubefwd's source, the root module (./...)
- the integration-test module (-tags=integration ./...)
- an unstripped binary built from the release commit (-mode binary)
Scanning the released binaries (-mode binary on kubefwdDarwinarm64 and kubefwdLinuxx86_64) reports one advisory, GO-2026-5932: the golang.org/x/crypto/openpgp package is deprecated, and no fixed version exists. This is a false positive:
- kubefwd doesn't include the package. go list -deps on the release build configuration shows no openpgp package.
- The scanner can't check symbols in release binaries. They're stripped (-ldflags "-s -w"), so govulncheck falls back to matching the whole x/crypto module.
- Stripping is the only difference. The same code built unstripped scans clean.
Check the build provenance of any asset:
``bash
gh attestation verify kubefwdDarwinarm64.tar.gz --repo txn2/kubefwd
`
Checksums are in kubefwd_checksums.txt, which also has a sigstore bundle.
Install / upgrade
`bash
Homebrew (macOS / Linux)
brew upgrade kubefwd # or: brew install txn2/tap/kubefwd
Docker
docker pull txn2/kubefwd:v1.25.18 # also :v1.25.18alpine-3, :v1.25.18ubuntu-24.04
Or download a binary or package (deb, rpm, apk) for your platform from the assets below.
`
Run it (requires root for /etc/hosts and loopback aliases):
`bash
sudo -E kubefwd svc -n <namespace> --tui
``
Full changelog: https://github.com/txn2/kubefwd/compare/v1.25.17...v1.25.18
kubefwd-v1.25.172026-10-16
kubefwd v1.25.17
> [!WARNING]
> Superseded by v1.25.18. Do not install this version.
> v1.25.17 shipped with known vulnerabilities in golang.org/x/net. Five HTTP/2 advisories are reachable from kubefwd: GO-2026-6603, GO-2026-6610, GO-2026-6611, GO-2026-6612 and GO-2026-6617. It also has unreachable advisories in x/crypto and x/text. v1.25.18 fixes all of them and includes every fix below.
This release fixes three forwarding bugs:
- A goroutine and memory leak on idle forwards across sleep and wake.
- Forwards that kept pointing at the old port or pod after a Service was updated in place.
- Forwards that flapped when the API server interrupted a pod watch.
It also fixes a vulnerability in golang.org/x/text that kubefwd's own code reaches. It moves to the Kubernetes 0.37 client libraries and brings in four months of dependency updates.
The fixes below are all included in v1.25.18. Install v1.25.18 instead.
Bug fixes
Idle forwards no longer leak goroutines and memory (#622, refs #614)
Reported by @avni-ef: memory grew from 74 MB to 1.48 GB over two days on a machine that slept and woke.
kubefwd keeps each forward's connection alive by pinging it every 30 seconds. Stopping the pinger sent a signal that gave up after 100 ms. If a ping was in flight on a connection that died during sleep, which can take up to 30 seconds, the signal was missed. That pinger then kept running against a dead connection forever, and every reconnect added another one.
Now:
- Stopping is reliable. The stop signal is a closed channel, which a pinger sees even when it is busy at that moment, so stopping never times out.
- Pinging stops on every exit path from a forward, including early errors.
- A pinger also ends on its own when its connection closes.
- A pinger never opens a new stream on a connection that is shutting down.
A regression test reproduces the leak against the old code. The approach comes from #619 by @AdamMagued.
The report also shows a second, smaller leak of SPDY connection goroutines. Its root cause is in the Kubernetes streaming library, not in kubefwd. This release makes it less likely to happen, and #614 stays open to track it.
In-place Service updates now rebuild forwards (#617, fixes #615)
Contributed and reported by @idan-rahamim-lendbuzz.
When a Service changed in place, kubefwd kept forwarding to the old target. This happened with a Helm upgrade that moved a port to a sidecar, a changed targetPort, or a changed selector. Before, kubefwd only noticed a change in the number of ports, and even then it resynced from its stale copy of the Service. The only fix was a restart.
Now:
- Port or selector changes: kubefwd compares the Service's ports and selector, stops the affected forwards, waits for their cleanup to finish, and rebuilds them from the new spec. A targetPort change and a selector change that moves the Service to different pods both take effect within about a second.
- Selector removed: the Service's forwards stop.
- Selector added: a Service that previously had no selector, and was skipped, gets forwarded.
- Status-only and metadata-only updates are still ignored.
- TUI: shows a ServiceUpdated event for each rebuild.
Two related fixes come with it. A finishing forward no longer removes a replacement registered under the same key. Pod syncs are serialized, so a rebuild can't interleave with a reconnect or resync.
Tested on a KIND cluster against v1.25.16:
| Check | v1.25.16 | v1.25.17 |
|---|---|---|
| Initial forward | pass | pass |
| targetPort 5678 → 5679 | still hits 5678 | follows to 5679 |
| Selector moved to a different deployment | still hits the old pod | follows to the new pod |
| /etc/hosts cleaned up on exit | pass | pass |
A rebuild can give the Service a new loopback IP. The hostname follows it, but connections open during the rebuild are dropped.
Pod watch interruptions no longer flap forwards (#618, fixes #616)
Contributed and reported by @idan-rahamim-lendbuzz.
While waiting for a Pending pod to become Running, kubefwd used a single watch. If the API server sent an ERROR event or closed the stream, kubefwd treated that as a failed forward: it tore the forward down and backed off. On a busy cluster this made new forwards flap for about 25 seconds at startup.
Now an interrupted watch is retried after one second from a fresh read of the pod. The --timeout deadline and the stop signal work as before. The API server's error message is now logged, so the cause is visible.
Security
- golang.org/x/text (GO-2026-5970), now 0.40.0 (#563). Invalid input could cause an infinite loop. This one was reachable from kubefwd's own code: the MCP HTTP client calls http.Client.Do, which reaches the vulnerable normalization code. It affects v1.25.16, which shipped x/text 0.34.0. Dependabot never flagged it; govulncheck found it.
- golang.org/x/net (GO-2026-5942), now 0.57.0, and golang.org/x/crypto (GO-2026-5932), now 0.54.0 (#563 and later updates).
- Integration-test module only, not part of the binary (#560, #563):
- Moved from github.com/docker/docker to the moby/moby API and client modules by upgrading testcontainers-go to 0.43.0. This clears five Docker daemon advisories.
- Bumped x/crypto, which clears 13 more alerts.
- Fixed the integration module so it builds again.
- Docs toolchain only (#560, #620): Pygments 2.20.0 (ReDoS) and urllib3 2.8.0 (GHSA-8988-9cw3-xx77, GHSA-vxq7-64xx-v4gw, GHSA-gh4c-6fx4-qh6g).
Dependency updates
| Module | v1.25.16 | v1.25.17 |
|---|---|---|
| k8s.io/api, apimachinery, client-go, cli-runtime, kubectl, streaming, component-base | 0.36.2 | 0.37.1 |
| github.com/modelcontextprotocol/go-sdk | 1.6.1 | 1.8.0 |
| charm.land/bubbletea/v2 | 2.0.7 | 2.0.9 |
| charm.land/bubbles/v2 | 2.1.0 | 2.2.1 |
| charm.land/lipgloss/v2 | 2.0.4 | 2.0.6 |
| github.com/evertras/bubble-table | 0.22.3 | 0.23.0 |
| github.com/sirupsen/logrus | 1.9.4 | 1.10.2 |
| golang.org/x/sys | 0.46.0 | 0.48.0 |
| golang.org/x/net | 0.51.0 | 0.57.0 |
| golang.org/x/crypto | 0.48.0 | 0.54.0 |
| golang.org/x/text | 0.34.0 | 0.40.0 |
| golang.org/x/oauth2 | 0.35.0 | 0.36.0 |
Indirect dependencies were updated to match. Binaries are built with Go 1.26.9.
CI, build and supply chain
- Build provenance: the release workflow now uses GitHub's native artifact attestation (actions/attest) for SLSA build provenance (#529, #537). This fixes the provenance step that failed in the v1.25.16 release run. Each archive and .mcpb bundle has a sigstore bundle, and each archive has an SBOM.
- Action updates:
- actions/checkout 7.0.0 (#530)
- actions/setup-go 6.5.0 (#535)
- actions/setup-python 6.3.0 (#534)
- goreleaser/goreleaser-action 7.2.3 (#531)
- golangci/golangci-lint-action 9.3.0 (#532)
- docker/login-action 4.4.0 (#545)
- docker/setup-buildx-action 4.2.0 (#543)
- github/codeql-action 4.38.2
- codecov/codecov-action 7.1.1
- anchore/sbom-action 0.24.3
All actions stay pinned to full commit SHAs (#553, #559, #579, #591, #602, #620).
Verify this release
``bash
gh attestation verify kubefwdDarwinarm64.tar.gz --repo txn2/kubefwd
`
Checksums are in kubefwd_checksums.txt, which also has a sigstore bundle.
Install / upgrade
`bash
Homebrew (macOS / Linux)
brew install txn2/tap/kubefwd
brew upgrade kubefwd
Docker
docker pull txn2/kubefwd:v1.25.17 # also :v1.25.17alpine-3, :v1.25.17ubuntu-24.04
Or download a binary or package (deb, rpm, apk) for your platform from the assets below.
`
Run it (requires root for /etc/hosts and loopback aliases):
`bash
sudo -E kubefwd svc -n <namespace> --tui
``
Thanks
- @idan-rahamim-lendbuzz for #615, #616, #617 and #618: two clear bug reports, each followed by a well-tested fix.
- @avni-ef for the detailed l
kubefwd-v1.25.162026-06-20
kubefwd v1.25.16
This release modernizes the interactive Terminal UI by moving it onto the Charm v2 library line, hardens API-key startup logging, and rolls up routine dependency and CI maintenance.
Highlights
TUI migrated to Charm v2 (#527, closes #517)
The entire interactive TUI (--tui) has been migrated from the v1 Charm libraries to their v2 equivalents under the charm.land/... module path:
| Before | After |
| --- | --- |
| github.com/charmbracelet/bubbletea v1.3.10 | charm.land/bubbletea/v2 v2.0.7 |
| github.com/charmbracelet/lipgloss v1.1.0 | charm.land/lipgloss/v2 v2.0.4 |
| github.com/charmbracelet/bubbles v1.0.0 | charm.land/bubbles/v2 v2.1.0 |
| github.com/evertras/bubble-table v0.19.2 | github.com/evertras/bubble-table v0.22.3 |
These are distinct, incompatible type systems, so this was a full API migration rather than a version bump. Notable changes handled under the hood:
- View() returns tea.View - alt-screen and mouse capture moved from the removed tea.WithAltScreen() / tea.WithMouseCellMotion() program options to the AltScreen / MouseMode fields on the returned view, applied on every render path.
- Keys - tea.KeyMsg is now an interface; all handlers (services, logs, detail, browse, and help) dispatch on the concrete tea.KeyPressMsg.
- Mouse - tea.MouseMsg split into tea.MouseWheelMsg / tea.MouseClickMsg, with renamed button constants; all wheel-scroll and click-to-focus behavior preserved.
- Styling - lipgloss.Color is now a function returning image/color.Color; viewport sizing moved to SetWidth() / SetHeight() and option-based construction.
No user-facing behavior changes. All keyboard shortcuts (j/k, Enter, Tab, /, r, b, ?, q), traffic metrics, log streaming, theme switching, and auto-reconnect work exactly as before. The dark/light theme workaround was re-validated under lipgloss v2. Verified on ubuntu + macOS with go build, go vet, golangci-lint (0 issues), and the full test suite.
API-key authentication: docs and safer startup logging (#526)
Follow-up to the API-key auth feature (#508):
- Security: the API key is now only printed at startup when kubefwd generated it. A user-supplied KUBEFWDAPIKEY is referenced by name and never echoed to logs.
- Docs: the Authentication sections of openapi.yaml, api-reference.md, and mcp-integration.md were rewritten to cover the Bearer header, KUBEFWDAPIKEY / kubefwd mcp --api-key, the /api/health exemption, and the 401 response.
Dependency updates
- k8s.io/streaming 0.36.1 -> 0.36.2 (#523)
- k8s.io/kubectl 0.36.1 -> 0.36.2 (#525)
- k8s.io/cli-runtime 0.36.1 -> 0.36.2 (#522)
- golang.org/x/sys 0.45.0 -> 0.46.0 (#518)
- github.com/txn2/txeh 1.8.0 -> 1.8.1 (#516)
- github.com/quic-go/quic-go bump (#511)
CI / build
- codecov/codecov-action 6.0.1 -> 7.0.0 (#521)
- github/codeql-action 4.36.0 -> 4.36.1 -> 4.36.2 (#512, #520)
- actions/checkout 6.0.2 -> 6.0.3 (#514)
- docker/setup-qemu-action 4.0.0 -> 4.1.0 (#513)
Install / upgrade
``bash
Homebrew (macOS / Linux)
brew install txn2/tap/kubefwd
brew upgrade kubefwd
Or download a binary for your platform from the assets below.
`
Run it (requires root for /etc/hosts and loopback aliases):
`bash
sudo -E kubefwd svc -n <namespace> --tui
``
Full changelog: https://github.com/txn2/kubefwd/compare/v1.25.15...v1.25.16
kubefwd-v1.25.152026-05-29
kubefwd v1.25.15
Highlights
🔒 REST API now requires authentication (security)
The optional REST API (--api) and the HTTP MCP bridge previously served every endpoint — Kubernetes context enumeration, pod log reads, and port-forward creation — with no authentication. Because kubefwd runs as root via sudo -E, any local process could drive it against your kubeconfig. This release adds Bearer-token authentication, addressing advisory GHSA-vwjh-p4vp-9rp2 (#507, #508).
- The API key is resolved from KUBEFWDAPIKEY; if unset, a random 32-character hex key is generated and only its last 4 characters are logged on startup.
- All endpoints require Authorization: Bearer <key> except /api/health, which stays open for liveness probes.
- Token comparison uses crypto/subtle.ConstantTimeCompare to avoid timing side channels.
- kubefwd mcp reads KUBEFWDAPIKEY automatically; a new --api-key flag overrides it.
> [!IMPORTANT]
> Upgrade note: If you use --api or the HTTP MCP bridge, set a known key so automation/CI can authenticate instead of scraping a generated one from logs:
> ``bash
> export KUBEFWDAPIKEY=my-known-key
> sudo -E kubefwd svc -n my-namespace --api
> `
🐛 Multi-port services recover after a single port is reset (#509)
Fixed an unrecoverable zombie state in which a multi-port service that lost one port's connection — e.g. the TCP RST behavior of kubernetes/kubernetes#111825 — would never re-establish that port or restore its /etc/hosts entries. Auto-reconnect (-a, on by default in --tui) found the pod but did nothing, and only a full kubefwd restart recovered the service.
syncNormalService now reasons in terms of the pod being forwarded rather than a single port: it keeps every port of that pod and re-establishes any that were torn down independently. This also fixes a related regression where a healthy multi-port service could drop all but one port on the periodic resync. (#509, #510)
Dependencies
- golang.org/x/sys → 0.45.0 (#502)
- github.com/modelcontextprotocol/go-sdk → 1.6.1 (#501)
CI / Build
- goreleaser/goreleaser-action → 7.2.2 (#500)
- github/codeql-action → 4.36.0 (#504, #499)
- golangci/golangci-lint-action → 9.2.1 (#506)
- docker/setup-buildx-action → 4.1.0 (#505)
- docker/login-action → 4.2.0 (#503)
- codecov/codecov-action` → 6.0.1 (#498)
Full changelog: https://github.com/txn2/kubefwd/compare/v1.25.14...v1.25.15
kubefwd-v1.25.142026-04-22
What's New
MCP Registry Publish Fix (#470)
Fixes the Publish to MCP Registry step in the release workflow that had been failing on every release since v1.25.1. server.json used the snakecase key filesha256, but the MCP registry schema requires camelCase fileSha256. The workflow now also validates server.json against the official MCP schema (plus an explicit MCPB contract check for fileSha256) before publishing, preventing the class of bug that caused the v1.25.13 homebrew formula SHA drift.
Dependency Updates
Kubernetes
- k8s.io/cli-runtime 0.35.2 → 0.35.3
- k8s.io/kubectl 0.35.2 → 0.35.3
Go Modules
- github.com/moby/spdystream 0.5.0 → 0.5.1 (header-size/count limits, 24-bit frame length enforcement)
- github.com/modelcontextprotocol/go-sdk 1.4.1 → 1.5.0
- golang.org/x/sys 0.42.0 → 0.43.0
CI
- actions/setup-go 6.3.0 → 6.4.0
- actions/upload-artifact 7.0.0 → 7.0.1
- actions/upload-pages-artifact 4.0.0 → 5.0.0
- actions/deploy-pages 4.0.5 → 5.0.0
- docker/login-action 4.0.0 → 4.1.0
- github/codeql-action 4.34.1 → 4.35.1
- sigstore/cosign-installer 4.1.0 → 4.1.1
Docker
- Ubuntu base image digest bump (186072b → 84e77de)
Changelog
* 5eab2dc ci: fix MCP Registry publish step (fileSha256 field name) (#470)
* 8cfcbd9 deps: bump github.com/moby/spdystream from 0.5.0 to 0.5.1 (#460)
* af76b37 ci: bump actions/upload-pages-artifact from 4.0.0 to 5.0.0 (#459)
* 337d352 ci: bump actions/upload-artifact from 7.0.0 to 7.0.1 (#458)
* eaffc2a deps: bump golang.org/x/sys from 0.42.0 to 0.43.0 (#457)
* 0ab9d85 docker: bump ubuntu from 186072b to 84e77de (#456)
* bd6e739 ci: bump docker/login-action from 4.0.0 to 4.1.0 (#455)
* a2469b1 deps: bump github.com/modelcontextprotocol/go-sdk from 1.4.1 to 1.5.0 (#454)
* 1f8cd06 ci: bump CI dependencies (combined) (#453)
* ac6b038 deps: bump k8s.io/cli-runtime and k8s.io/kubectl from 0.35.2 to 0.35.3 (#447)
kubefwd-v1.25.132026-03-29
What's New
Wayland Clipboard Support (#446)
The TUI copy feature now supports Wayland environments via wl-copy, in addition to existing X11 (xclip/xsel) and macOS (pbcopy) support. Clipboard detection order: wl-copy → xclip → xsel.
Release Process Fix (#395)
Releases are now created as drafts so MCPB bundles can be uploaded before publishing.
Dependency Updates
Kubernetes
- k8s.io/api 0.35.0 → 0.35.1
- k8s.io/apimachinery 0.35.2 → 0.35.3
- k8s.io/cli-runtime 0.35.0 → 0.35.2
- k8s.io/client-go 0.35.0 → 0.35.3
- k8s.io/kubectl 0.35.0 → 0.35.2
- k8s.io/klog/v2 2.130.1 → 2.140.0
Go Modules
- github.com/charmbracelet/bubbles 0.21.1 → 1.0.0
- github.com/gin-gonic/gin 1.11.0 → 1.12.0
- github.com/modelcontextprotocol/go-sdk 1.2.0 → 1.4.1
- github.com/txn2/txeh 1.7.0 → 1.8.0
- golang.org/x/sys 0.40.0 → 0.42.0
CI
- actions/setup-go 6.2.0 → 6.3.0
- actions/upload-artifact 6.0.0 → 7.0.0
- anchore/sbom-action 0.22.1 → 0.24.0
- codecov/codecov-action 5.5.2 → 5.5.3
- docker/login-action 3.7.0 → 4.0.0
- docker/setup-buildx-action 3.12.0 → 4.0.0
- docker/setup-qemu-action 3.7.0 → 4.0.0
- github/codeql-action 4.32.1 → 4.34.1
- goreleaser/goreleaser-action 6.4.0 → 7.0.0
- sigstore/cosign-installer 4.0.0 → 4.1.0
Docker
- Ubuntu base image updated (4 digest bumps)
kubefwd-v1.25.122026-02-10
What's New
TUI Light/Dark Theme Support (#393)
The TUI now supports light terminal backgrounds with a new --theme flag and KUBEFWD_THEME environment variable.
``bash
CLI flag
sudo -E kubefwd svc -n default --tui --theme light
Environment variable
KUBEFWD_THEME=light sudo -E kubefwd svc -n default --tui
``
The light palette uses darker color variants (dark gold, dark green, dark teal, black text) optimized for readability on light terminal backgrounds. The default remains the dark theme.
Bug Fixes
- Fix MCPB build script for Windows (#394): Corrected the goreleaser dist directory path for Windows CGO cross-compilation builds.
Changelog
* TUI: add light/dark theme support (#393)
* fix: use correct goreleaser build ID for Windows MCPB bundles (#394)
kubefwd-v1.25.102026-02-04
Bug Fixes
- Windows VPN DNS resolution fixed (#390): Windows users with VPN connections can now connect to clusters when the API server hostname requires VPN-specific DNS resolution. The Go 1.24 upgrade in v1.23.0 broke this because Go's pure-Go DNS resolver doesn't respect Windows per-adapter DNS settings.
Changes
- Windows builds now use CGO (CGO_ENABLED=1) with MinGW cross-compilation to use the native Windows DNS API
- Linux and macOS builds remain static (CGO_ENABLED=0) for Alpine compatibility
Changelog
* 33c0ab84ee823b2469ff3d78d71c9fcd18b40752 Add attributions page and CNCF Landscape badge to documentation (#374)
* 516d0026a17a2e719a265fbbe6445f081820b880 Add kubefwd documentation files (llms.txt and llms-full.txt) detailing features, installation, usage, and REST API. (#373)
* f2ad8b73e1713f82ff597770894e18447e789952 Bump urllib3 in /.github in the pip group across 1 directory (#371)
* c08d613674f2a9751e77836a40db30f48b5008b5 Enable Windows CGO cross-compilation in release workflow (#391)
* cdf18dbe80ee9e272f4570f9474549ac097e7e90 Update Installation Documentation for Official Package Managers (#379)
* f31c27dc9dd67970db6f42653debdcf26efcf7c8 ci: bump actions/checkout from 6.0.1 to 6.0.2 (#384)
* fe0291d3c5a5f7e19cddd447f3af9146c5c0c27a ci: bump actions/setup-go from 6.1.0 to 6.2.0 (#376)
* 92e88ef1123d2a4244bf0d2891fdd9e6c2202880 ci: bump actions/setup-python from 6.1.0 to 6.2.0 (#385)
* 7a8adef20fdadf39fb7bc434dcc5ff1473c7b23a ci: bump anchore/sbom-action from 0.21.0 to 0.21.1 (#377)
* ff3286d2f9f0220d7d704a3a5057467d3c2b9b98 ci: bump anchore/sbom-action from 0.21.1 to 0.22.1 (#383)
* b40fa9de3dade1aaf60038227ef160805896b93b ci: bump docker/login-action from 3.6.0 to 3.7.0 (#389)
* e5ee353be82f1ed045a2f7e604cb6ea3d9438330 ci: bump github/codeql-action from 4.31.10 to 4.32.0 (#382)
* 22b2b83587f91794edc5e6dcdab0d5521db7ba97 ci: bump github/codeql-action from 4.31.9 to 4.31.10 (#378)
* 0fd5f36834d5916669af2c9f3e18ff6d335264bc ci: bump github/codeql-action from 4.32.0 to 4.32.1 (#388)
* 7bd7d1026574dada049bccd49aad3c7a1a0f6653 deps: bump github.com/charmbracelet/bubbles from 0.21.0 to 0.21.1 (#386)
* 15d300e40ca07249d23be90e924a09a85428b4a5 deps: bump github.com/sirupsen/logrus from 1.9.3 to 1.9.4 (#380)
* 4b472ca9bbdf37afe0497d970ee1c15dc76cb2d7 deps: bump golang.org/x/sys from 0.39.0 to 0.40.0 (#375)
* 143c055a16d09a618695324582e20b8c411bcbd7 docker: bump alpine from 865b95f to 2510918 (#387)
* fbf95f7a5168a55d30650604ad7545db407e39b2 docker: bump ubuntu from c35e29c to cd1dba6 (#381)
kubefwd-v1.25.92026-01-08
MCP Server Improvements
Graceful Startup Without API Connection
The MCP server now starts and registers all tools even when the kubefwd API is unavailable. This enables:
- Registry Discovery: Smithery, Glama.ai, and other MCP registries can now introspect kubefwd's tool definitions without requiring kubefwd to be running
- Better Developer Experience: Tools return helpful, structured error messages guiding users to start kubefwd when the API isn't available
Consistent Error Handling
All MCP tool handlers now return structured ProviderUnavailableError responses with:
- Clear diagnosis explaining the issue
- Suggested actions to resolve
- Retry recommendations
Example error response:
``json
{
"code": "provider_unavailable",
"message": "State reader not available",
"diagnosis": "kubefwd may not be running. Start it with: sudo -E kubefwd",
"suggestedactions": [{"action": "gethealth", "hint": "Check kubefwd status"}],
"retry_recommended": true
}
`
New Files
- glama.json: Configuration for Glama.ai MCP registry claiming
- docs/images/kubefwd-logo.svg: Logo asset for documentation
Testing
- Added unit tests for MCP command package (cmd/kubefwd/mcp/mcp_test.go)
- Test coverage for cmd/kubefwd/mcp: 0% → 13.5%
- All existing tests pass
- Lint clean
Upgrade Notes
This is a non-breaking change. The MCP server behavior is improved but maintains backward compatibility. Users who previously ran kubefwd mcp without the API available will now see the server start (with warnings) instead of immediately exiting.
Full Changelog
- Improve MCP server initialization and API connection handling
- Replace generic error messages with structured NewProviderUnavailableError
- Add unit tests for MCP command flags and API connection validation
- Add glama.json` configuration file for registry claiming
- Add kubefwd logo SVG for documentation
Changelog
* 7881c5a68a87fcd446e02fc3a81b5acbe580ac92 Fix gofmt -s simplification issues
* 6efedb9669701d4d0744c18bfbf038112f7adcb6 MCP server improvements (#372)
* dd8a3d2c69cbbef80cefafe315e11d47c42dc724 Quality/gocyclo (#363)
* cd084caeffc75b30f0cf1343c3ee4ec402748d58 Quality/housekeeping (#369)
* 080853c342563ecf22b5e027579833ba3ff450b8 Replace outdated TUI guide with revamped User Guide (#360)
* bdacb6d4ca6b5964b4d0e6ddd88668ef24ad96d3 Revert "Fix gofmt -s simplification issues"
* 6ad2509647c6f8e1927a48f0ca733f2920980edb Tests/coverage (#362)
* b96ea6df1fec1947f4c9aa277f64bf66e54e5a4d ci: bump actions/checkout from 4.2.2 to 6.0.1 (#370)
* a9610532a46bb46b23e2d94d67baf2ca500ed669 ci: bump actions/setup-go from 5.2.0 to 6.1.0 (#368)
* a84426d5921903d1c252cf57af3bc1f20c1bde12 ci: bump codecov/codecov-action from 5.4.3 to 5.5.2 (#365)
* 9e9da2d06017f39719263b0d9d38a78270371dfd ci: bump github/codeql-action from 3.27.9 to 4.31.9 (#367)
* f265619a957f296463c833ef187604223f7bc2a6 ci: bump golangci/golangci-lint-action from 6.1.1 to 9.2.0 (#366)
* e8b851fe697d89ac1de35c503e98d036ac8fe491 ci: bump ossf/scorecard-action from 2.4.1 to 2.4.3 (#364)
kubefwd-v1.25.82026-01-03
Bug Fixes
- fix: Windows hosts path auto-detection (#359) - kubefwd now automatically detects the correct hosts file path based on the operating system:
- Windows: C:\Windows\System32\drivers\etc\hosts
- Linux/macOS: /etc/hosts
Previously, the --hosts-path flag defaulted to /etc/hosts on all platforms, causing kubefwd to fail immediately on Windows with "Hosts path does not exist: /etc/hosts".
Changes
- Added runtime import to detect OS at runtime
- Added defaultHostsPath() function that returns OS-appropriate path
- Updated --hosts-path flag to use dynamic default
Windows Support
This release fixes a critical issue that prevented kubefwd from running on Windows without manually specifying the --hosts-path flag. Windows users can now run kubefwd without any additional configuration:
Before (Windows):
``
kubefwd svc -n mynamespace
FATA[12:34:18] Hosts path does not exist: /etc/hosts
`
After (Windows):
`
kubefwd --help | findstr hosts-path
--hosts-path string Hosts file path. (default "C:\Windows\System32\drivers\etc\hosts")
`
Installation
Windows
Download from GitHub Releases and extract to your PATH.
`powershell
Download and extract (PowerShell)
Invoke-WebRequest -Uri "https://github.com/txn2/kubefwd/releases/download/v1.25.8/kubefwdWindowsx86_64.zip" -OutFile kubefwd.zip
Expand-Archive kubefwd.zip -DestinationPath C:\kubefwd
Add C:\kubefwd to your PATH
`
macOS (Homebrew)
`bash
brew install txn2/tap/kubefwd
`
Linux
Download from GitHub Releases or use your package manager.
Verifying This Release
All release artifacts are signed with Sigstore for supply chain security. Each binary archive has its own .sigstore.json signature bundle.
Verify Individual Binaries
`bash
Example: Verify the Linux x86_64 binary
curl -LO https://github.com/txn2/kubefwd/releases/download/v1.25.8/kubefwdLinuxx86_64.tar.gz
curl -LO https://github.com/txn2/kubefwd/releases/download/v1.25.8/kubefwdLinuxx86_64.tar.gz.sigstore.json
cosign verify-blob \
--bundle kubefwdLinuxx86_64.tar.gz.sigstore.json \
--certificate-identity-regexp="https://github.com/txn2/kubefwd/.*" \
--certificate-oidc-issuer="https://token.actions.githubusercontent.com" \
kubefwdLinuxx86_64.tar.gz
`
Verify Checksums File
`bash
curl -LO https://github.com/txn2/kubefwd/releases/download/v1.25.8/kubefwd_checksums.txt
curl -LO https://github.com/txn2/kubefwd/releases/download/v1.25.8/kubefwd_checksums.txt.sigstore.json
cosign verify-blob \
--bundle kubefwd_checksums.txt.sigstore.json \
--certificate-identity-regexp="https://github.com/txn2/kubefwd/.*" \
--certificate-oidc-issuer="https://token.actions.githubusercontent.com" \
kubefwd_checksums.txt
`
Available Signed Artifacts
| Platform | Archive | Signature |
|----------|---------|-----------|
| Linux x8664 | kubefwdLinuxx8664.tar.gz | kubefwdLinuxx86_64.tar.gz.sigstore.json |
| Linux arm64 | kubefwdLinuxarm64.tar.gz | kubefwdLinuxarm64.tar.gz.sigstore.json |
| Linux armv6 | kubefwdLinuxarmv6.tar.gz | kubefwdLinuxarmv6.tar.gz.sigstore.json |
| Linux i386 | kubefwdLinuxi386.tar.gz | kubefwdLinuxi386.tar.gz.sigstore.json |
| macOS x8664 | kubefwdDarwinx8664.tar.gz | kubefwdDarwinx86_64.tar.gz.sigstore.json |
| macOS arm64 | kubefwdDarwinarm64.tar.gz | kubefwdDarwinarm64.tar.gz.sigstore.json |
| Windows x8664 | kubefwdWindowsx8664.zip | kubefwdWindowsx86_64.zip.sigstore.json |
| Windows i386 | kubefwdWindowsi386.zip | kubefwdWindowsi386.zip.sigstore.json |
Docker Image Verification
`bash
cosign verify txn2/kubefwd:v1.25.8 \
--certificate-oidc-issuer="https://token.actions.githubusercontent.com" \
--certificate-identity-regexp="https://github.com/txn2/kubefwd/.*"
``