Repository navigation
Releases
secretscan v0.2.6
What's Changed
- ci: attach release binaries by @marcuspat in #10
- fix(ci): duplicate with: broke workflow parsing by @marcuspat in #11
- docs: reconcile README rule count and version marker with code by @marcuspat in #12
- ci: bare-container leg + self-sufficient hook/staging tests by @marcuspat in #13
- Release Secret Scan 0.2.6 with tested downloads by @marcuspat in #14
Full Changelog: v0.2.5...v0.2.6
secretscan v0.2.5
0.2.5 - 2026-10-14
Added
- 15 more rules (73 in total): Azure storage account keys, Databricks, Supabase, Telegram, Postman, Linear, Notion, Doppler, Docker Hub, Grafana, Age secret keys, GCP service-account files, Datadog, Cloudflare and Vercel
secretscan -scans standard input, so output from other commands can be piped in--stagedscans only what is staged for the next commit, and a.pre-commit-hooks.yamlmakes the repository usable as a pre-commit hook--gitscans git history (every added line in every commit reachable from HEAD) and reports each secret at the commit that introduced it, with author and date;--since <rev>limits the scan to newer commits--exit-code <n>and--no-failto control the exit status when findings are reported.secretscan.tomlconfig file (--config,--no-config): allowlist by path, secret regex or fingerprint; disable rules by id; define custom rules with a severity--write-baseline <file>records the current findings (fingerprints only, no secret text) and--baseline <file>suppresses them, so only new findings are reported and fail the run- Severity (
low,medium,high,critical) on every rule, shown in text output, JSON and SARIF (levelandsecurity-severity) --min-severity <level>to report, and fail on, only findings at or above a severity- JSON output now includes
rule_id,severityandfingerprintfor each finding - SARIF 2.1.0 output (
--format sarif) for GitHub code scanning and other CI dashboards; results carry a stable fingerprint and never include secret text --redactflag to mask secret values in text and JSON output- Inline suppression with
secretscan:allow/gitleaks:allow - Eight modern token formats: GitHub fine-grained PAT, Anthropic, OpenAI project/service-account keys, Hugging Face, npm, PyPI, Slack app tokens, Stripe restricted keys and webhook secrets
rule_idandfingerprinthelpers in the library API
Changed
-
"JWT Token" findings are structurally validated offline: the header and payload must decode to JSON and the header must name an algorithm, so
eyJ…lookalikes are no longer reported -
Breaking: errors (missing path, failed scan, unwritable output) now exit 2 instead of 1, so they can be told apart from "secrets found"
-
The generic, name-based rules (passwords, generic secrets, connection strings) no longer report placeholder values such as
changeme,<your-key>,${VAR}orxxxx. Format-exact rules are unaffected -
Custom patterns passed to
Scanner::with_patternsare no longer subject to the entropy filter; every match is reported -
One scan path for all files regardless of size; removed the separate chunked path for files over 10 MB, the legacy
scan_directory_rayonand theSECRETSCAN_DEBUGoutput -
Built-in rules are defined once, in a single
RULE_DEFStable;patterns::rules()exposes them with stable ids. Detection behaviour is unchanged -
The README now matches the tool: the obfuscation examples are sized above their detection thresholds, the example output is regenerated from a real run, the stated Rust requirement is the real floor (1.88, not 1.70), the rule count is stated consistently (73), and the comparison table no longer calls truffleHog a non-parallel Python tool
-
Cargo.lockis committed (binary crate):cargo install --lockedis reproducible and the MSRV cannot drift silently -
rust-version = "1.88"is declared in Cargo.toml so Cargo enforces the requirement -
CITATION.cff's version is updated by cargo-release alongside the README's
Performance
- A
RegexSetprefilter runs each rule's regex only on lines it can match - Four regexes used for obfuscation analysis were recompiled for every scanned line; they are now compiled once
Fixed
- The per-rule summary in text output was listed in a different order on every run
secretscan --versionreports the real package version; the 0.2.4 tarball had "0.2.1" hardcoded inmain.rs- A file containing any invalid UTF-8 byte was skipped entirely; it is now scanned, with invalid bytes replaced
- A single private key produced up to three findings (specific, generic and multi-line rules); it is now reported once under its most specific rule
- Unlabelled PKCS#8 keys (
BEGIN PRIVATE KEY) were reported as "RSA Private Key"; they are now "Generic Private Key" - "Heroku API Key" and "Azure Tenant ID" reported every UUID in a codebase, twice; both now require the provider name in the variable being assigned
- Entropy values differed in the last bits from run to run (hash-map iteration order); they are now reproducible
- Entropy divided by byte length instead of character count, under-reporting non-ASCII text
- Findings came back in a different order on every run; they are now sorted by file, line and rule
--versionreported 0.2.1 regardless of the crate version
[0.2.1] - 2025-07-02
[0.2.0] - 2025-07-02
0.1.0 - 2025-01-02
Added
- Initial release of secretscan
- Core scanning functionality with pattern-based secret detection
- Support for 20+ secret patterns including API keys, tokens, and credentials
- Entropy-based detection for high-entropy strings
- Git-aware scanning with .gitignore support
- Parallel file processing for improved performance
- Multiple output formats: JSON and human-readable
- Progress indicators and colored output for better UX
- Configurable confidence thresholds
- Context extraction for better secret identification
- Comprehensive test suite with >90% code coverage
Features
- Fast parallel scanning using Rayon
- Respects .gitignore patterns
- Multiple output formats (JSON, YAML, human-readable)
- Entropy-based detection
- Configurable thresholds
- Progress indicators
- Colored terminal output
secret-scan v0.2.4 — SOTA loop and honesty pass
v0.2.4 — SOTA loop + honesty pass
Since v0.1.0 (Jun 27):
Features
- SOTA loop merged (#6): SARIF output, scan baselines, config file, git-history scanning, pre-commit hook, 73 detection rules, 27x faster scanning
- Animated SVG banner; CITATION.cff
Detection correctness
- Fixed AWS/GitHub/Google credential patterns; high-confidence override + dedupe; test specs aligned to real credential formats
Honesty purge
- Removed fabricated benchmarks (the invented 51,020 files/sec figure and phantom comparisons), unbacked accuracy/throughput numbers, nonexistent install paths, and a fabricated validation report (invented 2,847 tests, fake p-values)
- Validation status now reflects the real suite (65/65 at the time)
- LICENSE is a real file; homepage → AW Labs project page; docs → docs.rs; version 0.2.3 → 0.2.4
Evidence
- CI green on main Oct 11 (before the org Actions billing wall; runs re-verify when billing clears). Cut under Marcus's explicit release authorization (Slack, 2026-10-12).
- Tag matches Cargo.toml 0.2.4 (crate
secretscan).
v0.2.1
v0.2.0
v0.1.0
secret-scan v0.1.0
The earliest tagged version of secret-scan (July 2025). It predates the crate's current release on crates.io (0.2.3) and has no binary assets attached — install the current version with cargo install secretscan, or build this tag from source.
See the README for current features, usage, and detection capabilities.