Skip to main content

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

Metadata

Release files for tornado-http-firewall 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tornado-http-firewall 0.0.3
File Size Uploaded Provenance Actions
tornado-http-firewall-0.0.3.tar.gz 6.1 kB Without provenance Details for tornado-http-firewall-0.0.3.tar.gz

Release files / tornado-http-firewall-0.0.3.tar.gz

Download URL tornado-http-firewall-0.0.3.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
e47a5f6900ee60633e399c1219bf7d693e5413b6bae6a58d6ecd745b3abef470
BLAKE2b-256 checksum
How to use checksums
cfed825a71c961dfbc4ab6bd3c1fae33591cb43084ef388609ee0f2aecafbe4e
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for tornado-http-firewall 0.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.3 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page