Skip to content

feat(redact): cover UUIDs and blockchain credentials - #390

Merged
fylorn merged 2 commits into
mainfrom
codex/uuid-blockchain-redaction
Nov 1, 2026
Merged

fylorn merged 2 commits into
mainfrom
codex/uuid-blockchain-redaction

Conversation

@fylorn

@fylorn fylorn commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

UUID-shaped API credentials, unwrapped wallet keys and opaque trading credentials could reach upstream models without consistent coverage.

Adds 11 default-enabled replacement rules for UUIDs, raw 32-byte hex values, Solana/Sui/Stellar/XRP private material, blockchain accounts and extended public keys, wallet secret fields, trading authentication, keystores and RPC URL credentials. Extends SLIP-0132 private-key versions and validates their private payloads. Exchange, Polymarket CLOB/Builder/Relayer and predict.fun credentials use field/header context instead of invented token lengths.

UUIDs also cover ordinary order/trace IDs and compact 32-hex identifiers. Raw hex values deliberately include indistinguishable transaction hashes. Public identifiers do not independently trigger credential-exfiltration blocking. Wallet secrets and the new credential fields are fully masked in findings.

Keeps observation mode, per-rule actions, exceptions, saved-secret priority, streaming restoration and cache/full-scan agreement. Uses the existing bilingual catalog and code matcher, without changing the control API. Numeric JSON values and protocol fields retain their existing boundaries; byte-array keypairs are covered when pasted as text. Coverage and limits are documented in docs/security/blockchain-redaction.zh-CN.md.

Validation:

  • Workspace tests: 4,312 passed, 8 skipped.
  • Workspace Clippy with warnings denied and formatting checks passed.
  • Generated configuration manuals: 4 tests passed.
  • Real gateway smoke suite: 86 passed, 0 failed.
  • Synthetic positive/negative credential samples, encoding checks, escaped JSON, YAML blocks, short passphrases, replacement/restoration, rule actions, exceptions, cache equivalence and linear scaling.

Protect UUIDs, raw wallet key and hash shapes, validated wallet encodings,
and named trading credentials before forwarding model requests. Preserve
JSON boundaries, reversible placeholders, rule actions and exceptions,
and keep public identifiers out of credential exfiltration evidence.
@fylorn
fylorn merged commit 9e8c578 into main Nov 1, 2026
7 checks passed
@fylorn
fylorn deleted the codex/uuid-blockchain-redaction branch November 1, 2026 15:55
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 1, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant