mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-11-24 22:08:17 +00:00
Fabro's run, session, turn, message and pair IDs are ULIDs. A ULID occasionally has enough distinct characters to cross the secret scanner's 4.5-bit entropy threshold, and the stream redaction then rewrites the Web UI link to `/runs/REDACTED` and the run branch to `fabro/run/REDACTED`. Two nightly releases in the last week failed on `attach_replays_completed_detached_run` this way, and each fix so far protected one field at a time. Teach the entropy scanner the format instead: a token that is exactly 26 uppercase Crockford base32 characters and decodes to a timestamp between 2020 and 2100 is an identifier, not a secret, and is left alone wherever it appears. Trailing `-ULID`, `_ULID` and `=ULID` segments are stripped before measuring, so `20261020-<id>` and `<secret>-<id>` are handled, and the secret in the latter is still found. The gitleaks credential patterns run on every token as before. This mirrors detect-secrets' built-in UUID filter. A secret would have to take exactly this shape and land in the date window to be missed, which is about one in a hundred of the already rare tokens encoded as 26 uppercase base32 characters. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
35 lines
866 B
TOML
35 lines
866 B
TOML
[package]
|
|
name = "fabro-redact"
|
|
edition.workspace = true
|
|
version.workspace = true
|
|
publish = false
|
|
license.workspace = true
|
|
description = "Secret and credential redaction utilities for Fabro"
|
|
|
|
[lib]
|
|
doctest = false
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dependencies]
|
|
aho-corasick.workspace = true
|
|
# The `Redactor` seam pebble's coding agent and its sandbox-driver adapter
|
|
# call on text a process wrote; `SecretRedactor` is this crate's scanner
|
|
# behind it.
|
|
pebble-coding-agent.workspace = true
|
|
ref-cast.workspace = true
|
|
regex.workspace = true
|
|
serde_json.workspace = true
|
|
thiserror.workspace = true
|
|
# Recognizes ULID-shaped tokens so Fabro's own IDs are never scanned as secrets.
|
|
ulid.workspace = true
|
|
url.workspace = true
|
|
|
|
[build-dependencies]
|
|
serde = { workspace = true }
|
|
toml.workspace = true
|
|
|
|
[dev-dependencies]
|
|
tracing.workspace = true
|
|
tracing-subscriber.workspace = true
|