Skip to content

portop v0.2.1

Choose a tag to compare

@github-actions github-actions released this 15 Oct 23:32
· 93 commits to main since this release
9b831ec

A security and maintenance release. Upgrading is recommended, especially if you run portop with sudo or as Administrator.

Security fixes

  • Terminal escape injection: process names, command lines, paths, reverse-DNS names and Compose values are now cleaned of ANSI/OSC escape sequences and control characters before they reach the terminal. A local process could otherwise change the state of the terminal running portop. --json output is unchanged.
  • Kill confirmation and PID reuse: the TUI now checks that the selected process is still the same one (same start time) right before sending SIGTERM/SIGKILL, and refuses if it changed. Previously, if the process exited while the dialog was open and its PID was reused, an unrelated process could be signalled. The web dashboard already did this check.
  • Installer checksum: install.sh now refuses to install when checksums.txt cannot be downloaded, when the archive is not listed in it, or when no SHA-256 tool is available, instead of warning and installing anyway.

Fixes

  • portop --compose no longer hangs on port ranges ending at 65535 (for example 65535-65535).

Under the hood

  • Built with Go 1.26.9 (Go 1.24 is out of support); golang.org/x/sys and golang.org/x/text updated, YAML moved to the maintained go.yaml.in/yaml/v3. govulncheck reports no vulnerabilities on Linux, macOS or Windows.
  • Release builds are pinned (GitHub Actions by commit SHA, GoReleaser by version), and every published file has a GitHub artifact attestation: gh attestation verify <file> --repo padovanl/portop.
  • The Snap Store and Homebrew are now updated automatically on every release, and the snap is available for arm64 as well as amd64.

Thanks to @GrimOutlook for the audit that reported these issues.

Changelog

Fixes

  • 3fd41e8 fix(compose): stop port range expansion from wrapping at 65535
  • 152af72 fix(install): refuse to install when the checksum cannot be verified
  • 62c455e fix(ui): verify process identity before sending kill signals
  • 2adceb0 fix: sanitize untrusted text before rendering it in the terminal

Other changes

  • fb07829 build: add the snapcraft project for the Snap Store
  • 7f0a05f build: migrate to the maintained go.yaml.in/yaml/v3 module
  • 4e6e1c2 build: move to Go 1.26 and refresh x/sys and x/text
  • 033e96c ci: pin workflow dependencies and attest release artifacts
  • ba9729e ci: publish releases to the Snap Store and Homebrew
  • 47ba987 ci: run govulncheck for every target OS
  • 2e27ec8 test(install): keep the host PATH after the command mocks
  • f443d0a test(ui): stub process identity lookup in kill dialog tests