doerfli / hibp-proxy

Proxy for the API of haveibeenpwned.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HIBP API Proxy

This is a proxy for the haveibeenpwned.com API V3 function Getting all breaches for an account (https://haveibeenpwned.com/API/v3#BreachesForAccount). The result of the query is sent to an Android Device via Google Firebase Messaging.

Usage

Then send a HTTP GET request to <hostname>:<port>/search?account=<account>&device_token=<firebase-device-token>. The response is sent back to the device identified by the device_token.

Environment variables

To run this, the following environment variables need to be set

  • HIBP_API_KEY
  • FIREBASE_CREDENTIALS - base64 encoded content of service-account-file.json (from google firebase console)

About

Proxy for the API of haveibeenpwned.com

License:Apache License 2.0


Languages

Language:Kotlin 90.2%Language:Dockerfile 9.5%Language:Procfile 0.3%