-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(privacy report): Add subject name to datatype (#468)
* feat: pass subject name from classification to risk data types * feat: add mapping for data subjects * fix: clean up schema classification and add subject name to child data type classification * fix: remove unnecessary classification request * feat: add subject name to data types * fix: snapshots * fix: fix schema test * fix: fix snapshots * fix: update new relic snapshots
- Loading branch information
Showing
61 changed files
with
405 additions
and
604 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
[{"detector_type":"ruby","source":{"column_number":8,"filename":"main.rb","language":"Ruby","language_type":"programming","line_number":1,"text":null},"type":"schema_classified","value":{"classification":{"decision":{"reason":"","state":""},"name":"info"},"field_name":"info","field_type":"","field_type_simple":"unknown","normalized_field_name":"info","normalized_object_name":"logger","object_name":"logger"}},{"detector_type":"ruby","source":{"column_number":31,"filename":"main.rb","language":"Ruby","language_type":"programming","line_number":1,"text":null},"type":"schema_classified","value":{"classification":{"data_type":{"category_uuid":"cef587dd-76db-430b-9e18-7b031e1a193b","name":"Email Address","uuid":"22e24c62-82d3-4b72-827c-e261533331bd"},"decision":{"reason":"known_pattern","state":"valid"},"name":"email"},"field_name":"email","field_type":"","field_type_simple":"unknown","normalized_field_name":"email","normalized_object_name":"user","object_name":"user"}}] | ||
[{"detector_type":"ruby","source":{"column_number":8,"filename":"main.rb","language":"Ruby","language_type":"programming","line_number":1,"text":null},"type":"schema_classified","value":{"classification":{"decision":{"reason":"","state":""},"name":"info"},"field_name":"info","field_type":"","field_type_simple":"unknown","normalized_field_name":"info","normalized_object_name":"logger","object_name":"logger"}},{"detector_type":"ruby","source":{"column_number":31,"filename":"main.rb","language":"Ruby","language_type":"programming","line_number":1,"text":null},"type":"schema_classified","value":{"classification":{"data_type":{"category_uuid":"cef587dd-76db-430b-9e18-7b031e1a193b","name":"Email Address","uuid":"22e24c62-82d3-4b72-827c-e261533331bd"},"decision":{"reason":"known_pattern","state":"valid"},"name":"email","subject_name":"User"},"field_name":"email","field_type":"","field_type_simple":"unknown","normalized_field_name":"email","normalized_object_name":"user","object_name":"user"}}] | ||
|
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,4 +1,4 @@ | ||
{"data_types":[{"name":"Email Address","detectors":[{"name":"ruby","locations":[{"filename":"integration/flags/testdata/simple/main.rb","line_number":1,"field_name":"email","object_name":"user"}]}]}],"components":[]} | ||
{"data_types":[{"name":"Email Address","detectors":[{"name":"ruby","locations":[{"filename":"integration/flags/testdata/simple/main.rb","line_number":1,"field_name":"email","object_name":"user","subject_name":"User"}]}]}],"components":[]} | ||
|
||
-- | ||
|
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
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,72 @@ | ||
{ | ||
"Advisor": "User", | ||
"Applicant": "User", | ||
"Artist": "User", | ||
"Attendee": "User", | ||
"Author": "User", | ||
"Bank account": "User", | ||
"Buyer": "User", | ||
"Caller": "User", | ||
"Candidate": "User", | ||
"Cardholder": "User", | ||
"Client": "User", | ||
"Coach": "User", | ||
"Collaborator": "User", | ||
"Commenter": "User", | ||
"Competitor": "User", | ||
"Consumer": "User", | ||
"Contact": "User", | ||
"Contractor": "User", | ||
"Contributor": "User", | ||
"Customer": "User", | ||
"Developer": "User", | ||
"Doctor": "User", | ||
"Driver": "User", | ||
"Employee": "User", | ||
"Employer": "User", | ||
"Follower": "User", | ||
"Guardian": "User", | ||
"Insuree": "User", | ||
"Issuer": "User", | ||
"Landlord": "User", | ||
"Lead": "User", | ||
"Learner": "User", | ||
"Member": "User", | ||
"Mentor": "User", | ||
"Moderator": "User", | ||
"Organizer": "User", | ||
"Owner": "User", | ||
"Panelist": "User", | ||
"Participant": "User", | ||
"Partner": "User", | ||
"Passenger": "User", | ||
"Patient": "User", | ||
"Payee": "User", | ||
"Payer": "User", | ||
"Payor": "User", | ||
"People": "User", | ||
"Person": "User", | ||
"Player": "User", | ||
"Profile": "User", | ||
"Reader": "User", | ||
"Receiver": "User", | ||
"Recipient": "User", | ||
"Recruit": "User", | ||
"Referee": "User", | ||
"Referer": "User", | ||
"Registrant": "User", | ||
"Seller": "User", | ||
"Sender": "User", | ||
"Shareholder": "User", | ||
"Shopper": "User", | ||
"Signer": "User", | ||
"Student": "User", | ||
"Subscriber": "User", | ||
"Supplier": "User", | ||
"Teacher": "User", | ||
"Trainer": "User", | ||
"User": "User", | ||
"Veteran": "User", | ||
"Volunteer": "User", | ||
"Winner": "User" | ||
} |
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
Oops, something went wrong.