-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrules.example.json
More file actions
83 lines (83 loc) · 2.06 KB
/
rules.example.json
File metadata and controls
83 lines (83 loc) · 2.06 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
[
{
"id": "redact-emails",
"user_id": "local",
"team_id": "local",
"name": "Redact email addresses",
"description": "Redact emails, phone numbers, and SSNs from input",
"enabled": true,
"apply_to": "input",
"sampling_rate": 100,
"timeout_seconds": 60,
"match_all": true,
"conditions": [],
"actions": [
{
"id": "1",
"type": "redact_pii",
"enabled": true,
"categories": ["email", "phone", "ssn"],
"replacement": "placeholder",
"mode": "redact",
"token_prefix": "",
"ttl_seconds": 0
}
],
"created_at": "2025-01-01T00:00:00Z",
"updated_at": "2025-01-01T00:00:00Z"
},
{
"id": "redact-credit-cards",
"user_id": "local",
"team_id": "local",
"name": "Mask and restore credit cards",
"description": "Tokenize credit card numbers so they can be restored on output",
"enabled": false,
"apply_to": "input",
"sampling_rate": 100,
"timeout_seconds": 60,
"match_all": true,
"conditions": [],
"actions": [
{
"id": "1",
"type": "redact_pii",
"enabled": true,
"categories": ["credit_card"],
"replacement": "placeholder",
"mode": "mask_and_restore",
"token_prefix": "cc_",
"ttl_seconds": 3600
}
],
"created_at": "2025-01-01T00:00:00Z",
"updated_at": "2025-01-01T00:00:00Z"
},
{
"id": "block-ssn-output",
"user_id": "local",
"team_id": "local",
"name": "Block SSNs in output",
"description": "Block any response that contains an SSN",
"enabled": false,
"apply_to": "output",
"sampling_rate": 100,
"timeout_seconds": 60,
"match_all": true,
"conditions": [],
"actions": [
{
"id": "1",
"type": "redact_pii",
"enabled": true,
"categories": ["ssn"],
"replacement": "placeholder",
"mode": "redact",
"token_prefix": "",
"ttl_seconds": 0
}
],
"created_at": "2025-01-01T00:00:00Z",
"updated_at": "2025-01-01T00:00:00Z"
}
]