Skip to main content

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


Download files

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

Source Distribution

foxxelabs_sentinel_client-0.2.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

foxxelabs_sentinel_client-0.2.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file foxxelabs_sentinel_client-0.2.0.tar.gz.

File metadata

File hashes

Hashes for foxxelabs_sentinel_client-0.2.0.tar.gz
Algorithm Hash digest
SHA256 82101c0d621aaffb9c57922baa0c0dce06d9ed5ac22e1bb3b7e460f0cf750e5d
MD5 35bc5bd04377d2d5ca6829fd2a99e065
BLAKE2b-256 3dc1f5bd42bcadf6357421f9be277211f2a8cf4ca478bf215b5d790abda3a0a4

See more details on using hashes here.

File details

Details for the file foxxelabs_sentinel_client-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for foxxelabs_sentinel_client-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ee6b51a5c78ff9477aacbb2f0a2d1506510f923d867b33a8e813cbba74836877
MD5 74bba364abafb028e1e367de525290e1
BLAKE2b-256 1e7b8d23f227f5c2ffdf9020f3a6fc8af7cae520156787938a70c176f4abd9d2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page