Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Download / Save Protected CheckIns (EXPOSUREAPP-8794) #3883

Conversation

mtwalli
Copy link
Contributor

@mtwalli mtwalli commented Aug 5, 2021

  • Support encrypted APIs
  • Introduced api mode which is passed down from the Task into the sync tool. meaning if App config changes while the Task is running , the new value will be considered in the next run to avoid downloading/ saving the wrong data.
  • Both encrypted and decrypted packages are saved in binary files

TODO

  • more unit tests

@mtwalli mtwalli added the maintainers Tag pull requests created by maintainers label Aug 5, 2021
@mtwalli mtwalli added this to the 2.8.0 milestone Aug 5, 2021
@mtwalli mtwalli marked this pull request as ready for review August 6, 2021 15:23
@mtwalli mtwalli requested a review from a team August 6, 2021 15:23
@ralfgehrer ralfgehrer added the prio PRs to review first. label Aug 9, 2021
@jurajkusnier jurajkusnier self-assigned this Aug 9, 2021
@sonarcloud
Copy link

sonarcloud bot commented Aug 9, 2021

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

81.0% 81.0% Coverage
0.0% 0.0% Duplication

@BMItr BMItr self-assigned this Aug 9, 2021
Copy link
Contributor

@jurajkusnier jurajkusnier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@BMItr BMItr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👌

@mtwalli mtwalli merged commit f875b04 into feature/8685-encrypt-event-check-in Aug 9, 2021
@mtwalli mtwalli deleted the feature/8794-checkin-reports-database branch August 9, 2021 13:11
mtwalli added a commit that referenced this pull request Aug 11, 2021
* Add todo

* Common config and cryptography interface (#3866)

* AES encyption decryption (EXPOSUREAPP-8788, EXPOSUREAPP-8789) (#3884)

* implement CheckInCryptography

* add tests

* code refactoring

* one more test

* code refactoring

* Adjust Checkin submission (EXPOSUREAPP-8792) (#3871)

* Pass encrypted checkin

* Revert

* Provide encrypted checkins

* Update CheckInsTransformerTest.kt

* Update SubmissionServerTest.kt

* Adjust unit tests

* Update CheckInsTransformer.kt

* Fix test

* Use encrypted CheckIns size

* Revert "Use encrypted CheckIns size"

This reverts commit e01cf03.

* Download / Save Protected CheckIns (EXPOSUREAPP-8794) (#3883)

* Rename and add encrypted API  version 2

* Move to right package

* Lint

* Provide encryption mode from Task controller

* Lint

* Derive protected warnings

* Lint

* Simple check

* Derive TraceWarning from CheckInReports

* lint

* Fix tests

* Lint

* Create TraceWarningServerTest.kt

* Create CheckInWarningMatcherKtTest.kt

* Create CheckInWarningMatcherTest2.kt

* Log

* Small fixes

* Update CheckInWarningMatcherTest2.kt

* Use encrypted CheckIns size

* More unit tests for deriving

Co-authored-by: Juraj Kusnier <jurajkusnier@users.noreply.github.com>
Co-authored-by: Marc Auberer <marc.auberer@chillibits.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
maintainers Tag pull requests created by maintainers prio PRs to review first.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants