mozilla-services / iprepd-nginx

Openresty nginx module for integrating with iprepd
https://github.com/mozilla-services/iprepd
Mozilla Public License 2.0
9 stars 5 forks source link

V1 iprepd openresty module + example standalone proxy #1

Closed ajvb closed 6 years ago

ajvb commented 6 years ago

This follows what is described in this bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1497600

Note: This is not in mozilla-services because opm requires that you are an owner of the organization to upload the package (which makes sense).

You can integrate it into an nginx configuration or use the Dockerfile to create a standalone proxy that will check if the IP is in iprepd and has a reputation above the configured threshold.

As well, there is a built in cache of responses that has a configurable TTL (with a default of 30 seconds).

A follow-up item will be creating a compose.yml or similar that can be used to run a set of integration tests.

ajvb commented 6 years ago

@sciurus Awesome, sounds good. I'm going to merge this, migrate it over to mozilla-services (got the uploading to opm figured out), then will create a bug around adding metrics support.