
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@hisptz/dhis2-tracker-data-sync
Advanced tools
A script to sync tracker data from one DHIS2 instance to another
This script simplifies transferring of DHIS2 tracker data from one instance to another. It utilizes queuing to ensure the download and upload processes are independent of each other.
To run this script you must have
To install the script run:
npm -g install @hisptz/dhis2-tracker-data-sync
or with yarn
yarn global add @hisptz/dhis2-tracker-data-sync
To use the script you first need to setup the configuration. There are 2 ways to configure the script;
You can have an .env
file on the working directory (Directory in which you will run the script). Then environment file
should contain the following variables;
# Source DHIS2 connection
SOURCE_DHIS2_BASE_URL=""
SOURCE_DHIS2_USERNAME=""
SOURCE_DHIS2_PASSWORD=""
# Destination DHIS2 connection
DESTINATION_DHIS2_BASE_URL=""
DESTINATION_DHIS2_USERNAME=""
DESTINATION_DHIS2_PASSWORD=""
# How long should the script wait before timing out the download request
DOWNLOAD_TIMEOUT=10000
# How long should the script wait before timing out the upload request
UPLOAD_TIMEOUT=10000
# Program of the data you want to sync (It should be the same for source and destination)
PROGRAM_ID=""
# Parent organisation unit of all orgunits you want to sync (Shoud be the same for source and destination)
ORGANISATION_UNIT_ID=""
# Allow sending of notifications when the script is done
ENABLE_NOTIFICATIONS=
# Subject of the summary email
EMAIL_SUBJECT=
# Recipient of the emails (Should be a JSON serializable email)
EMAIL_RECIPIENTS=["example@org.com"]
# SendGrid key to use when sending email
SENDGRID_API_KEY=
# Email from which the summary should look like it originates from
EMAIL_FROM_EMAIL=
# Name of the sender
EMAIL_FROM_NAME=
You can also have a config.json
file with the configuration. You will have to provide its absolute value when you're
running the script.
{
"source": {
"username": "<username>",
"password": "<password>",
"baseURL": "http://baseurl"
},
"destination": {
"username": "<username>",
"password": "<password>",
"baseURL": "http://baseurl"
},
"flowConfig": {
"downloadTimeout": 10000,
"uploadTimeout": 10000
},
"dataConfig": {
"program": "<programID>",
"organisationUnit": "<parent-org-unit-id>"
},
"notificationConfig": {
"enabled": true,
"emailSubject": "Data Sync Summary",
"recipients": [
"admin@example.com"
],
"sendGridKey": "SG.VXXXXXXXX",
"from": {
"name": "Tracker Data Sync Script",
"email": "admin@example.org"
}
}
}
To run the script, run;
tracker-data-sync sync
If you are using a JSON config file then run;
tracker-data-sync sync --config /absolute/path/of/json/config
You can also run;
tracker-data-sync sync --help
For a list of further configurations.
FAQs
A script to sync tracker data from one DHIS2 instance to another
We found that @hisptz/dhis2-tracker-data-sync demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.