Django middleware client for FoxxeLabs Sentinel threat intelligence
Project description
foxxelabs-sentinel-client
Django client for FoxxeLabs Sentinel — centralised IP threat intelligence. Drop it into a Django project to:
- Block known-bad IPs before they hit your views (
SentinelBlockMiddleware). - Emit 4xx/5xx probe events to Sentinel for scoring (
SentinelEmitterMiddleware, fire-and-forget). - Pull and cache the blocklist hourly (
BlocklistCache).
The import package is sentinel_client (the distribution is
foxxelabs-sentinel-client).
Install
pip install foxxelabs-sentinel-client
Configure
In settings.py:
SENTINEL_URL = "https://sentinel-foxxelabs.fly.dev"
SENTINEL_API_KEY = "..." # your project's Sentinel key
SENTINEL_PROJECT_NAME = "my-app" # identifies this project to Sentinel
MIDDLEWARE = [
"sentinel_client.middleware.SentinelBlockMiddleware", # FIRST — blocks before processing
# ... your other middleware ...
"sentinel_client.middleware.SentinelEmitterMiddleware", # LAST — reports 4xx/5xx
]
SentinelBlockMiddleware returns 403 for blocklisted IPs; the emitter is
fire-and-forget and silently drops errors, so Sentinel downtime has zero impact
on request processing.
Resilience
If Sentinel is unreachable, the emitter swallows the error and the blocklist cache retains its last-known-good copy. Your app keeps serving.
License
Proprietary — © FoxxeLabs Limited. All rights reserved.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file foxxelabs_sentinel_client-0.2.0.tar.gz.
File metadata
- Download URL: foxxelabs_sentinel_client-0.2.0.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
82101c0d621aaffb9c57922baa0c0dce06d9ed5ac22e1bb3b7e460f0cf750e5d
|
|
| MD5 |
35bc5bd04377d2d5ca6829fd2a99e065
|
|
| BLAKE2b-256 |
3dc1f5bd42bcadf6357421f9be277211f2a8cf4ca478bf215b5d790abda3a0a4
|
File details
Details for the file foxxelabs_sentinel_client-0.2.0-py3-none-any.whl.
File metadata
- Download URL: foxxelabs_sentinel_client-0.2.0-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee6b51a5c78ff9477aacbb2f0a2d1506510f923d867b33a8e813cbba74836877
|
|
| MD5 |
74bba364abafb028e1e367de525290e1
|
|
| BLAKE2b-256 |
1e7b8d23f227f5c2ffdf9020f3a6fc8af7cae520156787938a70c176f4abd9d2
|