Skip to content
Benchmarks

redact-secret · Report

API credentials (polar_pat_, polar_at_, polar_rt_, polar_cs_, polar_crt_)

One of seven role prefixes + exactly 43 [A-Za-z0-9_-], the union of the pre-2025-01-02 URL-safe era and the alphanumeric-plus-checksum era.

  • Polar
  • Detectors: polar-api-credential
  • Run 2026-10-07
  • Mode published · redact-secret 0.1.0-beta.14
  • Dossier verdictReady
  • Dossier evidence levelT1 · Provider-documented
  • Dossier researched2026-09-29
Beta.12 arrival family polar-api-credential (#528, product redact-secret#1020), contract in benchmarks/lib/beta8/528b.ts from the #1014 handoff polar.md. T1 (provider server code, R1/R9). Shares the polar-token detector (finding type polar_api_credential). Neither pinned scanner has a Polar rule. Since the 4fb7882 re-pin (product PR #1039) it is an arrival family scored by that finding type (scanners/families.mjs arrivalFindingTypes), so the row maps to its own id.

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-29

Format revisions

  • Revision 1 polar:api-credential@1current · draft, not reviewed · superseded by @2 · the family's current revision
  • Revision 2 polar:api-credential@2proposed · draft, not reviewed · supersedes @1

8 events in the review history: 2 authored, 5 observed, 1 reviewed. Latest: authored on 2026-10-05 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
^polar_(?:pat|at_u|at_o|rt_u|rt_o|cs|crt)_[A-Za-z0-9_-]{43}$

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
one of seven role prefixes + exactly 43 [A-Za-z0-9_-], the union of the URL-safe era (before 2025-01-02) and the alphanumeric-plus-checksum era.
Basis
T1 under R1 and R9 from the provider server code and its commit history. No checksum applies: an era-1 body is all-alphanumeric about a quarter of the time.
Issuance
not attempted; the grammar is T1 from provider sources, so no key is needed.
Contract in core
detector-families.md (row on main; the Beta.12 detector, redact-secret#1020, merged in redact-secret#1039 and is unreleased).

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
28
Left readable
0
Redacted too much
0
False alarms
0

28 fixtures: 12 expect a redaction, 16 must stay quiet. See every row

redact-secret fixture counts by evidence level
Evidence levelFixturesLeft readableToo muchFalse alarms
T1Provider-documented14000
T3Project policy8000
T0Pending review6000

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 it281110
gitleaksRepository scanner · 8.30.1 · Directory scan · default rulesNo rule maps to it28400
redact-secretProduct measured here · 0.1.0-beta.14 · Published npm package · default detectors1 detector mapped28000
trufflehogRepository scanner · 3.97.4 · Filesystem scan · verification disabledNo rule maps to it281200

Looks like it, but isn't

Values the dossier records as resembling this credential without being one.
Collisions
polar_at_ without the u_/o_ sub-type is not a prefix; checkout polar_c_/polar_cl_ secrets are handed to the browser.

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

28 of 28 rows

Fixtures in this family

28 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 credentials (polar_pat_, polar_at_, polar_rt_, polar_cs_, polar_crt_)
FixtureKind and evidenceredact-secret
polar-api-credential-bare-prosepolar · documented-format-literalMust redactT1 · Provider-documentedRedacted
polar-api-credential-bearer-headerpolar · documented-format-literalMust redactT1 · Provider-documentedRedacted
polar-api-credential-chat-pastepolar · documented-format-literalMust redactT1 · Provider-documentedRedacted
polar-api-credential-client-secret-envpolar · documented-format-literalMust redactT1 · Provider-documentedRedacted
polar-api-credential-dotenvpolar · documented-format-literalMust redactT1 · Provider-documentedRedacted
polar-api-credential-exportpolar · documented-format-literalMust redactT1 · Provider-documentedRedacted
polar-api-credential-json-api-keypolar · documented-format-literalMust redactT1 · Provider-documentedRedacted
polar-api-credential-json-tokenpolar · documented-format-literalMust redactT1 · Provider-documentedRedacted
polar-api-credential-oauth-refresh-jsonpolar · documented-format-literalMust redactT1 · Provider-documentedRedacted
polar-api-credential-python-sdkpolar · documented-format-literalMust redactT1 · Provider-documentedRedacted
polar-api-credential-sdk-kwargpolar · documented-format-literalMust redactT1 · Provider-documentedRedacted
polar-api-credential-x-api-key-headerpolar · documented-format-literalMust redactT1 · Provider-documentedRedacted
polar-api-credential-access-token-without-subtype-twinpolar · prefix-near-missMust not flagT3 · Project policy · twinQuiet
polar-api-credential-actions-secret-referencepolar · templated-referenceMust not flagT3 · Project policyQuiet
polar-api-credential-body-42-twinpolar · unsettled-evidence-inputPending reviewT0 · Pending · twinUnscored
polar-api-credential-body-44-twinpolar · unsettled-evidence-inputPending reviewT0 · Pending · twinUnscored
polar-api-credential-checkout-link-secret-public-idpolar · unsettled-evidence-inputPending reviewT0 · PendingUnscored
polar-api-credential-client-id-in-url-public-idpolar · unsettled-evidence-inputPending reviewT0 · PendingUnscored
polar-api-credential-dot-in-body-twinpolar · wrong-alphabetMust not flagT3 · Project policy · twinQuiet
polar-api-credential-ellipsis-placeholderpolar · documentation-placeholderMust not flagT3 · Project policyQuiet
polar-api-credential-env-reference-referencepolar · templated-referenceMust not flagT3 · Project policyQuiet
polar-api-credential-leading-glue-twinpolar · unsettled-evidence-inputPending reviewT0 · Pending · twinUnscored
polar-api-credential-role-guidance-prosepolar · prose-mentionMust not flagT3 · Project policyQuiet
polar-api-credential-setting-names-public-idpolar · unsettled-evidence-inputPending reviewT0 · PendingUnscored
polar-api-credential-truncated-near-misspolar · format-near-missMust not flagT3 · Project policyQuiet
polar-api-credential-unknown-role-twinpolar · prefix-near-missMust not flagT1 · Provider-documented · twinQuiet
polar-api-credential-uppercase-prefix-twinpolar · prefix-near-missMust not flagT1 · Provider-documented · twinQuiet
polar-api-credential-x-run-placeholderpolar · documentation-placeholderMust not flagT3 · Project policyQuiet

Sources

Researched 2026-09-29.

Documentation and code

  • github.com/polarsource/polar/blob/6a4f2f6d6083ef503cd23cb7f432ab2c60515973/server/polar/oauth2/constants.py#L5-L16
  • github.com/redact-secret/redact-secret/blob/4f220ea000b58fa2e0e431ad88dea4eccb393fb0/docs/audits/evidence/1014/polar.md
  • github.com/polarsource/polar/blob/6a4f2f6d6083ef503cd23cb7f432ab2c60515973/server/polar/kit/crypto.py#L11-L32

Research log

Other Polar families