Skip to main content

Validation and Hosting daemon for scatter.online.

Project description

tornado-http-firewall

Build Status Coverage Status

An HTTP proxy that utilizes ACLs to control access to URIs.

NOTE: Consider this software alpha and extremely buggy and insecure. You probably shouldn't use this unless you're desparate for something like me. Pull requests are welcome and encouraged.

Requires Python>=3.6

Usage

usage: thfirewall [-h] [-a ADDRESS] [-p PORT] [-t TARGET] [-c CONFIG] [-d]

An HTTP proxy that utilizes ACLs to control access to URIs

optional arguments:
  -h, --help            show this help message and exit
  -a ADDRESS, --address ADDRESS
                        Port number to listen on
  -p PORT, --port PORT  Port number to listen on
  -t TARGET, --target TARGET
                        The target top level URL to forward requests
  -c CONFIG, --config CONFIG
                        The ACL config YAML file
  -d, --debug           Show debug messages

ACL Config Format

Here's an example ACL file. This is a whitelist. All URLs are evaluated from each path part at a time until one matches. So if someone requests /api/v0/get/QmASFD..., it will first see if /api is allowed, then /api/v0, etc...

public is the only named role. Every other one should be by IP address.

---
roles:
  public:
    - /api/v0/get
    - /api/v0/pin/ls
  127.0.0.1:
    - /api/v0/ping

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for tornado-http-firewall, version 0.0.3
Filename, size File type Python version Upload date Hashes
Filename, size tornado-http-firewall-0.0.3.tar.gz (6.1 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page