Skip to content

feat: add selective entity exclusions - #2

Open
etiennetremel wants to merge 1 commit into
kadir:masterfrom
etiennetremel:feature/exclude-entities
Open

feat: add selective entity exclusions#2
etiennetremel wants to merge 1 commit into
kadir:masterfrom
etiennetremel:feature/exclude-entities

Conversation

@etiennetremel

Copy link
Copy Markdown

Adds configurable entity exclusions while keeping all recognizers enabled by default:

  • Supports exclusions across scan, stream, audit, and pre-commit
  • Rejects unknown entity names
  • Preserves nested URL findings, so credentials and PII inside excluded URLs remain detectable
  • Adds ScannerBuilder::exclude_entities
  • Documents canonical entity names and configuration
  • Builds scanners once for audit/pre-commit, ensuring configuration errors propagate

Close #1.

Usage

Cli:

cloakrs --exclude-entities url,hostname,user-path stream

In toml:

exclude_entities = ["url", "hostname", "user-path"]

Allow CLI and TOML configuration to exclude known entity types while
preserving secure defaults and nested URL findings. Validate exclusions
consistently across every command and document the canonical names.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add --exclude-entities option for selectively disabling recognizers

1 participant