-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(policies): policy determines severity of policy breach (#152)
* fix: remove severity from data categories * fix: add group UUID to data category when initialising DB * feat: calculate policy breach severity based on data category grouping * fix: replace data type name with category name * chore: update snapshots * fix: include category group name in category
- Loading branch information
Showing
27 changed files
with
157 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
{ | ||
"groups": { | ||
"e1d3135b-3c0f-4b55-abce-19f27a26cbb3": "Personal data", | ||
"f6a0c071-5908-4420-bac2-bba28d41223e": "Sensitive data" | ||
}, | ||
"category_mapping": { | ||
"dd88aee5-9d40-4ad2-8983-0c791ddec47c": { | ||
"name": "Authenticating", | ||
"group_uuid": "e1d3135b-3c0f-4b55-abce-19f27a26cbb3" | ||
}, | ||
"8099225c-7e49-414f-aac2-e7045379bb40": { | ||
"name": "Behavioral Information", | ||
"group_uuid": "e1d3135b-3c0f-4b55-abce-19f27a26cbb3" | ||
}, | ||
"79a36d6e-c5ca-4f61-ba53-0d7ad42cbe5a": { | ||
"name": "Communication", | ||
"group_uuid": "e1d3135b-3c0f-4b55-abce-19f27a26cbb3" | ||
}, | ||
"b5a3b0fd-dd5c-420d-91ce-dd2dddc8cc38": { | ||
"name": "Computer Device", | ||
"group_uuid": "e1d3135b-3c0f-4b55-abce-19f27a26cbb3" | ||
}, | ||
"cef587dd-76db-430b-9e18-7b031e1a193b": { | ||
"name": "Contact", | ||
"group_uuid": "e1d3135b-3c0f-4b55-abce-19f27a26cbb3" | ||
}, | ||
"4eda81b6-1314-47e2-bc4e-59d6024be4f4": { | ||
"name": "Credit History", | ||
"group_uuid": "e1d3135b-3c0f-4b55-abce-19f27a26cbb3" | ||
}, | ||
"5ab40519-89e8-4e4e-b2ef-2dabc13b352a": { | ||
"name": "Criminal Records", | ||
"group_uuid": "f6a0c071-5908-4420-bac2-bba28d41223e" | ||
}, | ||
"c3119d43-0562-48ac-9a8e-7217aa8686b8": { | ||
"name": "Demographic", | ||
"group_uuid": "e1d3135b-3c0f-4b55-abce-19f27a26cbb3" | ||
}, | ||
"35b94efa-9b67-49b2-abb9-29b6a759a030": { | ||
"name": "Ethnicity", | ||
"group_uuid": "f6a0c071-5908-4420-bac2-bba28d41223e" | ||
}, | ||
"e4d1e39a-6380-4da0-9596-642777f1b76d": { | ||
"name": "Family", | ||
"group_uuid": "e1d3135b-3c0f-4b55-abce-19f27a26cbb3" | ||
}, | ||
"7a794bd6-a6d1-429d-91a2-377acce9e9db": { | ||
"name": "Financial Accounts", | ||
"group_uuid": "e1d3135b-3c0f-4b55-abce-19f27a26cbb3" | ||
}, | ||
"14124881-6b92-4fc5-8005-ea7c1c09592e": { | ||
"name": "Identification", | ||
"group_uuid": "e1d3135b-3c0f-4b55-abce-19f27a26cbb3" | ||
}, | ||
"623a4f94-0e23-411e-9bb3-481602f1757d": { | ||
"name": "Knowledge and Belief", | ||
"group_uuid": "f6a0c071-5908-4420-bac2-bba28d41223e" | ||
}, | ||
"c6622b62-bc22-4c0c-a2e4-5fc97d99e11a": { | ||
"name": "Location", | ||
"group_uuid": "e1d3135b-3c0f-4b55-abce-19f27a26cbb3" | ||
}, | ||
"7b1d36e7-46f9-4664-85a2-44fb15fbefd1": { | ||
"name": "Medical and Health", | ||
"group_uuid": "f6a0c071-5908-4420-bac2-bba28d41223e" | ||
}, | ||
"ebaa9c6a-8fbf-4e45-85e1-40799dfac414": { | ||
"name": "Personal Ownership", | ||
"group_uuid": "e1d3135b-3c0f-4b55-abce-19f27a26cbb3" | ||
}, | ||
"94007e1e-57d8-43e8-90f2-246236dc5dde": { | ||
"name": "Physical Characteristic", | ||
"group_uuid": "e1d3135b-3c0f-4b55-abce-19f27a26cbb3" | ||
}, | ||
"bc536e1e-e0d1-4b88-96d2-a2eaad1620d4": { | ||
"name": "Preference", | ||
"group_uuid": "e1d3135b-3c0f-4b55-abce-19f27a26cbb3" | ||
}, | ||
"ef613213-a222-4c01-ae38-c3043b68f738": { | ||
"name": "Professional Information", | ||
"group_uuid": "e1d3135b-3c0f-4b55-abce-19f27a26cbb3" | ||
}, | ||
"e354099e-b80c-47b5-a86c-8d936b520387": { | ||
"name": "Public Life", | ||
"group_uuid": "e1d3135b-3c0f-4b55-abce-19f27a26cbb3" | ||
}, | ||
"1d4000a7-93ec-4dd5-9f3b-0f2ff7026a0c": { | ||
"name": "Sexual", | ||
"group_uuid": "f6a0c071-5908-4420-bac2-bba28d41223e" | ||
}, | ||
"68631dba-5696-4cc0-b6a8-0175ca99a7a2": { | ||
"name": "Social Network", | ||
"group_uuid": "e1d3135b-3c0f-4b55-abce-19f27a26cbb3" | ||
}, | ||
"deda0a0f-029c-44ee-9cac-9f059866723e": { | ||
"name": "Transactional", | ||
"group_uuid": "e1d3135b-3c0f-4b55-abce-19f27a26cbb3" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
{ | ||
"metadata": { "version": "1.0" }, | ||
"name": "Authenticating", | ||
"severity": "critical", | ||
"uuid": "dd88aee5-9d40-4ad2-8983-0c791ddec47c" | ||
} |
1 change: 0 additions & 1 deletion
1
pkg/classification/db/data_categories/behavioral_information.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
{ | ||
"metadata": { "version": "1.0" }, | ||
"name": "Behavioral Information", | ||
"severity": "high", | ||
"uuid": "8099225c-7e49-414f-aac2-e7045379bb40" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
{ | ||
"metadata": { "version": "1.0" }, | ||
"name": "Communication", | ||
"severity": "high", | ||
"uuid": "79a36d6e-c5ca-4f61-ba53-0d7ad42cbe5a" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
{ | ||
"metadata": { "version": "1.0" }, | ||
"name": "Computer Device", | ||
"severity": "medium", | ||
"uuid": "b5a3b0fd-dd5c-420d-91ce-dd2dddc8cc38" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
{ | ||
"metadata": { "version": "1.0" }, | ||
"name": "Contact", | ||
"severity": "high", | ||
"uuid": "cef587dd-76db-430b-9e18-7b031e1a193b" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
{ | ||
"metadata": { "version": "1.0" }, | ||
"name": "Credit History", | ||
"severity": "medium", | ||
"uuid": "4eda81b6-1314-47e2-bc4e-59d6024be4f4" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
{ | ||
"metadata": { "version": "1.0" }, | ||
"name": "Criminal Records", | ||
"severity": "high", | ||
"uuid": "5ab40519-89e8-4e4e-b2ef-2dabc13b352a" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
{ | ||
"metadata": { "version": "1.0" }, | ||
"name": "Demographic", | ||
"severity": "medium", | ||
"uuid": "c3119d43-0562-48ac-9a8e-7217aa8686b8" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
{ | ||
"metadata": { "version": "1.0" }, | ||
"name": "Ethnicity", | ||
"severity": "medium", | ||
"uuid": "35b94efa-9b67-49b2-abb9-29b6a759a030" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
{ | ||
"metadata": { "version": "1.0" }, | ||
"name": "Family", | ||
"severity": "medium", | ||
"uuid": "e4d1e39a-6380-4da0-9596-642777f1b76d" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
{ | ||
"metadata": { "version": "1.0" }, | ||
"name": "Financial Accounts", | ||
"severity": "high", | ||
"uuid": "7a794bd6-a6d1-429d-91a2-377acce9e9db" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
{ | ||
"metadata": { "version": "1.0" }, | ||
"name": "Identification", | ||
"severity": "critical", | ||
"uuid": "14124881-6b92-4fc5-8005-ea7c1c09592e" | ||
} |
1 change: 0 additions & 1 deletion
1
pkg/classification/db/data_categories/knowledge_and_belief.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
{ | ||
"metadata": { "version": "1.0" }, | ||
"name": "Knowledge and Belief", | ||
"severity": "medium", | ||
"uuid": "623a4f94-0e23-411e-9bb3-481602f1757d" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
{ | ||
"metadata": { "version": "1.0" }, | ||
"name": "Location", | ||
"severity": "high", | ||
"uuid": "c6622b62-bc22-4c0c-a2e4-5fc97d99e11a" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
{ | ||
"metadata": { "version": "1.0" }, | ||
"name": "Medical and Health", | ||
"severity": "high", | ||
"uuid": "7b1d36e7-46f9-4664-85a2-44fb15fbefd1" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
{ | ||
"metadata": { "version": "1.0" }, | ||
"name": "Personal Ownership", | ||
"severity": "high", | ||
"uuid": "ebaa9c6a-8fbf-4e45-85e1-40799dfac414" | ||
} |
1 change: 0 additions & 1 deletion
1
pkg/classification/db/data_categories/physical_characteristic.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
{ | ||
"metadata": { "version": "1.0" }, | ||
"name": "Physical Characteristic", | ||
"severity": "high", | ||
"uuid": "94007e1e-57d8-43e8-90f2-246236dc5dde" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
{ | ||
"metadata": { "version": "1.0" }, | ||
"name": "Preference", | ||
"severity": "medium", | ||
"uuid": "bc536e1e-e0d1-4b88-96d2-a2eaad1620d4" | ||
} |
1 change: 0 additions & 1 deletion
1
pkg/classification/db/data_categories/professional_information.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
{ | ||
"metadata": { "version": "1.0" }, | ||
"name": "Professional Information", | ||
"severity": "high", | ||
"uuid": "ef613213-a222-4c01-ae38-c3043b68f738" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
{ | ||
"metadata": { "version": "1.0" }, | ||
"name": "Public Life", | ||
"severity": "high", | ||
"uuid": "e354099e-b80c-47b5-a86c-8d936b520387" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
{ | ||
"metadata": { "version": "1.0" }, | ||
"name": "Sexual", | ||
"severity": "high", | ||
"uuid": "1d4000a7-93ec-4dd5-9f3b-0f2ff7026a0c" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
{ | ||
"metadata": { "version": "1.0" }, | ||
"name": "Social Network", | ||
"severity": "medium", | ||
"uuid": "68631dba-5696-4cc0-b6a8-0175ca99a7a2" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
{ | ||
"metadata": { "version": "1.0" }, | ||
"name": "Transactional", | ||
"severity": "high", | ||
"uuid": "deda0a0f-029c-44ee-9cac-9f059866723e" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters