Skip to content
Benchmarks

redact-secret · Report

Secret API key

Langfuse project/organization secret key as the issuer mints it: sk-lf- plus a lowercase UUIDv4 (42 characters). Paired with the public pk-lf- key.

  • Langfuse
  • Detectors: langfuse-secret-key
  • Run 2026-10-07
  • Mode published · redact-secret 0.1.0-beta.14
  • Dossier verdictReady
  • Dossier evidence levelT2 · Tool-corroborated
  • Dossier researched2026-09-24
Registry detector langfuse-secret-key since redact-secret#728 (registry pinned at dad7868); graduated from a Beta.8 arrival family (#210, research #221), contract in benchmarks/lib/beta8/210.ts. Self-hosted operator-defined values and a possible sk-lf-gw- gateway shape are recorded but not claimed.

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
^sk-lf-[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[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

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 sk-lf- followed by a lowercase UUIDv4 in 8-4-4-4-12 form (42 characters in total), version nibble 4 and variant nibble in 8 9 a b. This is what the provider's key generator builds, unchanged from the earliest code seen (2023-06) to 2026-09. Organization keys and the AI-gateway feature use the same generator.
Basis
T2. Provider code (permalink above and the earliest generator file) gives the shape; provider docs give prefixes, roles, env vars (LANGFUSE_SECRET_KEY) and Basic-auth use. TruffleHog's rule (pinned commit 363923b, keyword- and public-key-gated) agrees.
Issuance
not attempted; a free Hobby cloud account can create keys. The checklist is in benchmarks#221.
Contract in core
detector-families.md (frozen in the #726 record: issuer-minted keys only).

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-corroborated35000
T3Project policy7000

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 it42010
gitleaksRepository scanner · 8.30.1 · Directory scan · default rulesNo rule maps to it42621
redact-secretProduct measured here · 0.1.0-beta.14 · Published npm package · default detectors1 detector mapped42000
trufflehogRepository scanner · 3.97.4 · Filesystem scan · verification disabled1 rule targets it421301

Benchmark dossier questions

Things the sources do not settle. They are listed so nobody reads them as settled.
Open caveat
The provider documents prefixes and roles but no body grammar; the UUIDv4 body is provider code (the key generator), and self-hosted operators can set arbitrary values.

Looks like it, but isn't

Values the dossier records as resembling this credential without being one.
Collisions
pk-lf- public key has the same length and charset and differs by one letter; it is the main sibling control. Display form is sk-lf-... plus four hex characters. Self-hosted headless init and the admin API accept operator chosen secrets (the docs' own example is sk-lf-1234567890), and Langfuse's own log redactor is wider than UUID-only (sk-lf-[A-Za-z0-9_-]+). A possible sk-lf-gw- gateway shape appears only in UI stories, a test fixture and a PR description; no code mints it.

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
trufflehog · rules 3.97.4langfuselangfuse keyword + sk-lf- + UUID

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

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 Secret API key
FixtureKind and evidenceredact-secret
langfuse-secret-key-curl-basiclangfuse · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
langfuse-secret-key-curl-basic-authlangfuse · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
langfuse-secret-key-exportlangfuse · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
langfuse-secret-key-gateway-bearerlangfuse · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
langfuse-secret-key-handover-notelangfuse · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
langfuse-secret-key-key-shape-barelangfuse · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
langfuse-secret-key-key-shape-quotedlangfuse · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
langfuse-secret-key-key-shape-unicode-crlflangfuse · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
langfuse-secret-key-python-clientlangfuse · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
langfuse-secret-key-secret-getlangfuse · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
langfuse-secret-key-twin-base-cilangfuse · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
langfuse-secret-key-twin-base-pythonlangfuse · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
langfuse-secret-key-typescript-clientlangfuse · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
langfuse-secret-key-variant-nibble-twinlangfuse · wrong-alphabetMust not flagT2 · Tool-corroborated · twinQuiet
langfuse-secret-key-version-nibble-twin-wrong-alphabetlangfuse · wrong-alphabetMust not flagT2 · Tool-corroborated · twinQuiet
langfuse-secret-key-browser-public-key-public-idlangfuse · public-identifierMust not flagT2 · Tool-corroboratedQuiet
langfuse-secret-key-compose-initlangfuse · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
langfuse-secret-key-dotenvlangfuse · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
langfuse-secret-key-env-example-placeholderlangfuse · documentation-placeholderMust not flagT3 · Project policyQuiet
langfuse-secret-key-error-log-team-settingslangfuse · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
langfuse-secret-key-hashed-key-row-encoded-valuelangfuse · benign-encoded-valueMust not flagT2 · Tool-corroboratedQuiet
langfuse-secret-key-k8s-secret-ref-referencelangfuse · templated-referenceMust not flagT3 · Project policyQuiet
langfuse-secret-key-key-pair-doc-proselangfuse · prose-mentionMust not flagT3 · Project policyQuiet
langfuse-secret-key-litellm-configlangfuse · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
langfuse-secret-key-long-last-group-twinlangfuse · wrong-lengthMust not flagT2 · Tool-corroborated · twinQuiet
langfuse-secret-key-masklangfuse · benign-lookalikeMust not flagT3 · Project policyQuiet
langfuse-secret-key-masked-display-placeholderlangfuse · documentation-placeholderMust not flagT3 · Project policyQuiet
langfuse-secret-key-no-hyphens-twinlangfuse · boundary-violationMust not flagT2 · Tool-corroborated · twinQuiet
langfuse-secret-key-prefix-onlylangfuse · benign-lookalikeMust not flagT2 · Tool-corroboratedQuiet
langfuse-secret-key-prefix-only-grep-near-misslangfuse · format-near-missMust not flagT2 · Tool-corroboratedQuiet
langfuse-secret-key-public-idlangfuse · benign-lookalikeMust not flagT2 · Tool-corroboratedQuiet
langfuse-secret-key-public-key-twinlangfuse · public-sibling-prefixMust not flagT2 · Tool-corroborated · twinQuiet
langfuse-secret-key-python-env-lookup-referencelangfuse · templated-referenceMust not flagT3 · Project policyQuiet
langfuse-secret-key-referencelangfuse · benign-lookalikeMust not flagT3 · Project policyQuiet
langfuse-secret-key-region-hosts-env-public-idlangfuse · public-identifierMust not flagT2 · Tool-corroboratedQuiet
langfuse-secret-key-short-bodylangfuse · benign-lookalikeMust not flagT2 · Tool-corroboratedQuiet
langfuse-secret-key-short-last-group-twinlangfuse · wrong-lengthMust not flagT2 · Tool-corroborated · twinQuiet
langfuse-secret-key-trace-url-ids-public-idlangfuse · public-identifierMust not flagT2 · Tool-corroboratedQuiet
langfuse-secret-key-truncated-uuid-near-misslangfuse · format-near-missMust not flagT2 · Tool-corroboratedQuiet
langfuse-secret-key-twin-base-dotenvlangfuse · documented-format-literalMust redactT2 · Tool-corroboratedRedacted
langfuse-secret-key-variant-nibble-twin-wrong-alphabetlangfuse · wrong-alphabetMust not flagT2 · Tool-corroborated · twinQuiet
langfuse-secret-key-version-nibble-twinlangfuse · wrong-alphabetMust not flagT2 · Tool-corroborated · twinQuiet

Sources

Researched 2026-09-24.

Documentation and code

  • langfuse.com/docs/observability/sdk/overview
  • github.com/langfuse/langfuse/blob/dbf5107df264bfcb0613a29237143e78ce16ca8a/packages/shared/src/server/auth/apiKeys.ts

Research log