Skip to content
Benchmarks

redact-secret · Report

Routable personal access token

glpat- + an unpadded base64url payload of 27-300 + . + a 2-character base36 version + . + a 2-character base36 payload length + a 7-character base36 CRC32 (GitLab routable_token.rb).

  • GitLab
  • Detectors: none mapped
  • Run 2026-10-07
  • Mode published · redact-secret 0.1.0-beta.14
  • Dossier verdictReady
  • Dossier evidence levelT1 · Provider-documented
  • Dossier researched2026-09-29
Measured as the Beta.12 unscored arrival family gitlab-routable-personal-access-token (benchmarks/lib/beta8/1012c.ts; #1012 research, T1 provider code; the length holder and CRC are enforced as provider offline checks). The product reports it whole inside gitlab-token under the shared gitlab_token finding type (redact-secret#1022), so its findings carry no family evidence of their own and no detector is mapped here; the registry gitlab-token contract stays the legacy 20-byte body.

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

3 events in the review history: 2 observed, 1 reviewed. Latest: observed on 2026-09-29 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
^glpat-[A-Za-z0-9_-]{27,300}\.[0-9a-z]{2}\.[0-9a-z]{2}[0-9a-z]{7}$

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
prefix glpat-, a base64url payload with no padding (0-9a-zA-Z_-), then either . + 2-character base36 length + 7-character base36 CRC32 (unversioned), or . + 2-character base36 version + . + 2-character base36 length + 7-character base36 CRC32 (versioned). GitLab's rules bound the payload at 27 to 300 characters. The random part is 16 bytes, followed by a routing payload of newline-separated key:value pairs and a trailing length byte.

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

31 fixtures: 14 expect a redaction, 17 must stay quiet. See every row

redact-secret fixture counts by evidence level
Evidence levelFixturesLeft readableToo muchFalse alarms
T1Provider-documented14000
T2Tool-corroborated12007
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 it311221
gitleaksRepository scanner · 8.30.1 · Directory scan · default rules1 rule targets it31508
redact-secretProduct measured here · 0.1.0-beta.14 · Published npm package · default detectorsNo detector mapped31007
trufflehogRepository scanner · 3.97.4 · Filesystem scan · verification disabled1 rule targets it31003

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.1gitlab-pat-routableglpat- + 27-300 characters + . + 2 + 7 base36 characters
trufflehog · rules 3.97.4gitlab/v3glpat- + 27-300 characters + 2 + 9 characters

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

31 of 31 rows

Fixtures in this family

31 rows, redact-secret's outcome on each. Rows that need a look come first (7), then the rest in corpus order. Choose "Every scanner" to see each scanner's outcome for the same rows.
Fixtures in Routable personal access token
FixtureKind and evidenceredact-secret
gitlab-routable-personal-access-token-checksum-mismatch-twingitlab · invalid-checksumMust not flagT2 · Tool-corroborated · twinFlagged
gitlab-routable-personal-access-token-length-holder-mismatch-twingitlab · wrong-lengthMust not flagT2 · Tool-corroborated · twinFlagged
gitlab-routable-personal-access-token-missing-separator-twingitlab · boundary-violationMust not flagT2 · Tool-corroborated · twinFlagged
gitlab-routable-personal-access-token-payload-26-twingitlab · wrong-lengthMust not flagT2 · Tool-corroborated · twinFlagged
gitlab-routable-personal-access-token-trailing-glue-twingitlab · boundary-violationMust not flagT2 · Tool-corroborated · twinFlagged
gitlab-routable-personal-access-token-uppercase-base36-twingitlab · wrong-alphabetMust not flagT2 · Tool-corroborated · twinFlagged
gitlab-routable-personal-access-token-version-one-char-twingitlab · wrong-lengthMust not flagT2 · Tool-corroborated · twinFlagged
gitlab-routable-personal-access-token-bare-prosegitlab · documented-format-literalMust redactT1 · Provider-documentedRedacted
gitlab-routable-personal-access-token-bearer-headergitlab · documented-format-literalMust redactT1 · Provider-documentedRedacted
gitlab-routable-personal-access-token-chat-pastegitlab · documented-format-literalMust redactT1 · Provider-documentedRedacted
gitlab-routable-personal-access-token-dotenvgitlab · documented-format-literalMust redactT1 · Provider-documentedRedacted
gitlab-routable-personal-access-token-env-reference-referencegitlab · templated-referenceMust not flagT3 · Project policyQuiet
gitlab-routable-personal-access-token-exportgitlab · documented-format-literalMust redactT1 · Provider-documentedRedacted
gitlab-routable-personal-access-token-git-remote-urlgitlab · documented-format-literalMust redactT1 · Provider-documentedRedacted
gitlab-routable-personal-access-token-json-api-keygitlab · documented-format-literalMust redactT1 · Provider-documentedRedacted
gitlab-routable-personal-access-token-json-tokengitlab · documented-format-literalMust redactT1 · Provider-documentedRedacted
gitlab-routable-personal-access-token-leading-glue-twingitlab · boundary-violationMust not flagT2 · Tool-corroborated · twinQuiet
gitlab-routable-personal-access-token-payload-27gitlab · documented-format-literalMust redactT1 · Provider-documentedRedacted
gitlab-routable-personal-access-token-payload-300gitlab · documented-format-literalMust redactT1 · Provider-documentedRedacted
gitlab-routable-personal-access-token-private-token-headergitlab · documented-format-literalMust redactT1 · Provider-documentedRedacted
gitlab-routable-personal-access-token-python-gitlabgitlab · documented-format-literalMust redactT1 · Provider-documentedRedacted
gitlab-routable-personal-access-token-sdk-kwarggitlab · documented-format-literalMust redactT1 · Provider-documentedRedacted
gitlab-routable-personal-access-token-x-api-key-headergitlab · documented-format-literalMust redactT1 · Provider-documentedRedacted
gitlab-routable-personal-access-token-angle-placeholdergitlab · documentation-placeholderMust not flagT3 · Project policyQuiet
gitlab-routable-personal-access-token-base64-url-encoded-valuegitlab · benign-encoded-valueMust not flagT2 · Tool-corroboratedQuiet
gitlab-routable-personal-access-token-ci-job-token-referencegitlab · templated-referenceMust not flagT3 · Project policyQuiet
gitlab-routable-personal-access-token-masked-placeholdergitlab · documentation-placeholderMust not flagT3 · Project policyQuiet
gitlab-routable-personal-access-token-project-path-public-idgitlab · public-identifierMust not flagT2 · Tool-corroboratedQuiet
gitlab-routable-personal-access-token-token-guidance-prosegitlab · prose-mentionMust not flagT3 · Project policyQuiet
gitlab-routable-personal-access-token-token-metadata-public-idgitlab · public-identifierMust not flagT2 · Tool-corroboratedQuiet
gitlab-routable-personal-access-token-truncated-near-missgitlab · format-near-missMust not flagT2 · Tool-corroboratedQuiet

Sources

Researched 2026-09-29.

Documentation and code

  • gitlab.com/gitlab-org/gitlab/-/blob/fa2faf332129a1fd9130b052f42b85f0fa346b65/lib/authn/token_field/generator/routable_token.rb#L7-L86
  • github.com/redact-secret/redact-secret/blob/4fb78827f1ddf5b3106f25130ca510a836ada186/docs/audits/evidence/1012/gitlab-routable-personal-access-token.md
  • docs.gitlab.com/security/tokens/
  • gitlab.com/gitlab-org/gitlab/-/blob/87cb885dccf8cfa81ee5aa734b7f2e796413e221/lib/authn/token_field/generator/routable_token.rb
  • gitlab.com/gitlab-org/gitlab/-/blob/87cb885dccf8cfa81ee5aa734b7f2e796413e221/app/models/personal_access_token.rb
  • gitlab.com/gitlab-org/gitlab/-/merge_requests/169322
  • gitlab.com/gitlab-org/gitlab/-/work_items/623418
  • gitlab.com/gitlab-org/security-products/secret-detection/secret-detection-rules/-/blob/e1c7e83815a7e55cc1514dd59d4e56459e39cbfb/rules/mit/gitlab/gitlab.toml
  • handbook.gitlab.com/handbook/engineering/architecture/design-documents/cells/routable_tokens/
  • github.com/gitleaks/gitleaks/blob/b58d3f102cf3a2c84cb7f923d05c25c9b1aed84b/cmd/generate/config/rules/gitlab.go
  • github.com/trufflesecurity/trufflehog/blob/48b58d3bf3f02ba17bf23b87f095499bc80c6fd7/pkg/detectors/gitlab/v3/gitlab_v3.go
  • github.com/trufflesecurity/trufflehog/issues/4551
  • github.com/gitleaks/gitleaks/issues/1655
  • github.com/semgrep/semgrep-network-broker/issues/189
  • docs.github.com/en/code-security/secret-scanning/introduction/supported-secret-scanning-patterns

Research log

Other GitLab families