Skip to content

feat: shared shape-detector ruleset with uteke for unknown secrets #597

Closed

Description

@ajianaz

What problem does this solve?

Known-value redaction cannot catch secrets tole never knew (pasted by the owner, printed by a command). uteke already maintains a precision-first detector on its write path (crates/uteke-core/src/privacy.rs: AWS, GitHub, npm, Slack, Google keys, bearer, JWT, URL passwords, NAME=value with entropy checks, allowlist, idempotent). Two copies would drift.

Proposed solution

Owner decision 2026-11-11:

Alternatives considered

Separate rulesets in tole and uteke (drift); calling the uteke CLI for every redaction (latency, dependency).

Are you willing to contribute the implementation?

Yes, I can do it

Before submitting

  • I searched existing issues and didn't find a duplicate

Activity

  1. added
    enhancement
    on Nov 11, 2026
  2. ajianaz commented on Nov 14, 2026

    @ajianaz
    ContributorAuthor

    The uteke side is done: codecoradev/uteke#1732 landed and uteke-privacy 0.24.0 is published on crates.io (uteke v0.24.0).

    • API: uteke_privacy::redact(&str, &Policy) -> Redacted { text, counts }; the allowlist is compile_allowlist / Policy::from_patterns. The masked form is [REDACTED:<kind>] as before.
    • The crate depends on regex only (optional serde feature); no IO, no storage, no uteke-core.
    • uteke-core re-exports it from uteke_core::privacy with the same rules and tests.
    • v0.24.0 also carries three detector fixes found in the release review (a work bound on the private-key scan, non-ASCII passwords, sk-ant- keys; uteke#1772, #1773, #1774), so wire 0.24.0 rather than an earlier build.

    What is left here is the wiring into SecretSet after known-value redaction and the shared-allowlist path for false positives.


    Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions