Skip to content
Benchmarks

redact-secret · Report

API key

napi_-prefixed API key (personal, organization or project-scoped); the 64-character alphanumeric body floor is tool-corroborated.

  • Neon
  • Detectors: neon-api-key
  • Run 2026-10-07
  • Mode published · redact-secret 0.1.0-beta.14
  • Dossier verdictReady
  • Dossier evidence levelT2 · Tool-corroborated
  • Dossier researched2026-09-25
Registry detector neon-api-key since redact-secret#524 (#773, registry pinned at 3144bb3), authored under #259. The napi_ prefix is provider-documented; the body floor rests on betterleaks and mask-go (T2). Legacy unprefixed keys are not covered.

Research record

From credential-evidence snapshot-2026.10.06.4 · records at 77ce761 · schema 1.8.0. It describes the research on the format, not what any scanner or the product does, and not a support status.
  • Review stateDraft, not reviewed
  • Format revision1 · current
  • ResearchResearched
  • Researched2026-09-25

3 events in the review history: 2 observed, 1 reviewed. Latest: observed on 2026-09-25 by automation, project maintainer. Project-maintained review is not independent validation. The family record at this release.

Format

Provider format research from credential-evidence snapshot-2026.10.06.4 · records at 77ce761 · schema 1.8.0.

What it looks like

Descriptive pattern
^napi_[A-Za-z0-9]{64,}$

Parts are shown as recorded. Evidence classes belong to the facts below; no class is assigned to a part.

Format facts

Open questions

No open question is recorded for this revision.

Benchmark dossier notes

From the provider dossier, as written. The evidence level above says how well the format is backed; a fact the dossier does not record is not shown.
Shape
napi_ followed by at least 64 alphanumeric characters ([A-Za-z0-9]), read to the end of the run. Neon's API-keys page calls a key "a randomly-generated 64-bit token", which fits no string length, and its only written example is not a shape.
Basis
the family tier is T2, following the assessment contract (#259: a T1 prefix with a tool-corroborated body stays at the weakest frozen field). T1 for the prefix (Neon changelog, quoted in the #524 record). The body floor is T2: betterleaks neon-api-key (napi_ + exactly 64) and the mask-go library (64 as a floor). The pinned gitleaks 8.30.1 and trufflehog 3.97.4 have no Neon rule. GitHub secret scanning lists neon_api_key (expression unpublished), which corroborates the prefix only.
Issuance
Neon Console or API. Not attempted.
Contract in core
detector-families.md (neon_api_key, always redacted); frozen in the #524 evidence.

In this benchmark

Fixture rows on the current run. Counts are for redact-secret in published · redact-secret 0.1.0-beta.14 mode.
Fixtures
42
Left readable
0
Redacted too much
0
False alarms
0

42 fixtures: 18 expect a redaction, 24 must stay quiet. See every row

redact-secret fixture counts by evidence level
Evidence levelFixturesLeft readableToo muchFalse alarms
T2Tool-corroborated34000
T3Project policy8000

Every scanner on the same fixtures

In run order. Counts are what each scanner recorded on this family's fixtures, whichever rules it has; a scanner with no rule for the family has nothing to report on it.

Counts per scanner on this family's fixtures
ScannerFixturesLeft readableToo muchFalse alarms
flare-redactRuntime library · 1.6.1 · Published npm package · secrets-only (pii, generic_assignment disabled) · JavaScript engineNo rule maps to it421620
gitleaksRepository scanner · 8.30.1 · Directory scan · default rulesNo rule maps to it42800
redact-secretProduct measured here · 0.1.0-beta.14 · Published npm package · default detectors1 detector mapped42000
trufflehogRepository scanner · 3.97.4 · Filesystem scan · verification disabledNo rule maps to it421800

Benchmark dossier questions

Things the sources do not settle. They are listed so nobody reads them as settled.
Open caveat
Prefix is T1; the 64-character body floor is T2 (betterleaks exactly 64, mask-go at least 64) and Neon calls a key a "64-bit token". Legacy unprefixed keys are outside the claim. No issued key observed.

Looks like it, but isn't

Values the dossier records as resembling this credential without being one.
Collisions
project, branch and endpoint ids, pooled hostnames with a database name, and placeholders are the benign controls in the #524 record. A Neon connection URI password is a different credential (connection-string) and never carries the napi_ key.

Scanner rules for this family

Mapped by hand (reviewed 2026-09-30) from each scanner's pinned rule file, never from what a scanner found on the fixtures.

No peer rule maps to this family

None of the reviewed peer scanners has a rule that can match a credential of this family.

None mapped

42 of 42 rows

Fixtures in this family

42 rows, redact-secret's outcome on each. Rows that need a look come first (0), then the rest in corpus order. Choose "Every scanner" to see each scanner's outcome for the same rows.
Fixtures in API key
FixtureKind and evidenceredact-secret
neon-api-key-api-key-createneon · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
neon-api-key-bearer-curlneon · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
neon-api-key-compose-envneon · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
neon-api-key-create-branch-actionneon · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
neon-api-key-dotenvneon · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
neon-api-key-exportneon · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
neon-api-key-incident-noteneon · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
neon-api-key-key-shape-bareneon · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
neon-api-key-key-shape-quotedneon · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
neon-api-key-key-shape-unicode-crlfneon · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
neon-api-key-mcp-configneon · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
neon-api-key-neonctl-flagneon · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
neon-api-key-secret-printneon · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
neon-api-key-terraform-varsneon · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
neon-api-key-ts-api-clientneon · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
neon-api-key-twin-base-dotenvneon · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
neon-api-key-twin-base-headerneon · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
neon-api-key-twin-base-tsneon · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
neon-api-key-actions-secret-referenceneon · templated-referenceMust not flagT3 · Project policyQuiet
neon-api-key-api-key-list-public-idneon · public-identifierMust not flagT2 · Tool-corroboratedQuiet
neon-api-key-dash-in-body-twinneon · wrong-alphabetMust not flagT2 · Tool-corroborated · twinQuiet
neon-api-key-docs-placeholder-placeholderneon · documentation-placeholderMust not flagT3 · Project policyQuiet
neon-api-key-env-reference-referenceneon · templated-referenceMust not flagT3 · Project policyQuiet
neon-api-key-hyphen-delimiter-twinneon · boundary-violationMust not flagT2 · Tool-corroborated · twinQuiet
neon-api-key-inner-dash-twinneon · wrong-alphabetMust not flagT2 · Tool-corroborated · twinQuiet
neon-api-key-key-guidance-proseneon · prose-mentionMust not flagT3 · Project policyQuiet
neon-api-key-label-proseneon · benign-lookalikeMust not flagT3 · Project policyQuiet
neon-api-key-maskneon · benign-lookalikeMust not flagT3 · Project policyQuiet
neon-api-key-masked-display-placeholderneon · documentation-placeholderMust not flagT3 · Project policyQuiet
neon-api-key-node-api-call-near-missneon · format-near-missMust not flagT2 · Tool-corroboratedQuiet
neon-api-key-pooled-host-public-idneon · public-identifierMust not flagT2 · Tool-corroboratedQuiet
neon-api-key-prefix-letter-twinneon · prefix-near-missMust not flagT2 · Tool-corroborated · twinQuiet
neon-api-key-prefix-letter-twin-prefix-near-missneon · prefix-near-missMust not flagT2 · Tool-corroborated · twinQuiet
neon-api-key-prefix-onlyneon · benign-lookalikeMust not flagT2 · Tool-corroboratedQuiet
neon-api-key-prefix-only-near-missneon · format-near-missMust not flagT2 · Tool-corroboratedQuiet
neon-api-key-project-and-branch-public-idneon · public-identifierMust not flagT2 · Tool-corroboratedQuiet
neon-api-key-project-digest-encoded-valueneon · benign-encoded-valueMust not flagT2 · Tool-corroboratedQuiet
neon-api-key-referenceneon · benign-lookalikeMust not flagT3 · Project policyQuiet
neon-api-key-short-bodyneon · benign-lookalikeMust not flagT2 · Tool-corroboratedQuiet
neon-api-key-short-body-twinneon · wrong-lengthMust not flagT2 · Tool-corroborated · twinQuiet
neon-api-key-short-body-twin-wrong-lengthneon · wrong-lengthMust not flagT2 · Tool-corroborated · twinQuiet
neon-api-key-uppercase-prefix-twinneon · prefix-near-missMust not flagT2 · Tool-corroborated · twinQuiet

Sources

Researched 2026-09-25.

Documentation and code

  • neon.com/docs/changelog/2025-01-31
  • github.com/betterleaks/betterleaks/blob/6cf4f1a29160b68be7c6390599b9b773234e5a43/cmd/generate/config/rules/neon.go
  • github.com/koki-develop/mask-go/blob/3ff232051d4d224314b400d9e973c5a8c7d405d5/builtin_neon_api_key.go

Research log