Repository navigation
Releases
v1.2.0
Platform change:
- Release binaries are built with Go 1.27, which requires macOS 13 Ventura or later. On macOS 12 Monterey, stay on v1.1.1 or build from source with Go 1.26 (
go installstill works with Go 1.26). Linux and Windows requirements are unchanged. - On macOS and Windows,
SSL_CERT_FILEandSSL_CERT_DIRare now honored when set: the HTTPS checks verify certificates against those roots instead of the system store. Nothing changes when they are unset.
Dependency updates:
- doublestar 4.10.7 and golang.org/x/net 0.63.0. govulncheck reports no vulnerabilities in this release.
No changes to scan output, exit codes, or the JSON contract. Scans of real projects give results identical to v1.1.1.
v1.1.1
Install fix:
npm install @preflightsh/preflightworks on Windows again. The npm package's installer passed the archive paths to PowerShell in a way that left them empty, so extraction failed. It now uses thetarthat ships with Windows, with a PowerShell fallback, and both paths are tested on a Windows runner. The Homebrew, install script, Docker, andgo installchannels were not affected.
npm package changes:
- The package carries the release's archive checksums, so the download is checked against hashes published with the package and not only against the release it came from.
- The installer honors
HTTPS_PROXY, npm's proxy settings, andNO_PROXY. SetPREFLIGHT_SKIP_DOWNLOAD=1to install the package without the binary, for example offline;preflightthen says how to fetch it. - An unsupported platform gets a one-line error, and a damaged or missing binary is reported clearly with exit 127.
- The wrapper no longer exits 0 when the binary is ended by SIGPIPE or SIGUSR1.
- Node 18 or later is required.
Other fixes:
preflight historyshows how many checks a run skipped, andhistory <id>adds a "Not verified" line with the skipped and inconclusive counts.history --format jsonnow includes both counts.- The README marks
security_headers,secrets, andenv_parityas opt-in, lists every cause of exit 64, and usescurl -fsSLin install commands.
No changes to scan output, exit codes, or the JSON contract. history --format json gains the skipped and inconclusive fields the dashboard already returned.
v1.1.0
Security fixes:
- A scanned repository's git config could still run a command during a scan. A repository set up as a partial clone with a missing
.gitignoreblob made git start a fetch, which ran the repository'score.sshCommand. Git now runs with fetching and every transport turned off. This needs a repository whose.gitdirectory came from someone else (an archive or a shared volume);git clonedoes not copy config. Upgrade if you scan code you did not write. npm auditandyarn auditno longer read your real~/.npmrc. A project.npmrccould point npm at it and send your registry token through a proxy the project chose. npm's user config, global config, cache, and logs are now pinned to a scratch directory, andcargo-audituses a scratch advisory database.envParity.envFile,envParity.exampleFile, andseoMeta.mainLayoutmust be paths inside the project. A leading/or any..is a usage error (exit 64), and files are opened so that a symlinked directory cannot lead outside the project.- Terminal escape sequences are stripped from config notes, errors,
history, andauthoutput.
Behavior changes:
- A block under
checks:without anenabled:key now turns the check on. Writingsecrets.allowlistorenvParity.envFileused to leave the check off with nothing printed.enabled: falsestill turns a check off. - A scan where no check ran (everything ignored or skipped) exits 1 instead of 0.
preflight initstops and writes nothing when its input ends before the questions do. Pass--yesin scripts and CI to accept the detected defaults. Replacing an existing config still needs--force.- Tracked files under
build/,vendor/,dist/,tmp/,deps/,target/, andcoverage/are now scanned for secrets. They used to be skipped by directory name and reported clean. - A host that blocks the scanner (401, 403, 429, a bot challenge page), answers 5xx, or is down now gives an inconclusive result for
robots_txt,sitemap,llms_txt,ads_txt,humans_txt,index_now,error_pages,favicon,health_endpoint, andsecurity_headers, instead of "not found". robots_txtwarns when production servesDisallow: /for all agents or a noindex homepage. A staticrobots.txt,sitemap.xml, orllms.txtin the repo no longer passes when the live site does not serve it.sslgrades expiry against the certificate's lifetime, so a short-lived certificate is no longer an error on the day it is issued. Anhttp://production URL that redirects to valid HTTPS is a warning, not an error.composer auditruns with--locked, so it audits the lockfile withoutvendor/. It used to pass without auditing anything.- Inside the Docker image, which has no git, the secrets check is inconclusive for a mounted git repository.
False positive fixes:
- Secrets: environment variable names starting
GOOGLE_, PEM header literals in source, placeholders such asAKIAIOSFODNN7EXAMPLE, and key shapes inside longer identifiers or base64 runs are no longer errors. A key-shaped value in an example file is a warning. - Service checks now accept what
initdetects: Redis through env and Laravel config, Stripe with Cashier, Plausible in any template,fathom-client,from openai import OpenAI, current Google AI packages and models, Rollbar, Honeybadger, Datadog, and env names for the error trackers. - Legal pages follow same-site redirects, try
.htmlpaths and footer links, and fall back to source. www_redirectand the email domain fallback skip platform subdomains such asmyapp.vercel.app.security_headersno longer fails on staging when production passes, measures headers on a 404 homepage, and accepts a strict CSP with'strict-dynamic'and a CSP set by a meta tag.- Malformed SPF and DMARC records are reported as such, not as a DNS error.
- Debug statements:
print_r($x, TRUE), rootscripts/andbin/, test directories, and CMS core are no longer flagged.
New detections:
- Secrets: Drupal, SQL, Terraform state, and
Dockerfile.*files; credentials in URLs; AWS temporary keys, Shopify, DigitalOcean, Slack app, and Supabase service-role keys. - Debug statements in Drupal
.modulefiles, Elixir, and source under nestedassets/,logs/, andstorage/directories. - Service checks no longer pass on a comment or a package description.
Performance fixes:
- The debug statement scan is linear. A file with 13,000
console.loglines went from 81 seconds to under one. - Declared services share one walk of the tree. Twenty services over 2,000 files went from 47 seconds to under two.
Other fixes:
--onlyand--skipIDs are checked before any request and may have spaces after commas.history <id>shows skipped and inconclusive checks as such.preflight ignorechanges only the ignore list and leaves the rest of the file as written.initasks again for a bad email domain, detects stacks and layouts in monorepos, and no longer reads virtualenvs.- Built with Go 1.26.11 (GO-2026-6859, not reachable in the CLI).
The JSON output shape, schema_version 2, and check IDs are unchanged. Exit codes are unchanged except that a scan with no checks now exits 1.
v1.0.1
Security fix:
- Scanning a repository no longer lets it run commands through its own git config. Preflight runs git in the scanned directory to tell tracked files from ignored ones, and a repository could set
core.fsmonitorto a command, either in a shipped.git/configor in a subdirectory laid out as a bare repository (which survivesgit clone). Runningpreflight scanon such a checkout ran that command as the scanning user. Every git call now turns offcore.fsmonitorand hooks and refuses implicit bare repositories. Upgrade if you scan repositories you do not fully trust, such as fork pull requests in CI.
No changes to scan output, exit codes, or the JSON contract for ordinary repositories. A directory laid out as a bare repository is no longer treated as a git work tree, so it is scanned with the same filename rules used outside git.
v1.0.0
Preflight 1.0. Scanning works the same as 0.25.0, and the contract is now stable: everything listed below holds for every 1.x release. A change that breaks any of it waits for 2.0.
What 1.x keeps stable:
- preflight.yml: strict parsing, so an unknown key is a usage error (exit 64) that names its YAML path.
- JSON output (scan --format json, history --format json, and published runs): schema_version 2, with cli_version, project, summary (ok, warn, fail, skipped, inconclusive), and checks (id, title, passed, skipped, inconclusive, severity, message, suggestions). New fields may be added; existing ones keep their names and meaning.
- Exit codes: 0 pass, 1 warnings, 2 errors, 64 usage error, 130 cancelled.
- Check and service IDs: snake_case, one name per check.
Upgrading from before 0.25:
- Breaking change: the pre-0.22 camelCase check IDs (seoMeta, robotsTxt, and the rest) were removed in 0.25.0 and are not coming back. An old name in ignore, --only, or --skip exits 64 with an error that names the new ID, and preflight ignore rewrites an old entry in place. The v0.22.0 notes said these names would keep working through 1.x; we changed that so 1.x has exactly one name for each check.
- JSON consumers written against schema_version 1 should read the skipped and inconclusive fields. A skipped check has passed: false and counts only toward summary.skipped.
- 0.24.0 and 0.24.1 rejected configs written for earlier versions (emailAuth without a domain, groq service keys, bare ignore words). 0.25.0 fixed those, and they load in 1.0.
Other changes:
- SECURITY.md: 1.x is now the supported line, and releases before 1.0 no longer get fixes.
Scan output, exit codes, and the JSON contract are unchanged from 0.25.0.
v0.25.0
The release before 1.0. It fixes the regressions v0.24.0 introduced, so configs written for earlier versions scan the way they used to, and it settles the last parts of the output contract that 1.0 will freeze.
Regression fixes:
- A config with checks.emailAuth enabled and no domain failed to load in v0.24.0 and v0.24.1 (exit 64), so every config written before v0.24.0 with email authentication on could not scan at all. It loads again. Without a domain, email_auth checks the production URL's domain as it did before v0.24.0 and says so; with no production URL it is skipped.
- A checks block without enabled (for example healthEndpoint with only a path, or seoMeta with only mainLayout) turned the check off. A missing enabled now keeps the default; only enabled: false turns a check off. The healthEndpoint block older versions of preflight init wrote without asking (enabled: false, path: /health) keeps its earlier meaning and prints a note, and init no longer writes it.
- Debug statements behind dev guards in Twig, ERB, Blade, Django, Go templates, and other non-JavaScript code were reported again. Same-line && and ternary guards count too.
- Keys documented only in .env.example count as documented again, so declared services and Stripe no longer warn in CI, and every .env variant (.env.local, .env.development.local, and so on) is read.
- Placeholder private-key lines in .env.example are no longer reported as secrets. Files over 2MB are skipped again.
- Configs v0.23 accepted load again: a groq service key (read as grok) and a bare word in ignore (like vendor) load with a note.
Security:
- The vulnerability check no longer lets a scanned repository run its own code through its package manager: cargo-audit and bundle-audit are called directly, Composer runs without plugins or scripts, Yarn 1 ignores yarnPath, Yarn 2 and later is not audited when the project has a .yarnrc.yml, govulncheck runs without cgo and cannot rewrite go.mod, and pip-audit only runs on a fully pinned requirements.txt, without installing anything. Scanning untrusted code is still best done with --skip vulnerability; see SECURITY.md.
False positive fixes:
- favicon finds icons declared in layouts and in Next.js metadata, and a missing favicon is a warning, not an error.
- legal_pages falls back to your source when the deployed site is down or blocks the probe, and a page with a per-request nonce no longer makes every legal path look found.
- sitemap finds Next.js Pages Router, Astro, and SvelteKit sitemap endpoints.
- SvelteKit, Remix, and Nuxt are detected as their own stacks instead of Vite, so their SEO checks run.
- seo_meta finds a Next.js metadata title and description written on one line.
- A Content-Security-Policy with 'unsafe-inline' is reported as weak, with a suggestion, instead of missing.
- The vulnerability check skips workspace members covered by a parent lockfile and directories git ignores, applies your ignore globs, and audits Go at the version the project builds with.
- ssl skips local URLs, and a host whose DNS also lists a private address is checked over its public one.
Behavior changes:
- Pre-0.22 camelCase check IDs (seoMeta, robotsTxt, and the rest) are now rejected (exit 64), with one error that names the new ID for every old one. preflight ignore rewrites an old entry in place. The v0.22.0 notes said they would keep working through 1.x; we changed that so 1.x has exactly one name for each check.
- index_now trusts the deployed key file over filename hints when a URL is configured, so a key that is not actually served is now reported.
- Published runs carry real finding messages again (scrubbed of URLs beyond their origin, keys, and paths) for checks whose messages are safe to send, so dashboard fixes have the detail they need. Apps scanned from a subdirectory of a monorepo publish to their own dashboard project.
- Skipped is now set by each check rather than inferred from its message, which fixes a check whose message mentioned skipped files being counted as skipped.
- preflight help works, history --format json carries schema_version and cli_version, and unknown config keys are named by their YAML path.
Release:
- Built with Go 1.26.10. Prerelease tags no longer become latest on GitHub, GHCR, Homebrew, or npm, and GHCR images are also tagged by major and minor version.
Contract: JSON stays at schema_version 2, now pinned by tests for skipped and inconclusive results. Exit codes unchanged. camelCase check IDs are removed from ignore, --only, and --skip.
v0.24.1
Maintenance release:
- Bump github.com/bmatcuk/doublestar/v4 to v4.10.3 and golang.org/x/mod to v0.42.0.
- Bump docker/login-action to v4.7.0 and goreleaser/goreleaser-action to v7.3.0 in the release workflow (GoReleaser itself stays pinned at v2.15.4).
No changes to scan output, exit codes, or the JSON contract.
v0.24.0
This release addresses 18 security and correctness findings and makes incomplete scans report their limitations explicitly.
- Protect dashboard credentials across redirects and keep sensitive URLs, paths, and tool output out of published reports.
- Harden file reads, subprocess cancellation, configuration validation, secret detection, and service configuration checks.
- Verify deployed metadata and security-header values; respect explicitly disabled checks and distinguish skipped or inconclusive results from passes.
- Audit supported dependency inputs across nested projects and multiple ecosystems, with explicit scope, time limits, and unsupported-input warnings.
- Separate the email sending domain from website URLs and tighten SPF/DMARC record checks.
- Require validation of the tagged commit before release, including native Linux/macOS/Windows race tests, vulnerability scanning, fuzzing, and container smoke tests.
Upgrade notes:
- JSON reports and published payloads now use schema version 2. Consumers must handle skipped and inconclusive results; these are not verified passes.
- When checks.emailAuth.enabled is true, set checks.emailAuth.domain to the email sending domain. Website URLs are no longer used as mail identities.
- Missing audit tools, unsupported dependency inputs, blank/example environment values, and ineffective security headers can now produce warnings where previous versions passed.
- Published check messages are privacy-preserving summaries. Detailed evidence remains in the local scan report.
v0.23.0
Behavior change:
- Usage errors (unknown flags, commands, or arguments, and a bad --format
value) now print an error and exit 64. They used to exit 1 silently,
which CI reads as "warnings only". authandhistoryexit 2 when they fail (for example, not logged in),
never 1.preflight initasks before replacing an existing preflight.yml
(default No). Pass--forceto skip the question..localhosts are no longer exempt from the private-address guard, so a
*.localstaging URL on a LAN now shows as unreachable.- Some checks can now warn where they passed before: health_endpoint (a
configured path that 404s), canonical (Next.js metadataBase is not a
canonical), legal_pages and health_endpoint (SPA catch-all pages no
longer count), error_pages (stock server 404s), lang (hreflang no longer
counts), and og:image dimensions on CMS-rendered pages. - The secrets scan reads many more file types (.mjs, .cjs, .vue, .svelte,
.astro, .html, .toml, .tf, .xml, and more), which can surface new
findings.
Security fix:
- Project file readers only read regular files, with a size cap, so a
FIFO or a symlink to /dev/zero in a scanned repo can no longer hang a
scan or init. - init and ignore refuse to write config files through symlinks.
- Credentials are kept at 0600 in a 0700 directory.
auth login --token -
reads the token from stdin, and PREFLIGHT_TOKEN is supported. - Built with Go 1.26.9; govulncheck reports no reachable vulnerabilities.
- Release archives now carry signed build provenance:
gh attestation verify <archive> --repo preflightsh/preflight.
False positive fixes:
- security_headers no longer fails when staging is down; production is
authoritative. - Vulnerability audits are graded from npm and yarn JSON severity counts
over the full output; a critical advisory can no longer be cut off.
pip-audit reads requirements.txt, and Yarn Berry is supported. - debug_statements: no more hits on "debugger" in strings,
::dump(,
print_r($x, true), or code in block comments, and files like
members.ts are scanned again. - Stripe and Sentry are detected in Go and Python projects and from
prefixed keys like NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY. - Service live checks ignore Cloudflare challenge and error pages.
- www_redirect skips subdomain production URLs and names the real failure.
- Browser-side Google Maps keys are a warning, not an error.
- A production URL without a scheme is normalized instead of cascading
into false errors. - Next.js metadata only counts from the root route, with comments stripped.
- IndexNow source detection needs the configured key.
Scan output format and the JSON contract are unchanged. Exit codes changed
as described above, so CI that passed on a typo now fails with 64.
v0.22.1
Performance fix:
- Scans of polyglot monorepos no longer stall at "Running checks". The
debug statements, secrets and source pattern walkers now skip non-JS
build output and dependency trees (target, .venv, venv, _build, deps,
.gradle, .pytest_cache, .svelte-kit), and the source pattern search
walks the project once instead of re-walking src, packages, app and
similar directories on every miss. A Rust/Java/Python/Elixir monorepo
that took 17 minutes now scans in under 4 seconds. - Debug statements only reads files whose extension one of its patterns
covers, instead of comment-stripping every file line by line.
False positive fixes:
- Claude Code worktrees (.claude/worktrees) are skipped, so their full
copies of the repo no longer repeat every secret and debug statement
finding once per worktree. The debug statements and source pattern
walkers skip .claude and .agents entirely; the secrets scan still
reads the rest of .claude, where a local settings file can hold a
real key. - A project whose own directory is named like a skipped one (build,
deps, target) is still scanned.
Scan output format, exit codes and the JSON contract are unchanged.
These changes can only remove findings.