Skip to content

Serverless proxy for the haveibeenpwned.com and pwnedpasswords.com APIs

License

Notifications You must be signed in to change notification settings

wKovacs64/hibp-proxy

Repository files navigation

hibp-proxy

What is this?

This is a quick-and-dirty serverless proxy for Zeit's Now platform composed of two lambdas (one for the haveibeenpwned.com API and one for the pwnedpasswords.com API). It was created as an example of how to leverage the baseUrl option in hibp library if you need to access certain API endpoints from the browser (as browser User-Agent's are blocked for some functions).

What is this not?

Production-ready. 😬 You probably shouldn't use this proxy in production for any kind of real product. Error-handling is essentially non-existent and the response headers (particularly the cache-related ones) probably need some attention.

Run your own

Deploy to now

Note: you must set the hibp-proxy-ua secret.

About

Serverless proxy for the haveibeenpwned.com and pwnedpasswords.com APIs

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published