Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Render App Privacy Report/TrackerControl export as PDF #5

Closed
baltpeter opened this issue Apr 5, 2024 · 4 comments
Closed

Render App Privacy Report/TrackerControl export as PDF #5

baltpeter opened this issue Apr 5, 2024 · 4 comments
Assignees

Comments

@baltpeter
Copy link
Member

Side quest for #1: We need a way to render the user's App Privacy Report/export from TrackerControl into the PDF (cf. tweaselORG/meta#8).

@baltpeter baltpeter self-assigned this Apr 5, 2024
@baltpeter
Copy link
Member Author

baltpeter commented Apr 5, 2024

@baltpeter
Copy link
Member Author

Comparing the information we get on Android and iOS, all we really want to do is filter on the app ID and then display timestamp and hostname, I think.

"uid","daddr","time","uncertain","Tracker","Category","Package","App"
"10001","o4504513611366400.ingest.sentry.io","1712307431146","0","Functional Software Inc","Uncategorised","de.check24.check24","CHECK24"
{"timeStamp":"2024-04-05T10:30:05.188+02:00","initiatedType":"AppInitiated","context":"","domain":"config.ads.vungle.com","contextVerificationType":0,"type":"networkActivity","domainType":2,"firstTimeStamp":"2024-04-05T10:30:05.188+02:00","bundleID":"com.imangi.templerun2","domainOwner":"","hits":1,"domainClassification":1}

@baltpeter
Copy link
Member Author

baltpeter commented Apr 5, 2024

Actually, I'll also add an index. Just for convenience, so it is easier to refer to individual entries if the list is very long.

@baltpeter
Copy link
Member Author

Example complaint rendering the TrackerControl export:
complaint.pdf

zner0L added a commit that referenced this issue Jun 23, 2024
* Import har2pdf code

* har2pdf: Shift all headings down by one

* har2pdf: Make heading referencable

* First somewhat working prototype

* Description

* Only print requests referenced in the report

* Reference tracker-wiki in report

* Escaping

* Outsource style to external file

* Controller notices

* Complaints

* delete unused translations file

* Fixes #5: Render App Privacy Report/TrackerControl export

* Refactor GenerateOptions

* Mention app version in second analysis in complaint

* Complaint: Only include requests from user's network activity report

* Rename to ReportHAR

* Factor out traffic preparation

* Factor out Nunjucks code

* Factor out Typst compilation

* har2pdf: fix typo in encoding detection

* extract meta from tweasel HARs

* Allow passing harMd5

* Write docstrings

* write readme

* Fixes #4: Include software versions in report

* Add link to HAR tutorial

* Export prepareTraffic()

We need to do the same thing in platform.

* Vendor TweaselHar type

While I'm not the biggest fan of duplicating the code, we were also
(needlessly) inheriting the Node 18 restriction from CA. Also, CA is
pretty huge and I never liked depending on that just for this one type.

Since the type is expected to be pretty stable, I don't think vendoring
it is too much of an issue.

* Upgrade Parcel

Due to: parcel-bundler/parcel#9419

* Switch to our custom nunjucks fork

* Inline TrackHAR translations in bundle

I was getting the following error when trying to use ReportHAR as a
library:

Module "trackhar/i18n/en.json" needs an import assertion of type "json"

But adding the assertion didn't help—Parcel strips those.

* Export translations

* Support TrackerControl individual app exports

* Switch to released TrackHAR

* Template for informal complaints

* Actually convince Parcel to inline the translations and templates

Quite finicky…

* Remove yalc and update TrackHAR

* Add method section to report

---------

Co-authored-by: Lorenz Sieben <[email protected]>
baltpeter added a commit that referenced this issue Jun 25, 2024
* Import har2pdf code

* har2pdf: Shift all headings down by one

* har2pdf: Make heading referencable

* First somewhat working prototype

* Description

* Only print requests referenced in the report

* Reference tracker-wiki in report

* Escaping

* Outsource style to external file

* Controller notices

* Complaints

* delete unused translations file

* Fixes #5: Render App Privacy Report/TrackerControl export

* Refactor GenerateOptions

* Mention app version in second analysis in complaint

* Complaint: Only include requests from user's network activity report

* Rename to ReportHAR

* Factor out traffic preparation

* Factor out Nunjucks code

* Factor out Typst compilation

* har2pdf: fix typo in encoding detection

* extract meta from tweasel HARs

* Allow passing harMd5

* Write docstrings

* write readme

* Fixes #4: Include software versions in report

* Add link to HAR tutorial

* Export prepareTraffic()

We need to do the same thing in platform.

* Vendor TweaselHar type

While I'm not the biggest fan of duplicating the code, we were also
(needlessly) inheriting the Node 18 restriction from CA. Also, CA is
pretty huge and I never liked depending on that just for this one type.

Since the type is expected to be pretty stable, I don't think vendoring
it is too much of an issue.

* Upgrade Parcel

Due to: parcel-bundler/parcel#9419

* Switch to our custom nunjucks fork

* Inline TrackHAR translations in bundle

I was getting the following error when trying to use ReportHAR as a
library:

Module "trackhar/i18n/en.json" needs an import assertion of type "json"

But adding the assertion didn't help—Parcel strips those.

* Export translations

* Support TrackerControl individual app exports

* Switch to released TrackHAR

* Template for informal complaints

* Actually convince Parcel to inline the translations and templates

Quite finicky…

* Remove yalc and update TrackHAR

* Add method section to report

---------

Co-authored-by: Lorenz Sieben <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant