Validation and Hosting daemon for scatter.online.
Project description
tornado-http-firewall
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file tornado-http-firewall-0.0.2.tar.gz
.
File metadata
- Download URL: tornado-http-firewall-0.0.2.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.6.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3ac007f77c0d6b1118a5f69796863117bc6bbfd5e842e67dcd93cdbbddf9126 |
|
MD5 | 35226758baa053e4b08bb784e6b3aaee |
|
BLAKE2b-256 | 639371a50cfd9c76b1a162cef27daedfa14d144219c675598680173eef8f30c0 |