Skip to content

Commit b85b32d

Browse files
author
Nil20
committed
Merge branch 'develop' into ocrvs-11271
2 parents 3b241b6 + f08389c commit b85b32d

File tree

19 files changed

+700
-231
lines changed

19 files changed

+700
-231
lines changed

.husky/pre-push

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
#!/bin/sh
2-
31
branch=$(git rev-parse --abbrev-ref HEAD)
42
pattern='^[a-z][a-z0-9\/\-]{1,29}$'
53

4+
bash << EOF
5+
66
if [[ ! "$branch" =~ $pattern ]]; then
77
echo """
88
❌ Invalid branch name: '$branch'
@@ -16,4 +16,6 @@ if [[ ! "$branch" =~ $pattern ]]; then
1616
exit 1
1717
fi
1818

19+
EOF
20+
1921
exit 0

CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,27 @@
11
# Changelog
22

3+
## 2.0.0
4+
5+
### Breaking changes
6+
7+
- Switch to docker.io/chumaky/postgres_mongo_fdw:17.6_fdw5.5.2 image to support `mongo_fdw`. This is required for the legacy user migrations to work. It will be switched back to the official postgres image in a future release.
8+
- A new service `legacy-user-migration` which runs the same migration image but with the `migrate-legacy-users` flag and with the following new environment variables:
9+
- EVENTS_SUPERUSER_POSTGRES_URL
10+
- MONGO_HOST
11+
- MONGO_PORT
12+
- MONGO_USERNAME
13+
- MONGO_PASSWORD
14+
- MONGO_REPLICA_SET
15+
16+
The default values for these variables have been added to the `docker-compose.deploy.yml` file. They should work out of the box for most deployments, but please ensure to set them correctly if you have a custom MongoDB setup.
17+
18+
## 1.9.2
19+
20+
### New features
21+
22+
- Certificate templates now support multi-page SVGs using <g data-page="X">...</g>, allowing implementors to configure and render multi-page certificates.
23+
- Birth certificate PDF export now omits header, footer, and QR code; example SVG updated for security-paper templates.
24+
325
## 1.9.1
426

527
### Breaking changes

infrastructure/docker-compose.deploy.yml

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -913,6 +913,7 @@ services:
913913
options:
914914
gelf-address: 'udp://127.0.0.1:12201'
915915
tag: 'config'
916+
916917
migration:
917918
environment:
918919
- USER_MGNT_MONGO_URL=mongodb://user-mgnt:${USER_MGNT_MONGODB_PASSWORD}@mongo1/user-mgnt?replicaSet=rs0
@@ -942,6 +943,49 @@ services:
942943
options:
943944
gelf-address: 'udp://127.0.0.1:12201'
944945
tag: 'migration'
946+
947+
legacy-user-migration:
948+
image: ghcr.io/opencrvs/ocrvs-migration:${VERSION}
949+
command: ["/bin/sh", "-c", "/app/wait && yarn start:prod --migrate-legacy-users"]
950+
environment:
951+
- USER_MGNT_MONGO_URL=mongodb://user-mgnt:${USER_MGNT_MONGODB_PASSWORD}@mongo1/user-mgnt?replicaSet=rs0
952+
- DASHBOARD_MONGO_URL=mongodb://performance:${PERFORMANCE_MONGODB_PASSWORD}@mongo1/performance?replicaSet=rs0
953+
- APPLICATION_CONFIG_MONGO_URL=mongodb://config:${CONFIG_MONGODB_PASSWORD}@mongo1/application-config?replicaSet=rs0
954+
- HEARTH_MONGO_URL=mongodb://hearth:${HEARTH_MONGODB_PASSWORD}@mongo1/hearth-dev?replicaSet=rs0
955+
- EVENTS_MONGO_URL=mongodb://events:${EVENTS_MONGODB_PASSWORD}@mongo1/events?replicaSet=rs0
956+
- OPENHIM_MONGO_URL=mongodb://openhim:${OPENHIM_MONGODB_PASSWORD}@mongo1/openhim-dev?replicaSet=rs0
957+
- EVENTS_POSTGRES_URL=postgres://events_migrator:${EVENTS_MIGRATOR_POSTGRES_PASSWORD}@postgres/events
958+
- EVENTS_SUPERUSER_POSTGRES_URL=postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres/events
959+
- SEARCH_URL=http://search:9090/
960+
- ES_HOST=search-user:${ROTATING_SEARCH_ELASTIC_PASSWORD}@elasticsearch:9200
961+
- INFLUX_HOST=influxdb
962+
- INFLUX_PORT=8086
963+
- INFLUX_DB=ocrvs
964+
- WAIT_HOSTS=mongo1:27017,influxdb:8086,minio:9000,elasticsearch:9200
965+
- MINIO_ACCESS_KEY=${MINIO_ROOT_USER}
966+
- MINIO_SECRET_KEY=${MINIO_ROOT_PASSWORD}
967+
- MINIO_HOST=minio
968+
- MINIO_PORT=9000
969+
- MINIO_BUCKET=ocrvs
970+
- SUPER_USER_PASSWORD=${SUPER_USER_PASSWORD}
971+
- MONGO_HOST=mongo1
972+
- MONGO_PORT=27017
973+
- MONGO_USERNAME=${MONGODB_ADMIN_USER}
974+
- MONGO_PASSWORD=${MONGODB_ADMIN_PASSWORD}
975+
- MONGO_REPLICA_SET=rs0
976+
deploy:
977+
labels:
978+
- 'traefik.enable=false'
979+
replicas: 1
980+
restart_policy:
981+
condition: on-failure
982+
networks:
983+
- overlay_net
984+
logging:
985+
driver: gelf
986+
options:
987+
gelf-address: 'udp://127.0.0.1:12201'
988+
tag: 'legacy-user-migration'
945989
# Configure other dependencies with deployment specifc details
946990
hearth:
947991
environment:
@@ -967,7 +1011,7 @@ services:
9671011
tag: 'hearth'
9681012

9691013
postgres:
970-
image: postgres:17.6
1014+
image: docker.io/chumaky/postgres_mongo_fdw:17.6_fdw5.5.2
9711015
networks:
9721016
- overlay_net
9731017
restart: unless-stopped
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# Source: https://www.ssh-audit.com/hardening_guides.html#ubuntu_24_04_lts
22
# Restrict key exchange, cipher, and MAC algorithms, as per sshaudit.com hardening guide.
3-
KexAlgorithms [email protected],gss-curve25519-sha256-,curve25519-sha256,curve25519-sha256@libssh.org,diffie-hellman-group18-sha512,diffie-hellman-group-exchange-sha256,gss-group16-sha512-,diffie-hellman-group16-sha512
3+
KexAlgorithms [email protected],curve25519-sha256,[email protected],diffie-hellman-group18-sha512,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512
44
Ciphers [email protected],[email protected],aes256-ctr,aes192-ctr,[email protected],aes128-ctr
55
66
RequiredRSASize 3072
77
HostKeyAlgorithms [email protected],[email protected],[email protected],[email protected],[email protected],ssh-ed25519,rsa-sha2-512,rsa-sha2-256
88
CASignatureAlgorithms [email protected],ssh-ed25519,rsa-sha2-512,rsa-sha2-256
9-
GSSAPIKexAlgorithms gss-curve25519-sha256-,gss-group16-sha512-
9+
#GSSAPIKexAlgorithms gss-curve25519-sha256-,gss-group16-sha512-
1010
HostbasedAcceptedAlgorithms [email protected],[email protected],[email protected],[email protected],[email protected],ssh-ed25519,rsa-sha2-512,rsa-sha2-256
11-
PubkeyAcceptedAlgorithms [email protected],[email protected],[email protected],[email protected],[email protected],ssh-ed25519,rsa-sha2-512,rsa-sha2-256
11+
PubkeyAcceptedAlgorithms [email protected],[email protected],[email protected],[email protected],[email protected],ssh-ed25519,rsa-sha2-512,rsa-sha2-256

package.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@opencrvs/countryconfig",
3-
"version": "1.9.1",
3+
"version": "1.9.2",
44
"description": "OpenCRVS country configuration for reference data",
55
"os": [
66
"darwin",
@@ -26,7 +26,8 @@
2626
"port-forward": "bash infrastructure/port-forward.sh",
2727
"environment:init": "ts-node infrastructure/environments/setup-environment.ts",
2828
"environment:upgrade": "yarn environment:init",
29-
"sort-translations": "cross-env NODE_ENV=development ts-node -r tsconfig-paths/register src/sort-translations.ts"
29+
"sort-translations": "cross-env NODE_ENV=development ts-node -r tsconfig-paths/register src/sort-translations.ts",
30+
"prepare": "husky"
3031
},
3132
"devDependencies": {
3233
"@inquirer/editor": "^1.2.13",
@@ -63,7 +64,7 @@
6364
"@hapi/boom": "^9.1.1",
6465
"@hapi/hapi": "^20.0.1",
6566
"@hapi/inert": "^6.0.3",
66-
"@opencrvs/toolkit": "1.9.0-rc.cdc3e01",
67+
"@opencrvs/toolkit": "1.9.2-rc.1191623",
6768
"@types/chalk": "^2.2.0",
6869
"@types/csv2json": "^1.4.0",
6970
"@types/fhir": "^0.0.30",
@@ -123,8 +124,5 @@
123124
},
124125
"resolutions": {
125126
"acorn": "^6.4.1"
126-
},
127-
"husky": {
128-
"hooks": {}
129127
}
130128
}

0 commit comments

Comments
 (0)