Skip to content
Benchmarks

redact-secret · Report

OAuth access token (HRKU-prefixed)

HRKU- prefixed OAuth access token in its two documented prefixed generations: 41 characters (HRKU- plus a UUID, granted 2024-04-01 to 2025-04-22) and 65 characters (HRKU- plus 60 of [A-Za-z0-9_-], granted from 2025-04-23, observed to begin AA).

  • Heroku
  • Detectors: heroku-api-key
  • Run 2026-10-07
  • Mode published · redact-secret 0.1.0-beta.14
  • Dossier verdictReady
  • Dossier evidence levelT1 · Provider-documented
  • Dossier researched2026-09-24
redact-secret#312 (product PR #675) landed on the product main after 0.1.0-beta.6 and froze the 65-character HRKU-AA grammar only. #209 (research #235): changelog-items/3175 documents the 41-character HRKU-<uuid> generation as the previous length, so it is in this family's contract, not an undocumented-width variant; the AA start of the 65-character form is example- and tool-observed, not provider-stated. The pre-2024 bare-UUID generation is heroku:legacy-api-key.

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

3 events in the review history: 2 observed, 1 reviewed. Latest: observed on 2026-09-24 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
^HRKU-(?:AA[A-Za-z0-9_-]{58}|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$

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

Format facts

  • Provider documented · provider-source · current · observed 2026-09-23

    HRKU- prefixed OAuth access token (41-character 2024-04 and 65-character 2025-04 generations): the page states "Heroku OAuth access tokens are 65 characters long and prefixed with HRKU-" and shows a 65-character worked example beginning HRKU-AA (not reproduced here, since secret scanners classify it as a live token); its own response examples, changelog-items/2842 and changelog-items/3175 ("increasing from 41 characters to 65 characters") document the earlier 41-character HRKU-<uuid> generation. The literal AA after the dash is example- and tool-observed and the [A-Za-z0-9_-] body alphabet is tool-corroborated; neither is stated in prose

    • devcenter.heroku.com/articles/oauthprovider-documentation · last read 2026-09-24 · latest outcome read · supports the page states "Heroku OAuth access tokens are 65 characters long and prefixed with HRKU-" and shows a 65-character worked example beginning HRKU-AA (not reproduced here, since secret scanners classify it as a live token); its own response examples, changelog-items/2842 and changelog-items/3175 ("increasing from 41 characters to 65 characters") document the earlier 41-character HRKU-<uuid> generation. The literal AA after the dash is example- and tool-observed and the [A-Za-z0-9_-] body alphabet is tool-corroborated; neither is stated in prose
  • Tool corroborated · tool-corroboration · current · observed 2026-09-23

    Pinned scanner rules are consistent with the contract grammar (2 artifacts: gitleaks 8.30.1; trufflehog 3.97.4).

  • Provider documented · field-prefix · current · observed 2026-09-24

    prefix: HRKU-

  • Provider documented · field-g2-total-length · current · observed 2026-09-24

    g2-total-length: 65 characters for tokens granted from 2025-04-23

  • Provider documented · field-g2-aa-start · current · observed 2026-09-24

    g2-aa-start: the 60-character G2 body begins AA (Also pinned by gitleaks 8.30.1 and trufflehog 3.97.4 (tool); osv-scalibr does not pin it. Kept in `pattern` as observed/tool grammar, never as provider-stated; no non-AA twin or control asserts silence on it (#235).)

  • Unresolved · field-g2-body-alphabet · current · observed 2026-09-24

    g2-body-alphabet: [A-Za-z0-9_-]

  • Unresolved · field-g2-checksum · current · observed 2026-09-24

    g2-checksum: internal structure behind "additional security checks for token validation" (Undocumented; nothing relies on it.)

    • devcenter.heroku.com/changelog-items/3175provider-documentation · last read 2026-09-24 · latest outcome read · supports g2-checksum: internal structure behind "additional security checks for token validation"
  • Provider documented · field-g1-generation · current · observed 2026-09-24

    g1-generation: HRKU- plus a 36-character UUID, 41 characters, granted 2024-04-01 through 2025-04-22 and valid until regenerated (Corrects the earlier "undocumented-width variant" note. Pinned gitleaks and trufflehog do not match this generation (GitLab's rule matches only it).)

  • Provider documented · field-g1-uuid-case · current · observed 2026-09-24

    g1-uuid-case: lowercase 8-4-4-4-12 hex (Uppercase hex is unresolved; no case twin is authored.)

  • Unresolved · field-g0-bare-uuid-generation · current · observed 2026-09-24

    g0-bare-uuid-generation: bare UUID granted before 2024-04-01, valid until regenerated (Measured by the separate context-gated heroku-api-key-legacy contract (owned by #207); recorded here only as this credential's oldest generation.)

    • devcenter.heroku.com/changelog-items/2842provider-documentation · last read 2026-09-24 · latest outcome read · supports g0-bare-uuid-generation: bare UUID granted before 2024-04-01, valid until regenerated
  • Unresolved · field-forty-hex-netrc-example · current · observed 2026-09-24

    forty-hex-netrc-example: a 40-character lowercase hex token in the authentication article's .netrc example (Undated, probably stale; neither a positive nor a control here, since silence on it would turn a hypothesis into a negative expectation.)

    • devcenter.heroku.com/articles/authenticationprovider-documentation · last read 2026-09-24 · latest outcome read · supports forty-hex-netrc-example: a 40-character lowercase hex token in the authentication article's .netrc example
  • Provider documented · dossier-research · current · observed 2026-09-24

    Legacy dossier research (verdict ready, tier T1) cited 3 sources; the dossier does not attribute sources to individual properties.

  • Provider documented · taxonomy-sources · current · observed 2026-09-24

    The legacy taxonomy lists 3 sources for this family. The taxonomy records no date; the dossier researchedAt is used as the observed-at date.

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
two documented prefixed generations. HRKU- plus a UUID (41 characters), granted 2024-04-01 to 2025-04-22, and HRKU- plus 60 characters of [A-Za-z0-9_-] (65 characters), granted from 2025-04-23. Every 65-character example starts AA after the prefix. Both older generations stay valid until regenerated.
Basis
T1 for the prefix and both lengths (changelog 2842, 3175 and 3176, the OAuth article). The AA start is example-observed; gitleaks and trufflehog pin it, osv-scalibr does not, and a trufflehog issue disputes it (a contributor's fresh tokens all matched AA). The OAuth article's own response examples still show the 41-character form while its prose says 65. Changelog 3176 mentions "additional security checks", which may mean an internal structure or checksum; nothing documents it.
Issuance
heroku authorizations:create (non-expiring by default), Dashboard, or the OAuth flows. Not attempted. Revocable from the Dashboard.
Contract in core
detector-families.md (heroku_api_key; see its HRKU- rows).

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

29 fixtures: 12 expect a redaction, 17 must stay quiet. See every row

redact-secret fixture counts by evidence level
Evidence levelFixturesLeft readableToo muchFalse alarms
T1Provider-documented12000
T2Tool-corroborated12000
T3Project policy5000

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 it291100
gitleaksRepository scanner · 8.30.1 · Directory scan · default rules1 rule targets it29100
redact-secretProduct measured here · 0.1.0-beta.14 · Published npm package · default detectors1 detector mapped29000
trufflehogRepository scanner · 3.97.4 · Filesystem scan · verification disabled1 rule targets it29201

Benchmark dossier questions

Things the sources do not settle. They are listed so nobody reads them as settled.
Open caveat
The HRKU- prefix and the 41 and 65 character lengths are provider-stated; the AA start and the body alphabet of the 65-character form are example- and scanner-derived.

Looks like it, but isn't

Values the dossier records as resembling this credential without being one.
Collisions
the bare-UUID legacy token, the OAuth refresh token and client secret (also bare UUIDs), and app, release, request and authorization ids (public UUIDs printed beside the token in CLI output). An undated 40-hex token in the authentication article may be a stale example.

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.
Peer scanner rules that target this family
ScannerRuleWhat the rule matches
gitleaks · rules 8.30.1heroku-api-key-v2HRKU-AA + 58 characters
trufflehog · rules 3.97.4heroku/v2HRKU-AA + 58 characters

No rule maps to this family in flare-redact, openredaction.

29 of 29 rows

Fixtures in this family

29 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 OAuth access token (HRKU-prefixed)
FixtureKind and evidenceredact-secret
heroku-api-key-authorization-ids-public-idheroku · public-identifierMust not flagT2 · Tool-corroboratedQuiet
heroku-api-key-authorizations-create-g1heroku · documented-format-literalMust redactT1 · Provider-documentedRedacted
heroku-api-key-compose-envheroku · documented-format-literalMust redactT1 · Provider-documentedRedacted
heroku-api-key-env-g1heroku · documented-format-literalMust redactT1 · Provider-documentedRedacted
heroku-api-key-github-actions-deployheroku · documented-format-literalMust redactT1 · Provider-documentedRedacted
heroku-api-key-netrc-g2heroku · documented-format-literalMust redactT1 · Provider-documentedRedacted
heroku-api-key-prefixed-shape-bareheroku · documented-format-literalMust redactT1 · Provider-documentedRedacted
heroku-api-key-prefixed-shape-quotedheroku · documented-format-literalMust redactT1 · Provider-documentedRedacted
heroku-api-key-prefixed-shape-unicode-crlfheroku · documented-format-literalMust redactT1 · Provider-documentedRedacted
heroku-api-key-python-heroku3-clientheroku · documented-format-literalMust redactT1 · Provider-documentedRedacted
heroku-api-key-shell-export-api-keyheroku · documented-format-literalMust redactT1 · Provider-documentedRedacted
heroku-api-key-terraform-providerheroku · documented-format-literalMust redactT1 · Provider-documentedRedacted
heroku-api-key-authorizations-create-g1-separator-twinheroku · boundary-violationMust not flagT2 · Tool-corroborated · twinQuiet
heroku-api-key-bearer-header-g2heroku · documented-format-literalMust redactT1 · Provider-documentedRedacted
heroku-api-key-bearer-header-g2-prefix-case-twinheroku · prefix-near-missMust not flagT2 · Tool-corroborated · twinQuiet
heroku-api-key-env-g1-length-twinheroku · wrong-lengthMust not flagT2 · Tool-corroborated · twinQuiet
heroku-api-key-generation-note-proseheroku · prose-mentionMust not flagT3 · Project policyQuiet
heroku-api-key-label-proseheroku · benign-lookalikeMust not flagT3 · Project policyQuiet
heroku-api-key-maskheroku · benign-lookalikeMust not flagT3 · Project policyQuiet
heroku-api-key-netrc-template-placeholderheroku · documentation-placeholderMust not flagT3 · Project policyQuiet
heroku-api-key-prefix-onlyheroku · benign-lookalikeMust not flagT2 · Tool-corroboratedQuiet
heroku-api-key-prefixed-shape-bare-twinheroku · wrong-lengthMust not flagT2 · Tool-corroborated · twinQuiet
heroku-api-key-prefixed-shape-prefix-bare-twinheroku · prefix-near-missMust not flagT2 · Tool-corroborated · twinQuiet
heroku-api-key-prefixed-shape-prefix-quoted-twinheroku · prefix-near-missMust not flagT2 · Tool-corroborated · twinQuiet
heroku-api-key-prefixed-shape-prefix-unicode-crlf-twinheroku · prefix-near-missMust not flagT2 · Tool-corroborated · twinQuiet
heroku-api-key-prefixed-shape-quoted-twinheroku · wrong-lengthMust not flagT2 · Tool-corroborated · twinQuiet
heroku-api-key-prefixed-shape-unicode-crlf-twinheroku · wrong-lengthMust not flagT2 · Tool-corroborated · twinQuiet
heroku-api-key-referenceheroku · benign-lookalikeMust not flagT3 · Project policyQuiet
heroku-api-key-short-bodyheroku · benign-lookalikeMust not flagT2 · Tool-corroboratedQuiet

Sources

Researched 2026-09-24.

Documentation and code

Other Heroku families