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

ci: remove double quotes as default value (v1.5.0) #118

Closed
wants to merge 20 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
42ccda9
Code freeze 1.5.0 release
rikukissa May 13, 2024
c3f14f5
feat: generate default address according to user's location (#978)
Zangetsu101 May 3, 2024
c09042b
[HOTFIX] Mass email subject & content styles (#983)
tahmidrahman-dsi May 7, 2024
290d4f5
fix: change gateway web url to internal swarm one (#990)
Zangetsu101 May 7, 2024
06f683e
docs: update CHANGELOG
Zangetsu101 May 14, 2024
0db9777
Merge branch 'release-v1.5.0' into cherry-pick-1.5-changes
Zangetsu101 May 14, 2024
469f888
Merge pull request #112 from opencrvs/cherry-pick-1.5-changes
Zangetsu101 May 14, 2024
b6a4efd
chore: release 1.5.0
Zangetsu101 May 14, 2024
8483b1e
set owner for backup server authorized_keys to be the backup user
rikukissa May 15, 2024
590562c
Merge branch 'release-v1.5.0' of github.com:opencrvs/opencrvs-country…
rikukissa May 15, 2024
70ab185
ci: remove double quotes as default value
Zangetsu101 May 20, 2024
46a7533
docs: update CHANGELOG
Zangetsu101 May 20, 2024
9414f0f
chore!: move configuration options (#1005)
Nil20 May 20, 2024
23638d0
Merge pull request #123 from opencrvs/ocrvs-7016-countryconfig
tahmidrahman-dsi May 27, 2024
1a11643
[OCRVS-7016] Fix typo in traefik router rule (#130)
tahmidrahman-dsi Jun 5, 2024
a5489f5
Merge pull request #135 from opencrvs/v1.5.0-cherry-pick-7016
Zangetsu101 Jun 7, 2024
0858edb
fix: add translations for different informants in print, issue & corr…
anamulhaquemollah May 30, 2024
4212ba4
fix: show correct 'Place of Certification' in certificates (#131)
anamulhaquemollah Jun 7, 2024
8d89804
Merge pull request #136 from opencrvs/cherry-pick-to-v1.5
Zangetsu101 Jun 7, 2024
8835ea4
Merge branch 'release-v1.5.0' into remove-literal-quotes-v1.5
Zangetsu101 Jun 10, 2024
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
118 changes: 25 additions & 93 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,26 @@
# Changelog
## 1.5.0 (TBD)

## [1.5.0]

- Change auth URLs to access them via gateway
- Add hearth URL to search service
- Include an endpoint for serving individual certificates in development mode
- Include compositionId in confirm registration payload
- Move individual configuration options to feature flags
- Remove logrocket refrences
- Upgrade to node 18
- Enable gzip compression in client & login
- Make SENTRY_DSN variable optional
- Use docker compose v2 in github workflows
- Mass email from national system admin
- Remove dependency on openhim. The openhim db is kept for backwards compatibility reasons and will be removed in v1.6

## [1.3.4](https://github.com/opencrvs/opencrvs-countryconfig/compare/v1.3.3...v1.3.4)

## Breaking changes

## New features

## Bug fixes

- Fix typo in certificate handlebar names

See [Releases](https://github.com/opencrvs/opencrvs-countryconfig/releases) for release notes of older releases.
- Add smtp environment variables in qa compose file
- Use image tag instead of patterns in certificate SVGs
- Generate default address according to logged-in user's location
- Remove literal quotes as default value from compose files
- Remove authentication from dashboard queries route
- Added french translation of informant for print certificate flow, issue certificate flow & correction flow
- In the certificate, the 'Place of Certification' now accurately reflects the correct location.

## [1.4.1](https://github.com/opencrvs/opencrvs-countryconfig/compare/v1.4.0...v1.4.1)

Expand Down Expand Up @@ -69,90 +76,15 @@ In the next OpenCRVS release v1.5.0, there will be two significant changes:
- The `infrastructure` directory and related pipelines will be moved to a new repository.
- Both the new infrastructure repository and the OpenCRVS country resource package repositories will start following their own release cycles, mostly independent from the core's release cycle. From this release forward, both packages are released as "OpenCRVS minor compatible" releases, meaning that the OpenCRVS countryconfig 1.3.0-<incrementing release number> is compatible with OpenCRVS 1.3.0, 1.3.1, 1.3.2, etc. This allows for the release of new hotfix versions of the core without having to publish a new version of the infrastructure or countryconfig.

### Bug fixes

## [1.3.3](https://github.com/opencrvs/opencrvs-countryconfig/compare/v1.3.2...v1.3.3)

## Breaking changes

## New features

- #### Greater customizability of location data in certificates

The various admin level handlebars e.g. **statePlaceofbirth**,
**districtPrimaryMother** only contained the name of that location which was
not able to take advantage of all the information OpenCRVS had available
about the various admin levels e.g. the name of that location in the
secondary language. So we are introducing a new set of admin level
handlebars that would contain the **id** of that location which we can
resolve into a value of the shape

```
{
name: string
alias: string
}
```

using the new **"location"** handlebar helper. Here name is the primary
label of the location and alias being the secondary one. Currently only
these 2 fields are available but we will be adding more fields depending on
various countries requirements. If previously the certificate svg used to
contain `{{districtPlaceofbirth}}` then now we can replace it with
`{{location districtPlaceofbirthId 'name'}}`. To access alias, the `'name'`
needs to be replaced with `'alias'`.

Below is a list of all the new handlebars that are meant to be used with the
"location" handlebar helper.

- statePrimaryInformantId
- districtPrimaryInformantId
- statePlaceofbirthId
- districtPlaceofbirthId
- statePrimaryMotherId
- districtPrimaryMotherId
- statePrimaryFatherId
- districtPrimaryFatherId
- statePrimaryDeceasedId
- districtPrimaryDeceasedId
- statePlaceofdeathId
- districtPlaceofdeathId
- statePrimaryGroomId
- districtPrimaryGroomId
- statePrimaryBrideId
- districtPrimaryBrideId
- statePlaceofmarriageId
- districtPlaceofmarriageId
- registrar.stateId
- registrar.districtId
- registrar.officeId
- registrationAgent.stateId
- registrationAgent.districtId
- registrationAgent.officeId

##### We will be deprecating the counterpart of the above mentioned handlebars that contains only the label of the specified location in a future version so we highly recommend that implementers update their certificates to use these new ones.

- #### "Spouse" section in Farajaland death form

Spouse section is an optional section in death form. Going forward it will be included in Farajaland example configuration.

- #### Type of ID dropdown
Farajaland forms will now include a dropdown to select the type of ID an individual is providing e.g. National ID, Driving License etc. instead of being restricted to only national ID number.
- #### Number of dependents of deceased field
As an example of custom field, the deceased section in death form will now include the **numberOfDependants** field.
- #### Reason for late registration field
The birth & death forms will include another custom field, **reasonForLateRegistration**, which makes use of "LATE_REGISTRATION_TARGET" configuration option in it's visibility conditional.
## [1.3.4](https://github.com/opencrvs/opencrvs-countryconfig/compare/v1.3.3...v1.3.4)

## Bug fixes
### Bug fixes

- Updated translations for form introduction page and sending for approval to reflect the default notification method being email.
- # Remove hard-coded conditionals from "occupation" field to make it usable in the deceased form
- Fix typo in certificate handlebar names

## [1.3.3](https://github.com/opencrvs/opencrvs-countryconfig/compare/v1.3.2...v1.3.3)

## Breaking changes

## New features
### New features

- #### Greater customizability of location data in certificates

Expand Down Expand Up @@ -220,7 +152,7 @@ In the next OpenCRVS release v1.5.0, there will be two significant changes:
- #### Reason for late registration field
The birth & death forms will include another custom field, **reasonForLateRegistration**, which makes use of "LATE_REGISTRATION_TARGET" configuration option in it's visibility conditional.

## Bug fixes
### Bug fixes

- Updated translations for form introduction page and sending for approval to reflect the default notification method being email.
- Remove hard-coded conditionals from "occupation" field to make it usable in the deceased form
33 changes: 19 additions & 14 deletions infrastructure/docker-compose.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ services:
deploy:
labels:
- 'traefik.enable=true'
- 'traefik.http.routers.countryconfig.rule=Host(`countryconfig.{{hostname}}`) && !Path(`/email`) && !Path(`/notification`)'
- 'traefik.http.routers.countryconfig.rule=Host(`countryconfig.{{hostname}}`) && !Path(`/email`) && !Path(`/notification`) && !Path(`/dashboards/queries.json`)'
- 'traefik.http.services.countryconfig.loadbalancer.server.port=3040'
- 'traefik.http.routers.countryconfig.tls=true'
- 'traefik.http.routers.countryconfig.tls.certresolver=certResolver'
Expand All @@ -567,31 +567,36 @@ services:
- 'traefik.http.middlewares.countryconfig.headers.stsseconds=31536000'
- 'traefik.http.middlewares.countryconfig.headers.stsincludesubdomains=true'
- 'traefik.http.middlewares.countryconfig.headers.stspreload=true'
# This is an invalid IP range, effectively blocking all IPs from accessing /email path.
# This is an invalid IP range, effectively blocking all IPs from accessing below paths.
# It's only meant to be accessed from the internal docker network.
- 'traefik.http.middlewares.block-email.ipwhitelist.sourcerange=255.255.255.255'
- 'traefik.http.middlewares.block-internal-routes.ipwhitelist.sourcerange=255.255.255.255'
- 'traefik.http.routers.block-email.rule=Host(`countryconfig.{{hostname}}`) && Path(`/email`)'
- 'traefik.http.routers.block-email.middlewares=block-email'
- 'traefik.http.routers.block-email.middlewares=block-internal-routes'
- 'traefik.http.routers.block-notification.rule=Host(`countryconfig.{{hostname}}`) && Path(`/notification`)'
- 'traefik.http.routers.block-notification.middlewares=block-email'
- 'traefik.http.routers.block-notification.middlewares=block-internal-routes'
- 'traefik.http.routers.block-dashboard-queries.rule=Host(`countryconfig.{{hostname}}`) && Path(`/dashboards/queries.json`)'
- 'traefik.http.routers.block-dashboard-queries.middlewares=block-internal-routes'
replicas: 1
environment:
- MONGO_URL=mongodb://mongo1/user-mgnt?replicaSet=rs0
- CONFIG_MONGO_URL=mongodb://mongo1/application-config?replicaSet=rs0
- APN_SERVICE_URL=http://apm-server:8200
- COUNTRY_CONFIG_URL=https://countryconfig.{{hostname}}
- LOGIN_URL=https://login.{{hostname}}
# This needs to be the internal swarm url
# as containers cannot connect to the web
- GATEWAY_URL=http://gateway:7070
- CLIENT_APP_URL=https://register.{{hostname}}
- NOTIFICATION_TRANSPORT=${NOTIFICATION_TRANSPORT}
- ALERT_EMAIL=${ALERT_EMAIL:-""}
- SMTP_HOST=${SMTP_HOST:-""}
- SMTP_PORT=${SMTP_PORT:-""}
- SMTP_USERNAME=${SMTP_USERNAME:-""}
- SMTP_PASSWORD=${SMTP_PASSWORD:-""}
- SMTP_SECURE=${SMTP_SECURE:-""}
- INFOBIP_GATEWAY_ENDPOINT=${INFOBIP_GATEWAY_ENDPOINT:-""}
- INFOBIP_API_KEY=${INFOBIP_API_KEY:-""}
- INFOBIP_SENDER_ID=${INFOBIP_SENDER_ID:-""}
- ALERT_EMAIL=${ALERT_EMAIL:-}
- SMTP_HOST=${SMTP_HOST:-}
- SMTP_PORT=${SMTP_PORT:-}
- SMTP_USERNAME=${SMTP_USERNAME:-}
- SMTP_PASSWORD=${SMTP_PASSWORD:-}
- SMTP_SECURE=${SMTP_SECURE:-}
- INFOBIP_GATEWAY_ENDPOINT=${INFOBIP_GATEWAY_ENDPOINT:-}
- INFOBIP_API_KEY=${INFOBIP_API_KEY:-}
- INFOBIP_SENDER_ID=${INFOBIP_SENDER_ID:-}
- DOMAIN={{hostname}}
networks:
- overlay_net
Expand Down
20 changes: 10 additions & 10 deletions infrastructure/docker-compose.development-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ services:
notification:
environment:
- LANGUAGES=en,fr
- SENTRY_DSN=${SENTRY_DSN:-""}
- SENTRY_DSN=${SENTRY_DSN:-}
- QA_ENV=true
- NODE_ENV=production

Expand All @@ -22,7 +22,7 @@ services:
- CONFIRM_REGISTRATION_URL=http://workflow:5050/confirm/registration
- CHECK_INVALID_TOKEN=true
- MONGO_URL=mongodb://mongo1/user-mgnt?replicaSet=rs0
- SENTRY_DSN=${SENTRY_DSN:-""}
- SENTRY_DSN=${SENTRY_DSN:-}
- SENDER_EMAIL_ADDRESS=${SENDER_EMAIL_ADDRESS}
- ALERT_EMAIL=${ALERT_EMAIL}
- SMTP_HOST=${SMTP_HOST}
Expand All @@ -42,51 +42,51 @@ services:
gateway:
environment:
- LANGUAGES=en,fr
- SENTRY_DSN=${SENTRY_DSN:-""}
- SENTRY_DSN=${SENTRY_DSN:-}
- COUNTRY=FAR
- QA_ENV=true
- NODE_ENV=production

workflow:
environment:
- LANGUAGES=en,fr
- SENTRY_DSN=${SENTRY_DSN:-""}
- SENTRY_DSN=${SENTRY_DSN:-}
- QA_ENV=true
- NODE_ENV=production

search:
environment:
- SENTRY_DSN=${SENTRY_DSN:-""}
- SENTRY_DSN=${SENTRY_DSN:-}
- QA_ENV=true
- NODE_ENV=production

metrics:
environment:
- SENTRY_DSN=${SENTRY_DSN:-""}
- SENTRY_DSN=${SENTRY_DSN:-}
- QA_ENV=true
- NODE_ENV=production

auth:
environment:
- SENTRY_DSN=${SENTRY_DSN:-""}
- SENTRY_DSN=${SENTRY_DSN:-}
- QA_ENV=true
- NODE_ENV=production

user-mgnt:
environment:
- SENTRY_DSN=${SENTRY_DSN:-""}
- SENTRY_DSN=${SENTRY_DSN:-}
- QA_ENV=true
- NODE_ENV=production

webhooks:
environment:
- SENTRY_DSN=${SENTRY_DSN:-""}
- SENTRY_DSN=${SENTRY_DSN:-}
- QA_ENV=true
- NODE_ENV=production

config:
environment:
- SENTRY_DSN=${SENTRY_DSN:-""}
- SENTRY_DSN=${SENTRY_DSN:-}
- QA_ENV=true
- NODE_ENV=production

Expand Down
20 changes: 10 additions & 10 deletions infrastructure/docker-compose.production-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,44 +18,44 @@ services:
environment:
- NODE_ENV=production
- LANGUAGES=en,fr
- SENTRY_DSN=${SENTRY_DSN:-""}
- SENTRY_DSN=${SENTRY_DSN:-}
deploy:
replicas: 2

workflow:
environment:
- NODE_ENV=production
- LANGUAGES=en,fr
- SENTRY_DSN=${SENTRY_DSN:-""}
- SENTRY_DSN=${SENTRY_DSN:-}
deploy:
replicas: 2

search:
environment:
- NODE_ENV=production
- SENTRY_DSN=${SENTRY_DSN:-""}
- SENTRY_DSN=${SENTRY_DSN:-}
deploy:
replicas: 2

metrics:
environment:
- NODE_ENV=production
- SENTRY_DSN=${SENTRY_DSN:-""}
- SENTRY_DSN=${SENTRY_DSN:-}
- MONGO_URL=mongodb://metrics:${METRICS_MONGODB_PASSWORD}@mongo1,mongo2/metrics?replicaSet=rs0
- HEARTH_MONGO_URL=mongodb://hearth:${HEARTH_MONGODB_PASSWORD}@mongo1,mongo2/hearth-dev?replicaSet=rs0
- DASHBOARD_MONGO_URL=mongodb://performance:${PERFORMANCE_MONGODB_PASSWORD}@mongo1,mongo2/performance?replicaSet=rs0

auth:
environment:
- NODE_ENV=production
- SENTRY_DSN=${SENTRY_DSN:-""}
- SENTRY_DSN=${SENTRY_DSN:-}
deploy:
replicas: 2

user-mgnt:
environment:
- NODE_ENV=production
- SENTRY_DSN=${SENTRY_DSN:-""}
- SENTRY_DSN=${SENTRY_DSN:-}
- MONGO_URL=mongodb://user-mgnt:${USER_MGNT_MONGODB_PASSWORD}@mongo1,mongo2/user-mgnt?replicaSet=rs0
deploy:
replicas: 2
Expand All @@ -64,23 +64,23 @@ services:
environment:
- NODE_ENV=production
- LANGUAGES=en,fr
- SENTRY_DSN=${SENTRY_DSN:-""}
- SENTRY_DSN=${SENTRY_DSN:-}
- MONGO_URL=mongodb://notification:${NOTIFICATION_MONGODB_PASSWORD}@mongo1,mongo2/notification?replicaSet=rs0
deploy:
replicas: 2

webhooks:
environment:
- NODE_ENV=production
- SENTRY_DSN=${SENTRY_DSN:-""}
- SENTRY_DSN=${SENTRY_DSN:-}
- MONGO_URL=mongodb://webhooks:${WEBHOOKS_MONGODB_PASSWORD}@mongo1,mongo2/webhooks?replicaSet=rs0
deploy:
replicas: 2

config:
environment:
- NODE_ENV=production
- SENTRY_DSN=${SENTRY_DSN:-""}
- SENTRY_DSN=${SENTRY_DSN:-}
- MONGO_URL=mongodb://config:${CONFIG_MONGODB_PASSWORD}@mongo1,mongo2/application-config?replicaSet=rs0
deploy:
replicas: 2
Expand All @@ -106,7 +106,7 @@ services:
- APPLICATION_CONFIG_URL=http://config:2021
- CONFIRM_REGISTRATION_URL=http://workflow:5050/confirm/registration
- CHECK_INVALID_TOKEN=true
- SENTRY_DSN=${SENTRY_DSN:-""}
- SENTRY_DSN=${SENTRY_DSN:-}
- SENDER_EMAIL_ADDRESS=${SENDER_EMAIL_ADDRESS}
- ALERT_EMAIL=${ALERT_EMAIL}
- SMTP_HOST=${SMTP_HOST}
Expand Down
Loading
Loading