Firefox Monitor arms you with tools to keep your personal information safe. Find out what hackers already know about you and learn how to stay a step ahead of them.
Перейти к файлу
Nihanth Subramanya 5b78112be4 Modularize code. 2018-02-08 03:41:24 +05:30
public Move test page JS to its own file 2018-02-01 04:22:11 +05:30
routes Modularize code. 2018-02-08 03:41:24 +05:30
.env-dist Modularize code. 2018-02-08 03:41:24 +05:30
.gitignore Use dotenv to load environment variables from .env file 2018-02-01 07:25:25 +05:30
README.md for #17: more REDME updates 2018-02-05 13:47:41 -06:00
api.md Add basic info to api.md 2018-02-01 06:56:04 +05:30
app-constants.js Modularize code. 2018-02-08 03:41:24 +05:30
email-utils.js Modularize code. 2018-02-08 03:41:24 +05:30
package-lock.json Use dotenv to load environment variables from .env file 2018-02-01 07:25:25 +05:30
package.json Merge pull request #26 from pdehaan/moz-repo 2018-02-02 07:45:18 +05:30
server.js Modularize code. 2018-02-08 03:41:24 +05:30
subscribers.js Modularize code. 2018-02-08 03:41:24 +05:30

README.md

Breach Alerts

Summary

Firefox Breach Alerts notifies users when their credentials have possibly been leaked or stolen in a data breach. Powered by haveibeenpwned.com.

Context

See the Have I Been Pwned about page for the "what" and "why" of data breach alerts.

This project aims to explore how Firefox - as the user agent - can support this.

See the Breach Alert Product Brief for more background, objectives, key use cases.

Development

Requirements

Install

  1. clone and change to the directory:

     git clone https://github.com/mozilla/blurts-server.git
     cd blurts-server
    
  2. Install dependencies:

     npm install
    
  3. Copy the .env-dist file to .env:

     cp .env-dist .env
    

Run

  1. Run the server:

     node server.js
    
  2. Visit the test.html page at localhost:6060/test.html

Emails

The included .env-dist sets DEBUG_DUMMY_SMTP=1 which disables emails.

To send emails, you'll need to unset DEBUG_DUMMY_SMTP and supply real SMTP config values for sending email.

You can set and source these via the .env file, or set them directly:

export DEBUG_DUMMY_SMTP=
export SMTP_HOST=<your-smtp-host>
export SMTP_PORT=<your-smtp-port>
export SMTP_USERNAME=<your-username>
export SMTP_PASSWORD=<your-password>

Firefox Accounts

To use Firefox Accounts, you'll need to create an FxA Oauth Client and then set some OAUTH config values.

You can set and source these via the .env file, or set them directly:

OAUTH_CLIENT_ID=<your-fxa-oauth-client-id>
OAUTH_CLIENT_SECRET=<your-fxa-oauth-client-secret>
OAUTH_AUTHORIZATION_URI="https://oauth-stable.dev.lcip.org/v1/authorization"
OAUTH_PROFILE_URI="https://stable.dev.lcip.org/profile/v1/profile"
OAUTH_TOKEN_URI="https://oauth-stable.dev.lcip.org/v1/token"

Testing

TBD

Deployment

blurts is designed with 12-factor methodology.

Deploy on heroku

You will need to set required environment variables on heroku.

heroku config:set COOKIE_SECRET=unsafe-cookie-secret-for-heroku
heroku config:set DEBUG_DUMMY_SMTP=1