forked from svn-arv/redacted
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathengine.example.yml
More file actions
28 lines (24 loc) · 1.13 KB
/
Copy pathengine.example.yml
File metadata and controls
28 lines (24 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# engine.example.yml — detection rules. Copy to ~/.config/redacted/engine.yml
# (global) or .redacted.engine.yml (project root). Anything you omit keeps the
# built-in default. This file tunes WHAT counts as a secret; operational policy
# (whitelist, allow, etc.) lives in config.yaml instead.
# Heuristic scorer thresholds for the secret_value catch-all. Raising these
# reduces false positives. Lowering min_length below the built-in 16 needs a
# rebuild, since the candidate regex floor is compiled in.
heuristic:
min_length: 16 # ignore values shorter than this
max_length: 128 # ignore values longer than this
min_char_classes: 3 # require lower + upper + digit together
min_entropy: 3.5 # minimum Shannon entropy, bits per character
# Extra env-name keywords: any KEY containing one gets its value redacted.
keywords:
- MONGO
- ELASTIC
# Extra value-shape allow rows: a candidate whose value (key=value) or whole
# match (value-only) matches one is never redacted.
allow_values:
- '^svc_[A-Za-z0-9]+$'
# Extra vendor patterns. These run before the catch-alls.
patterns:
- name: openai_key
regex: 'sk-proj-[A-Za-z0-9_-]{20,}'