Skip to content

Porchlight 0.10.0: doctor, per-command help, Stop, single-repository rescans and an accessible interface

Choose a tag to compare

@AES256Afro AES256Afro released this 20 Nov 20:07
· 30 commits to main since this release

Porchlight 0.10.0. Changes since 0.9.0: a doctor command and help for each command, stopping a scan, scanning one repository again, an interface that meets WCAG AA and keeps keyboard focus, scanned text that can no longer act on a terminal or an export, two new BoxPilot settings, and a README that describes the whole system.

Installation

Platform Form Installation
Linux, macOS Command line and web interface git clone --branch v0.10.0 https://github.com/AES256Afro/Porchlight.git, then npm run setup and node cli/bin/porchlight.js ui. Requires Node.js 22.18 or later, git, gitleaks and osv-scanner. node cli/bin/porchlight.js doctor lists anything missing
Any host that runs Linux containers (amd64, arm64) Container image ghcr.io/aes256afro/porchlight:0.10.0. Also published as ghcr.io/aes256afro/securityx:0.10.0, the path BoxPilot servers pin
macOS 13.5 or later on Apple silicon Desktop app Porchlight-0.10.0-arm64.dmg, below
Windows Not supported in this release. Planned in docs/PLAN-WINDOWS.md

Desktop app for macOS

  1. Open the DMG and drag Porchlight into Applications. It replaces 0.9.0; scans and settings are kept.
  2. The app is not notarized by Apple. On first open, macOS reports "Porchlight Not Opened". Choose Done, then System Settings → Privacy & Security → Open Anyway beside "Porchlight was blocked".

The app carries Node.js 26.7.0, gitleaks 8.30.1 and osv-scanner 2.7.1, with their licences in Porchlight.app/Contents/Resources/licenses. Newer scanners installed with Homebrew take precedence.

SHA-256: 7df44bc43a40d9c779f97f45faf8b095ce9475e95611226bb6b385d0ea73a3ad

Upgrade steps

  • No database migration. A monitor you deploy yourself does not need redeploying: its only change is the wording of the note about hosts left for later scans, which a redeploy picks up.
  • Data in ~/.porchlight carries over unchanged.

Changes

Command line

  • porchlight <command> --help prints that command's options, porchlight --version prints the version, and a mistyped command is named in the error.
  • porchlight doctor checks Node.js, git, gitleaks, osv-scanner, Porchlight's data folder, the last scan and the settings for the monitor, the model, GitHub and Cloudflare, and gives the command that fixes each problem. It only reads and prints no secret. It asks the monitor and a local model whether they answer, unless given --offline; a hosted model is never contacted. It exits 1 when something Porchlight cannot work without is missing.
  • repos scan prints one line per repository as it finishes, with its time and number of findings, to the error stream, so the report itself can still be piped. A repository's two scanners run together, and several repositories run at once, by the number of processor cores.
  • repos scan --save keeps the scan where the web interface reads it, and in its history. Without it, a scan in CI writes nothing to the home folder.

Scans

  • A running scan can be stopped. Its scanners are stopped and nothing is saved; the previous scan stays as it was.
  • One repository can be scanned again: Findings → By repository → Scan this repository again. Findings from a scanner that was missing or failed that time are kept. The report keeps its scan time, its history entry and the model's judgements.

Text taken from scanned repositories

  • Terminal control characters are replaced in every export format and in everything the command line prints: C0 characters other than tab and line breaks, bare carriage returns, DEL, C1 characters and bidirectional overrides. JSON escapes them instead, so its data is unchanged.
  • The scan's own Markdown report escapes the names, paths and titles it prints.
  • Markdown exports no longer contain text GitHub would turn into a link or a mention: ://, mailto:, www. and @ are broken, and @name and @org/team are shown as code.
  • Reports and exports written with --out are readable by their owner only (0600).
  • Two different secrets on one line are kept apart, by their entropy, which is never stored.
  • An upgrade that may break before version 1.0 (for example 0.4 to 0.5) carries a warning.
  • Exports accept the page's severity=none filter.

Web interface

  • Every look meets WCAG AA contrast, in light and dark. A test checks the contrast and the type, corner and spacing scales.
  • Keyboard focus returns to the same control after a redraw, with the caret kept. A button stays focusable while its work runs. The Roadmap's phases are a tab list with arrow keys.
  • Scan progress is announced when a scan starts, twice a minute and when it ends, instead of every 800 ms. A failed status request is retried before the scan is reported as failed.
  • Error messages stay until dismissed. A refused key says why, and how to start Porchlight again from a terminal, the Mac app or BoxPilot.
  • Filters carry between All findings, By repository and the Roadmap. New: Clear filters, severity chips on the Roadmap, the By repository order in the address, and paging.
  • The Overview opens with the warning about credentials that look live. Its tiles link to their findings, each finding links to its repair, and each repair to its findings.
  • The layout fits a phone: a row of tiles never leaves one alone, the sections get their own line, and the setup steps and the domain table fit.
  • A model's answer can be stopped where it is waited for. Other ask buttons wait while one question is answered, instead of being refused.
  • Text that holds on every platform says "this computer" instead of "this Mac": the model choices, the access settings and the server's messages.

BoxPilot

  • Folder levels to look through (PORCHLIGHT_SCAN_DEPTH, 0 to 6, default 3).
  • Scan again by itself (PORCHLIGHT_SCAN_EVERY_HOURS): only when asked, every day or every week.

Documentation

  • The README describes the whole system: subsystems, operating modes, the data that leaves the computer, design constraints with the test that verifies each, failure behaviour and limits, with new figures. It no longer describes Porchlight as a Mac application.
  • The release steps are in RELEASING.md.

Verification

  • CI for tag v0.10.0, on Ubuntu: npm run check, npm test for both packages, and a container build checked by scripts/container-smoke.sh all passed before the image was published (run 44807997571).
  • Image digest: sha256:a792db09cf74774752a62cefb7ca19ea1a738bda18e6083b897177bb95cdcb43, the same under both names, for linux/amd64 and linux/arm64, with an SBOM and build provenance.
  • The DMG was built from the release commit only. Its bundled programs link only to macOS's own libraries, and a search of every file in it found no path, name, host name, token or monitor address from the computer that built it.

Known limitations

  • Windows is not supported yet.
  • On Linux, the computer check covers credentials in files and installed packages only.
  • The macOS app runs on Apple silicon only and is not notarized.
  • The Cloudflare audit has been verified against one real account. Check its results against the Cloudflare dashboard.

Full list of changes: v0.9.0...v0.10.0