-
Notifications
You must be signed in to change notification settings - Fork 11
/
masking.yml
executable file
·61 lines (61 loc) · 1.17 KB
/
masking.yml
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
version: "1"
seed: 42
masking:
- selector:
jsonpath: "customer.phone"
mask:
regex: "0[1-7]( ([0-9]){2}){4}"
- selector:
jsonpath: "name"
mask:
constant: "Bill"
- selector:
jsonpath: "name2"
mask:
randomChoice:
- "Mickaël"
- "Mathieu"
- "Marcelle"
- selector:
jsonpath: "age"
mask:
randomInt:
min: 25
max: 32
- selector:
jsonpath: "name3"
mask:
command: "echo Dorothy"
- selector:
jsonpath: "surname"
mask:
weightedChoice:
- choice: "Dupont"
weight: 9
- choice: "Dupond"
weight: 1
- selector:
jsonpath: "address.town"
mask:
hash:
- "Emerald City"
- "Ruby City"
- "Sapphire City"
- selector:
jsonpath: "date"
mask:
randDate:
dateMin: "1970-01-01T00:00:00Z"
dateMax: "2020-01-01T00:00:00Z"
- selector:
jsonpath: "name4"
mask:
replacement: "name"
- selector:
jsonpath: "mail"
mask:
template: "{{.surname}}.{{.name}}@gmail.com"
- selector:
jsonpath: "last_contact"
mask:
duration: "-P60D"