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

Questions on the downloaded keys #503

Closed
ndegendogo opened this issue Jan 7, 2021 · 10 comments
Closed

Questions on the downloaded keys #503

ndegendogo opened this issue Jan 7, 2021 · 10 comments
Labels
question Further information is requested To Be Reviewed Issue which needs to be discussed internally with the development team.

Comments

@ndegendogo
Copy link

ndegendogo commented Jan 7, 2021

I have two questions on the bundles of DEK keys that are distributed by the server.

  1. There are two endpoints at the server, one with 'DE' and one with 'EUR'. What is the difference? They seem to distribute slightly different sets of keys.
    Note: originally, I was thinking that the 'DE' endpoint distributes German-only keys, and the 'EUR' endpoint also from other countries. But the difference in their numbers seem too small for this assumption - or am I missing something?
  2. Usually, the number of keys in the daily file matches the sum of all hourly files.
    But yesterday (06 Jan 2021) there was a 'hickup' at the 'EUR' endpoint, and the number of keys did not match.
    Why?
@ndegendogo ndegendogo added the question Further information is requested label Jan 7, 2021
@dsarkar dsarkar added the To Be Reviewed Issue which needs to be discussed internally with the development team. label Jan 8, 2021
@ndegendogo
Copy link
Author

I think I found now the answer to my first question here in the specification file of the distribution service:
/version/{version}/diagnosis-keys/country": "get": Get the origin country and the common package for which diagnosis keys are available. The common package contains all diagnosis keys from the origin country as well as the keys from the European Federation Gateway Service (EFGS).
But this opens more questions:

  1. Why are the differences between the DE package and the EUR package so small? Are there not more keys coming from the other European countries?
  2. Are all German keys automatically federated to the EFGS, or is there some kind of filtering? (e.g. consent of the uploading user to the federation / information that said user has travelled / or similar)

@MikeMcC399
Copy link
Contributor

@ndegendogo

  1. Are all German keys automatically federated to the EFGS, or is there some kind of filtering? (e.g. consent of the uploading user to the federation / information that said user has travelled / or similar)

There is no separate consent to share Diagnosis Keys to EFGS. If you consent to share, then you share to all participating countries.

Consent when registering test

I asked in corona-warn-app/cwa-website#753 if there should be a new FAQ about this.

@thomasaugsten
Copy link
Member

DE is for the old client before v1.5. After 1.5 the CWA is connected to EFGS and is loading the EUR package.
There are all EFGS keys included around 10.000 keys per day. In DE there are only the EFGS keys included where the origin country mark DE specific as country of interest for this key. Most of the country mark all EU countries as country of interest

@ndegendogo
Copy link
Author

Thanks @thomasaugsten.

In DE there are only the EFGS keys included where the origin country mark DE specific as country of interest for this key.

So is this "country of interest" marked per key, or per country? Actually, I was expecting a higher number of keys from EFGS, especially as you mention that

Most of the country mark all EU countries as country of interest

@thomasaugsten
Copy link
Member

thomasaugsten commented Jan 12, 2021

Marked per key. EFGS key are in DE and EUR. EUR include also keys which are not marked for Germany.

@ndegendogo
Copy link
Author

ndegendogo commented Jan 12, 2021

I am just wondering. cwa currently shows 11 participating countries besides Germany.
The 'DE' numbers alone are roughly around 15000 - 40000 keys per day. The additional number from 'EUR' (difference, 'EUR' - 'DE') is mostly < 1000.
Do the countries usually contribute all their keys to EFGS, or only those of persons that have travelled before?

@thomasaugsten
Copy link
Member

The keys in DE are not only germany keys. Keys in DE are DE + EFGS key marked for DE. EUR are DE keys + all EFGS keys.
EUR- DE Keys are the EFGS keys not marked for DE.

@ndegendogo
Copy link
Author

@thomasaugsten Thanks a lot - now the small difference makes perfect sense.

Any idea on the reason for the "hickup" on 06 Jan? On that day the sum of the hourly keys on the EUR endpoint was less than the daily count. The key numbers on DE endpoint were in line on that day.

@thomasaugsten
Copy link
Member

No explanation for this

@ndegendogo
Copy link
Author

ok, thanks. (Not really important, I was just curious).
Closing.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested To Be Reviewed Issue which needs to be discussed internally with the development team.
Projects
None yet
Development

No branches or pull requests

4 participants