summaryrefslogtreecommitdiff
path: root/cmds/incidentd/src/Privacy.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Remove encryption from incidentdYao Chen2019-04-301-6/+0
| | | | | | | Test: build Bug: 131371777 Change-Id: I412c73658025246004412f3bcdcf30f74d766326
* Get incidentd cts working again.Joe Onorato2019-04-261-0/+23
| | | | | | | | | | | | | - The buffer size increased, and the CTS test that checked that was triggering. - Privacy filtering wasn't working for the stack trace sections - The incident command was not handling the default arguments correctly - The throttler was throttling streaming reports, which made the test flaky. Bug: 126253679 Test: atest CtsIncidentHostTestCases Change-Id: I342cd7d0421ea8c22b7796fc99e779f21855af73
* Disable incidentd encryption.Yao Chen2019-04-251-1/+5
| | | | | | Bug: 131332217 Test: manually tested Change-Id: If98d73978eb06a616e89025fcd615750976406e1
* Add encryption in incidentd.Yao Chen2019-04-231-0/+2
| | | | | | | | | | | | | | | + Sections which require encryption will be encryted on disk. + When the sections are requested by clients (e.g., permission controller, report assignee), incidentd will decrypte the data. + For efficiency, encryption is done ONLY for sections that require encryption. + Use Keystore API for key management. Bug: 131084614 Test: incidentd_test Change-Id: I84d6b86807ba5bbde1051e847b2df6e79e6b5be5
* incidentd can now handle multiple callers asking it for incident reportsJoe Onorato2019-03-261-23/+34
| | | | | | Test: bit incident_test:* GtsIncidentManagerTestCases:* Bug: 123543706 Change-Id: I9f671dd5d8b2ad139f952a23e575c2be16120459
* Use modern c++ code style for incidentd.Yi Jin2018-03-301-0/+8
| | | | | | | | This cl does not contain code logic changes. Bug: 77333635 Test: manual and incidentd_test Change-Id: Iea0a402b1051defd45159ca267e6dd705f9ffa49
* This cl formats incidentd and makes it easier for debugging.Yi Jin2018-02-151-28/+17
| | | | | | Bug: 72755317 Test: clang-format -type=file -i <files> Change-Id: Ide91227f26c6b1db6d2e5fe8117ca5cc4cf77fd3
* Put metadata or stats into each dropbox incident report.Yi Jin2018-02-141-6/+1
| | | | | | Bug: 65451198 Test: atest incidentd_test Change-Id: Ib406b177ad7f1b4bda7fef2e606fc66a9836e060
* Modify SystemApi so it can be used by CTS to trigger incident reportYi Jin2018-01-291-2/+5
| | | | | | Bug: 72502621 Test: Cts/Gts tests covered, see the cls from the same topic Change-Id: Id0c1cc0fc0054e620de1349dab66513e554b1caa
* Fix command line tool to set the right privacy enum.Yi Jin2018-01-241-2/+8
| | | | | Test: manual Change-Id: I3f0845ea32b46f1a028f8b6d3d4180a90a47beb5
* 1. Implement Privacy Policy Tag InheritanceYi Jin2017-12-011-37/+22
| | | | | | | | | | | | 2. Expose Dest values in IIncidentReportArgs.h Please see bug for detail descriptions. Bug: 67869340 Test: unit tested and on-device test. Ran command: $ out/host/linux-x86/bin/incident-section-gen incidentd to test various of privacy taggings. Change-Id: I12af3d7da4c7c72bd63598893fe2c1f70b09baa4
* Use ProtoOutputStream to strip Pii sensetive fields in incidentdYi Jin2017-10-131-0/+3
| | | | | | | | | | The in-place algorithm in ProtoOutputStream will have at most 2 copies of possible nested message values incidentd is getting which makes it more ram-efficient, and minimize allocations. Bug: 65641021 Test: the units pass Change-Id: Ic3fe99b7e27895bd613a129ba0f12ccfca4af317
* Fixes regarding to comments in ag/2839267Yi Jin2017-09-131-27/+2
| | | | | | | | | | | 1. use struct {} to instantiate privacy fields for efficiency reason 2. use vector<uint8_t>* instead of vector<uint8_t>& to indicate the caller knows the value gets changed. 3. binary search privay policy for sections Bug: 65595927 Test: unit test covers Change-Id: Ic58c2f607465d1a7f10352b9a38c3d8b1a5cf352
* Implement Pii Stripper Part 3Yi Jin2017-09-071-0/+11
| | | | | | | | | | The incident request args sets privacy spec. Strip action is optimized to run once for each type of spec and ready for flush multiple times. Incident command is updated to take -p option to specify privacy spec. Bug: 64687253 Test: unit tests written, manually run incident command to test as well Change-Id: I6753df117f76dc1a5f4d2152baa3fbbf56b490e4
* Implement PII Stripper, part 2Yi Jin2017-09-071-0/+100
Implement EncodedBuffer that strip pii based on given privacy request. The reason to implement another buffer is the length-delimited field's size could change when its submessage gets stripped. It also intends to keep the orignal data around for other requests to consume it. In addition, the section implementation has adapted EncodedBuffer so write out to each request's fd could be request-specific. The next step is allow requests to set its privacy spec. Notice the current design set the privacy spec of dropbox to AUTOMATIC, this behavior might change in the future. Bug: 64687253 Test: unit tests are writtern, see README.md for how to run unit tests. Change-Id: I7ac236b8265ba9289dc6e17a8a5bf7f67ffb6bf5