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

Sync to latest #2

Open
wants to merge 139 commits into
base: current
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
139 commits
Select commit Hold shift + click to select a range
066f1af
Adds Github workflow to publish the API on pushes to nys
dennisgove Aug 4, 2020
5cdd6ee
Fixes typo in job name
dennisgove Aug 4, 2020
1f53e23
fixing actions
stevenbower Aug 6, 2020
2886331
Semver + releases
stevenbower Aug 10, 2020
808dc6d
Adds Github workflow to publish the API on pushes to nys
dennisgove Aug 4, 2020
5091e6e
Fixes typo in job name
dennisgove Aug 4, 2020
0d726d3
fixing actions
stevenbower Aug 6, 2020
b1f0760
Semver + releases
stevenbower Aug 10, 2020
274474a
WIP
stevenbower Aug 12, 2020
892cac9
Merge branch 'nys' of https://github.com/project-vagabond/covid-green…
stevenbower Aug 12, 2020
b807055
Dev/QA/Prod publishing
stevenbower Aug 12, 2020
40a480c
fixing the QA and PROD migration container registry addresses
segfault Aug 14, 2020
d09e63e
Merge pull request #15 from project-vagabond/migration-registry-fix
segfault Aug 14, 2020
28965be
Merge remote-tracking branch 'green/current' into nys
dennisgove Aug 14, 2020
2812d3a
Add nys settings (#14)
segfault Aug 17, 2020
ff4527c
Merge branch 'current' into nys
dennisgove Aug 17, 2020
b3d7a58
removing dry-run from the semver config. #minor
segfault Aug 18, 2020
49bf985
Merge branch 'current' into nys
dennisgove Aug 21, 2020
a839456
Add privacy policy (#16)
segfault Aug 21, 2020
e45d78a
dpinText is actually dpinText.<language code> (#17)
segfault Aug 21, 2020
521abac
updating the privacy policy so it looks better (#18)
segfault Aug 23, 2020
7ae1573
updating the privacy policy so it looks better (#19)
segfault Aug 24, 2020
ffb84a4
Merge branch 'current' into nys
dennisgove Aug 25, 2020
55d356b
privacy policy per project-vagabond/covid-green-app#48 (#20)
segfault Aug 28, 2020
30c19ad
Comments out migration with syntax error in it
dennisgove Aug 28, 2020
0b361a9
Fixing the settings data setup
colmharte Aug 29, 2020
fa8552c
Merge pull request #22 from project-vagabond/settings-fix
arybka777 Aug 29, 2020
1b08efa
Removing escape character
colmharte Aug 30, 2020
99fde5b
Merge pull request #23 from project-vagabond/settings-fix-escape
colmharte Aug 30, 2020
d8258ca
upping the fileLimit to 12 (#25)
segfault Sep 2, 2020
c82bb1e
Merge branch 'current' into nys
dennisgove Sep 8, 2020
933babd
switching to 15 minutes for the exposure time threshold (#27)
segfault Sep 9, 2020
95b4b79
switching back to 10 minutes. (#28)
segfault Sep 10, 2020
c305f43
Merge pull request #31 from project-vagabond/current
segfault Sep 18, 2020
b79f82e
updating the privacy policy to the current translations
segfault Sep 24, 2020
8d740c4
Merge pull request #32 from project-vagabond/privacy_policy_v5
segfault Sep 24, 2020
ee2b565
fixing the Spanish privacy policy markdown
segfault Sep 24, 2020
fdf6ab1
Merge pull request #33 from project-vagabond/fixing_es_privacy_policy
segfault Sep 24, 2020
105bf3e
fixing the privacy policy url
segfault Sep 24, 2020
46c909e
Merge pull request #34 from project-vagabond/fixing_privacy_policy_url
segfault Sep 24, 2020
2becdff
updating the privacy policy url
segfault Sep 28, 2020
1d75e27
Merge pull request #35 from project-vagabond/privacy_policy_update
segfault Sep 28, 2020
6ade4b1
updating to the latest privacy policy url
segfault Oct 1, 2020
555c353
Merge pull request #36 from project-vagabond/privacy_policy_update_cv
segfault Oct 1, 2020
29f5533
Merge pull request #37 from covid-alert-ny/current
mb2con Oct 5, 2020
6d7c1c3
updating project-vagabond refs
segfault Oct 5, 2020
99a3f64
Merge pull request #38 from covid-alert-ny/post_rename_build_update
segfault Oct 5, 2020
a54bb51
Loosen metrics version schema (#62)
jackmurdoch Oct 6, 2020
7c4b3a8
Insert metrics with local timezone (#63)
jackmurdoch Oct 6, 2020
9f88bbd
Merge pull request #39 from covidgreen/current
mb2con Oct 6, 2020
8f256bd
Merge pull request #40 from covid-alert-ny/current
mb2con Oct 6, 2020
e20dd6f
Make version optional in metrics endpoint (#64)
jackmurdoch Oct 12, 2020
da61011
Use midnight UTC as cut-off for exposure key expiration (#61)
jackmurdoch Oct 12, 2020
b5b00e1
Support for multiple interop servers (#65)
jackmurdoch Oct 12, 2020
2e8ebe2
Add Yiddish to Privacy policy.
Oct 19, 2020
9a1d2ed
fix filename
Oct 20, 2020
2ce3c39
Merge pull request #41 from covid-alert-ny/new_translations
mb2con Oct 20, 2020
747a528
Merge pull request #42 from covidgreen/current
mb2con Oct 21, 2020
47c2f88
undo a failed migration.
Oct 21, 2020
57e5933
Merge pull request #44 from covid-alert-ny/undo/migration_v6
mb2con Oct 21, 2020
0e5bd67
Merge pull request #43 from covid-alert-ny/current
mb2con Oct 21, 2020
67c532d
delete old migration file, add new one.
Oct 21, 2020
62932f7
Merge pull request #45 from covid-alert-ny/current
mb2con Oct 21, 2020
404fdb5
add new line
Oct 21, 2020
5878edf
Merge pull request #46 from covid-alert-ny/current
mb2con Oct 21, 2020
80a7de4
delete
Oct 22, 2020
32b4272
Log when falling back to a default value when getting an optional par…
jackmurdoch Nov 4, 2020
3648e9a
Properly calculate days since onset date per key (#67)
jackmurdoch Nov 4, 2020
459dbd9
allow more flexibility with cors (#68)
paolochiodi Nov 5, 2020
e319434
Additional backend metrics, exposures limit minimum of 6 (#69)
jackmurdoch Nov 9, 2020
b67e012
Fixing yidish privacy link
colmharte Nov 14, 2020
8a12e6b
Add endpoints to send self-isolation notices (#70)
paolochiodi Nov 17, 2020
06a9423
Adding Arabic provacy policy
colmharte Nov 17, 2020
95ed07a
Support for proxying requests to third party verification server (#71)
jackmurdoch Dec 11, 2020
152e00f
Merge pull request #48 from covidgreen/current
dgonzalez Dec 14, 2020
1e3e371
Merge pull request #50 from covid-alert-ny/current
dgonzalez Dec 14, 2020
14066e5
Adding ENS v2 config
colmharte Jan 7, 2021
c62333f
Fixing migration
colmharte Jan 7, 2021
547c245
Syncing to latest changes
colmharte Jan 21, 2021
4269cd1
Merge pull request #72 from covidgreen/updating-latest
colmharte Jan 21, 2021
567cda2
Syncing to latest changes (#51)
colmharte Jan 21, 2021
b372f84
Merge branch 'current' into nys
colmharte Jan 21, 2021
a08818d
Syncing with latest changes (#73)
colmharte Feb 24, 2021
fd24039
Sync to latest (#80)
colmharte Feb 25, 2021
1dbf415
Sync to latest (#82)
colmharte Feb 26, 2021
31da148
Merge branch 'current' into current
colmharte Feb 26, 2021
5b28544
Sync to latest (#52)
colmharte Feb 26, 2021
7696c7c
Merge branch 'current' into nys
colmharte Feb 26, 2021
e4d281d
Sync to latest (#92)
colmharte Mar 5, 2021
211f61c
Merge branch 'current' into current
colmharte Mar 5, 2021
1ec2a56
Sync to latest (#63)
colmharte Mar 5, 2021
d37192d
Sync to latest (#63) (#64)
colmharte Mar 5, 2021
f6ac2aa
Renaming
colmharte Mar 5, 2021
97de276
Sync to latest (#120)
colmharte Mar 26, 2021
4d347f8
Merge branch 'current' into current
colmharte Mar 26, 2021
9124442
Sync to latest (#90)
colmharte Mar 26, 2021
cacbba7
Merge branch 'nys' into current
colmharte Mar 26, 2021
df22c83
Sync to latest (#91)
colmharte Mar 26, 2021
15060d1
Update covidgreen-tests-linting.yml
colmharte Apr 13, 2021
51f51ad
Update covidgreen-tests-linting.yml
colmharte Apr 13, 2021
bcd7a24
Delete dependabot.yml
colmharte Apr 13, 2021
8fb0398
Delete dependabot.yml
colmharte Apr 13, 2021
0bad0f3
Delete dependabot.yml
colmharte Apr 13, 2021
bc0aed4
Update covidgreen-tests-linting.yml
colmharte Apr 13, 2021
5493374
Sync to latest (#141)
colmharte Apr 27, 2021
4a6dc1b
Sync (#142)
colmharte Apr 27, 2021
02644df
Update covidgreen-tests-linting.yml
colmharte Apr 27, 2021
f4d80eb
Sync to latest (#143)
colmharte Apr 30, 2021
5856e64
Sync to latest (#144)
colmharte May 14, 2021
5fce3a5
Merge branch 'current' into current
colmharte May 14, 2021
816ec32
Sync to latest (#114)
colmharte May 14, 2021
5d34389
Merge branch 'nys' into current
colmharte May 14, 2021
6d8d4b8
Sync latest (#145)
colmharte May 21, 2021
bd4b661
Delete dependabot.yml
colmharte May 21, 2021
4737e79
Delete push-to-nys.yml
colmharte May 21, 2021
a69858b
Sync up contributors, clarify onboarding (#21)
jasnell May 21, 2021
35898ba
Delete 202008131450.do.nys-settings.sql
colmharte May 21, 2021
8f8344f
Delete 202008211202.do.nys-privacy.sql
colmharte May 21, 2021
038534d
Delete 202008211730.do.nys-privacy-v2.sql
colmharte May 21, 2021
1d74935
Delete 202008211813.do.nys-privacy-v3.sql
colmharte May 21, 2021
12eaada
Delete 202008272200.do.nys-privacy-v4.sql
colmharte May 21, 2021
9efcded
Delete 202008300730.do.nys-fix-settings-1.sql
colmharte May 21, 2021
fcab02f
Delete 202008290730.do.nys-fix-settings.sql
colmharte May 21, 2021
5e60f6e
Delete 202010011354.do.nys-privacy-v5-4.sql
colmharte May 21, 2021
388724b
Delete 202009021540.do.nys-file-count.sql
colmharte May 21, 2021
a8425ad
Delete 202009091049.do.nys-exposure-thold15.sql
colmharte May 21, 2021
cb3b10c
Delete 202009241128.do.nys-privacy-v5.sql
colmharte May 21, 2021
d51cf54
Delete 202009241348.do.nys-privacy-v5-es-fix.sql
colmharte May 21, 2021
48d5d91
Delete 202009241520.do.nys-privacy-v5-2.sql
colmharte May 21, 2021
05c7a13
Delete 202009281225.do.nys-privacy-v5-3.sql
colmharte May 21, 2021
d2d1894
Delete 202009100032.do.nys-exposure-thold10.sql
colmharte May 21, 2021
1c527f0
Delete 202011141058.do.privacy-policy-v7.sql
colmharte May 21, 2021
0033225
Delete 202011171658.do.privacy-policy-arabic.sql
colmharte May 21, 2021
65810b1
Delete 202101071000.do.ensv2.sql
colmharte May 21, 2021
a15d74b
Delete 202101071100.do.ensv2-10min.sql
colmharte May 21, 2021
241b27e
Delete push-to-nys-for-branch.yml
colmharte May 21, 2021
91830ce
Merge branch 'current' into current
colmharte May 21, 2021
8fdcd8a
fix: LFPH image link
Eomm Nov 12, 2021
724e29b
Merge pull request #149 from Eomm/patch-1
andreaforni Nov 17, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 22 additions & 1 deletion .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,14 @@ API_PORT=5000
ENABLE_CALLBACK=true
ENABLE_CHECK_IN=true
ENABLE_METRICS=true
ENABLE_NOTICES=true
ENABLE_QR_VENUES=true

CONFIG_VAR_PREFIX=
NODE_ENV=development
LOG_LEVEL=debug
CORS_ORIGIN=true
CORS_CREDENTIALS=

DB_HOST=localhost
DB_READ_HOST=localhost
Expand All @@ -28,15 +31,18 @@ JWT_ISSUER=local-api

HSTS_MAX_AGE=300
CERTIFICATE_AUDIENCE=local-api
DEFAULT_REGION=
DEFAULT_REGION=IE
REFRESH_TOKEN_EXPIRY=10y
CODE_LIFETIME_MINS=10
CODE_LIFETIME_DEEPLINK_MINS=1440
DEEP_LINKS_ALLOWED=true
TOKEN_LIFETIME_MINS=60
UPLOAD_MAX_KEYS=14
UPLOAD_TOKEN_LIFETIME_MINS=1440
VERIFY_RATE_LIMIT_SECS=1
ENCRYPT_KEY=12345678901234567890123456789012
CALLBACK_QUEUE_URL=
NOTICES_QUEUE_URL=
ASSETS_BUCKET=
METRICS_CONFIG={ "CONTACT_UPLOAD": 60, "CHECK_IN": 60, "FORGET": 60, "TOKEN_RENEWAL": 60, "CALLBACK_OPTIN": 60, "CALLBACK_REQUEST": 60, "DAILY_ACTIVE_TRACE": 60, "CONTACT_NOTIFICATION": 60 }

Expand All @@ -48,9 +54,24 @@ DEVICE_CHECK_PACKAGE_DIGEST=
DEVICE_CHECK_CERTIFICATE_DIGEST=
DEVICE_CHECK_ROOT_CA=
DEVICE_CHECK_TIME_DIFF_THRESHOLD_MINS=10
DEVICE_CHECK_RECAPTCHA_SECRET=

VERIFY_KEY_ID=
VERIFY_PRIVATE_KEY=
VERIFY_PUBLIC_KEY=
VERIFY_PROXY_URL=
VERIFY_PROXY_API_KEY=

QR_EMAIL_ADDRESS_VERIFY_LIFETIME=60
QR_ALERT_QUEUE_URL=
QR_QUEUE_URL=
QR_SECRET=

TIME_ZONE=UTC

DEEPLINK_PACKAGE_NAME=com.nf.app
DEEPLINK_APPSTORE_LINK=https://apps.apple.com/ie/app/covid-tracker-nf/id1234567
DEEPLINK_DEFAULT_WEBPAGE=https://nf.com/covidapps
LOG_CALLBACK_REQUEST=false
ALLOW_NO_TOKEN=false

4 changes: 2 additions & 2 deletions .github/workflows/covidgreen-tests-linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Running tests with node ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v2.1.5
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
Expand All @@ -35,7 +35,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Running lint with node ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v2.1.5
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
Expand Down
9 changes: 5 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,16 @@ We have many collaborators, and every kind of contribution is welcome! Our organ
| `@covidgreen/leads` | Lead Maintainers | GitHub organization owners |
| `@covidgreen/core` | Core development | `covid-green-backend-api` |

Every memeber of the org is also part of `@covidgreen/members`.
Every member of the org is also part of `@covidgreen/members`.

### Onboarding Collaborators

Welcome to the team! We are happy to have you. Before you start, please complete the following tasks:
Before a new Collaborator can be onboarded, an issue nominating the new contributor as a project member must be opened. The new member will be added if there are no objections raised from other existing members. Contributors nominated should have at least some history of contribution and an intent to continue contributing.

Once a nomination has been accepted... Welcome to the team! We are happy to have you. Before you start, please complete the following tasks:
1. Set up 2 factor authentication for GitHub and NPM
- [GitHub 2FA](https://help.github.com/en/articles/securing-your-account-with-two-factor-authentication-2fa)
- [NPM 2FA](https://docs.npmjs.com/about-two-factor-authentication)
2. Choose which team to join *(more than one is ok!)* based on how you want to help.
3. Open a pull request to [`covidgreen/covid-green-backend-api:current`](https://github.com/covidgreen/covid-green-backend-api/pulls) that adds your name, username, and email to the team you have choosen in the [README.md](./README.md). The members lists are sorted alphabetically; make sure to add your name in the proper order.

### Offboarding Collaborators
Expand All @@ -58,7 +59,7 @@ We'll be really happy to see you here again if you want to come back, but for no

The person that did the onboarding must:
1. If the collaborator doesn't reply to the ping in reasonable time, open the pull requests described above.
2. Remove the collaborator from the teams on GitHub.
1. Remove the collaborator from the teams on GitHub.
-----------------------------------------

<a id="developers-certificate-of-origin"></a>
Expand Down
15 changes: 9 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ $> npm run create:env

### Running API Outside Docker

You can run the API outside of Docker but the database still requires Docker.
You can run the API outside of Docker but the database still requires Docker.

First we'll start and setup the database.
```bash
Expand Down Expand Up @@ -87,7 +87,7 @@ And again, at this point the API service is up and listening on port 5000. You c
$> docker ps
IMAGE PORTS NAMES
covid-green-backend-api_covid-green-api 0.0.0.0:5000->5000/tcp covid-green-api
postgres:10.4-alpine 0.0.0.0:5432->5432/tcp covid-green-db
postgres:10.4-alpine 0.0.0.0:5432->5432/tcp covid-green-db
```
Editing files outside the container will cause `nodemon` to restart the service.
Expand Down Expand Up @@ -132,6 +132,7 @@ All the endpoints in this service use varied sets of configuration settings and
| `ENABLE_CALLBACK` | `enable_callback` | Boolean indicating whether feature is turned on |
| `ENABLE_CHECK_IN` | `enable_check_in` | Boolean indicating whether feature is turned on |
| `ENABLE_METRICS` | `enable_metrics` | Boolean indicating whether feature is turned on |
| `ENABLE_NOTICES` | `enable_self_isolation_notices` | Boolean indicating whether feature is turned on |
| `LOG_LEVEL` | `log_level` | Standard logging level setting |
| `CORS_ORIGIN` | `cors_origin` | Boolean indicating something about CORS |
| `DB_HOST` | `db_host` | Connection host for database (writing/reading) |
Expand All @@ -147,9 +148,11 @@ All the endpoints in this service use varied sets of configuration settings and
| `UPLOAD_TOKEN_LIFETIME_MINS` | `upload_token_lifetime_mins` | ?? |
| `VERIFY_RATE_LIMIT_SECS` | `security_verify_rate_limit_secs` | ?? |
| `CALLBACK_QUEUE_URL` | `callback_url` | ?? |
| `NOTICES_QUEUE_URL` | `self_isolation_notices_url` | ?? |
| `ASSETS_BUCKET` | `s3_assets_bucket` | ?? |
| `CALLBACK_RATE_LIMIT_SECS` | `security_callback_rate_limit_secs` | # of seconds required before a user can request another callback |
| `CALLBACK_RATE_LIMIT_REQUEST_COUNT` | `security_callback_rate_limit_request_count` | # of callback requests allowed before rate limit goes into effect |
| `NOTICES_RATE_LIMIT_SECS` | `security_notices_rate_limit_secs` | # of seconds required before a user can request another notice unique key |

#### Secret Settings

Expand Down Expand Up @@ -186,16 +189,16 @@ All the endpoints in this service use varied sets of configuration settings and

### Contributors

* @dennisgove - Dennis Gove <dpgove@gmail.com>
* @fiacc - Fiacc O'Brien Moran <fiacc.obrienmoran@nearform.com>

### Past Contributors

* TBD
* TBD
* @dennisgove - Dennis Gove <[email protected]>
* @dharding - David J Harding <[email protected]>

## Hosted By

<a href="https://www.lfph.io"><img alttext="Linux Foundation Public Health Logo" src="https://raw.githubusercontent.com/lfph/artwork/master/lfph/stacked/color/lfph-stacked-color.svg" width="200"></a>
<a href="https://www.lfph.io"><img alttext="Linux Foundation Public Health Logo" src="https://raw.githubusercontent.com/lfph/artwork/main/other/lfph/stacked/color/lfph-stacked-color.svg" width="200"></a>

[Linux Foundation Public Health](https://www.lfph.io)

Expand Down
Loading