Skip to content

Commit 76cee66

Browse files
Merge pull request #11 from bytebase/a-branch-4
add back
2 parents 334cdba + 6e97c64 commit 76cee66

File tree

2 files changed

+115
-0
lines changed

2 files changed

+115
-0
lines changed

masking/data-classification.json

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
{
2+
"name": "bb.workspace.data-classification",
3+
"value": {
4+
"data_classification_setting_value": {
5+
"configs": [
6+
{
7+
"title": "Classification Example",
8+
"levels": [
9+
{
10+
"id": "1",
11+
"title": "Level 1",
12+
"description": ""
13+
},
14+
{
15+
"id": "2",
16+
"title": "Level 2",
17+
"description": ""
18+
},
19+
{
20+
"id": "3",
21+
"title": "Level 3",
22+
"description": ""
23+
},
24+
{
25+
"id": "4",
26+
"title": "Level 4",
27+
"description": ""
28+
}
29+
],
30+
"classification": {
31+
"1": {
32+
"id": "1",
33+
"title": "Basic",
34+
"description": ""
35+
},
36+
"1-1": {
37+
"id": "1-1",
38+
"title": "Basic",
39+
"description": "",
40+
"levelId": "1"
41+
},
42+
"1-2": {
43+
"id": "1-2",
44+
"title": "Assert",
45+
"description": "",
46+
"levelId": "1"
47+
},
48+
"1-3": {
49+
"id": "1-3",
50+
"title": "Contact",
51+
"description": "",
52+
"levelId": "2"
53+
},
54+
"1-4": {
55+
"id": "1-4",
56+
"title": "Health",
57+
"description": "",
58+
"levelId": "2"
59+
},
60+
"2": {
61+
"id": "2",
62+
"title": "Relationship",
63+
"description": ""
64+
},
65+
"2-1": {
66+
"id": "2-1",
67+
"title": "Social",
68+
"description": "",
69+
"levelId": "1"
70+
},
71+
"2-2": {
72+
"id": "2-2",
73+
"title": "Business",
74+
"description": "",
75+
"levelId": "1"
76+
}
77+
}
78+
}
79+
]
80+
}
81+
}
82+
}

masking/masking-algorithm.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"name": "bb.workspace.masking-algorithm",
3+
"value": {
4+
"maskingAlgorithmSettingValue": {
5+
"algorithms": [
6+
{
7+
"id": "9347822e-5a4a-4797-85ed-a59bb3115622",
8+
"title": "md5-mask",
9+
"description": "i am md5-mask",
10+
"category": "HASH",
11+
"md5Mask": {
12+
"salt": "salt"
13+
}
14+
},
15+
{
16+
"id": "bbd2893d-55b2-429c-bf7c-6f073e2bcdeb",
17+
"title": "RangeMask",
18+
"description": "this is range mask",
19+
"category": "MASK",
20+
"rangeMask": {
21+
"slices": [
22+
{
23+
"start": 0,
24+
"end": 4,
25+
"substitution": "*"
26+
}
27+
]
28+
}
29+
}
30+
]
31+
}
32+
}
33+
}

0 commit comments

Comments
 (0)