Script to add new breaches from HIBP to the fxmonitor-breaches collection in Remote Settings
Перейти к файлу
Nihanth Subramanya a962f0bd90
Merge pull request #4 from Mozilla-GitHub-Standards/master
Add Mozilla Code of Conduct
2019-04-05 14:37:22 +02:00
.eslintrc.js Initial commit to set up repo and add the script 2019-03-01 15:48:05 +01:00
.gitignore Initial commit to set up repo and add the script 2019-03-01 15:48:05 +01:00
CODE_OF_CONDUCT.md Add Mozilla Code of Conduct file 2019-03-30 00:12:41 -07:00
LICENSE Initial commit 2019-03-01 15:34:34 +01:00
README.md Update README and npm scripts in package.json 2019-03-02 01:35:52 +01:00
package-lock.json Initial commit to set up repo and add the script 2019-03-01 15:48:05 +01:00
package.json Update README and npm scripts in package.json 2019-03-02 01:35:52 +01:00
updatebreaches.js Consistent CamelCase 2019-03-01 20:40:15 +01:00

README.md

fxmonitor-remotesettings-updater

Script to add new breaches from HIBP to the fxmonitor-breaches collection in Remote Settings

Usage

The script dry-runs by default and simply dumps the new breaches to be added to stdout. To push new breaches to Kinto, set the following environment variables:

PUSH_TO_KINTO=1 # Can be any non-empty value
KINTO_USERNAME=<kinto account username>
KINTO_PASSWORD=<kinto account password>

To run:

node updatebreaches.js

Note: VPN access is required to access Kinto server.

The script exits with 0 for success and 1 if there were any errors.