Skip to main content

AuraProtector in-process agent for Python ASGI runtimes.

Project description

auraprotector-agent (Python)

Python in-process agent for ASGI runtimes (FastAPI/Starlette/etc).

Install

pip install auraprotector-agent

FastAPI usage

from fastapi import FastAPI
from auraprotector_agent.asgi import UltimateProtectorMiddleware

app = FastAPI()

app.add_middleware(
    UltimateProtectorMiddleware,
    license_key="UP_LIVE_...",
    api_url="https://YOUR_CLOUD/api",
)

Zero-code-ish usage (env wrapper)

If you can change how the app is created (but don't want to paste config into code), wrap the ASGI app using env vars:

import os
from fastapi import FastAPI
from auraprotector_agent import wrap_asgi_app

app = wrap_asgi_app(FastAPI())

# env:
# UP_LICENSE_KEY=UP_LIVE_...
# UP_API_URL=https://YOUR_CLOUD/api

Optional: sitecustomize bootstrap

The platform can generate a sitecustomize.py helper inside the Python auto bundle. If that file is on PYTHONPATH, Python auto-imports it on startup. Set UP_ASGI_APP="module:app" and it will best-effort wrap that object automatically (fail-open).

Notes

  • PyPI distribution name: auraprotector-agent
  • Import path: auraprotector_agent (recommended)
  • Legacy import path still supported: ultimateprotector_agent

Options

  • license_key (required)
  • api_url (required) e.g. https://cloud.example/api
  • sync_interval_seconds (default: 60)
  • allow_sample_rate (default: 0.01)
  • only_paths: list[str] exact (/checkout) or prefix (/product/*)
  • except_paths: list[str]
  • only_regex: str (Python regex)

Changelog

0.2.0

  • HMAC payload verification — Rules payloads are now authenticated with HMAC-SHA256 before decryption. Requires platform ≥ 2026-04.
  • X-Agent-Version header — Sent on every /verify request for dashboard version tracking.
  • outdated status handling — If the cloud responds with outdated, the agent fails open and stops protecting until updated.

0.1.1

  • Initial stable release with AES-256-CBC encrypted rules sync.

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

auraprotector_agent-0.2.0.tar.gz (15.8 kB view details)

Uploaded Source

Built Distribution

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

auraprotector_agent-0.2.0-py3-none-any.whl (19.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: auraprotector_agent-0.2.0.tar.gz
  • Upload date:
  • Size: 15.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for auraprotector_agent-0.2.0.tar.gz
Algorithm Hash digest
SHA256 7a46ba74d29a263bb17de2799a37abc32fbd0b1a284ba30b68e7057c3a4bc3f2
MD5 e7fb2d35df808538792ef3c55d427188
BLAKE2b-256 3c6e2cac4fd5ec9ef86ec6aec526f923a38d270cae027479678cd4885763c74c

See more details on using hashes here.

Provenance

The following attestation bundles were made for auraprotector_agent-0.2.0.tar.gz:

Publisher: release-python.yml on auraguard-co/AuraProtector

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for auraprotector_agent-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 99002679cbf24892856f4d715ee51c53ce704c617a0c6f19971e97f67448f137
MD5 60e659f21919ec8550913a2c59da62b4
BLAKE2b-256 095f31a537a1a1fa77da775865fb27401bf88ce1e4d24e2b5b327dd62760abc5

See more details on using hashes here.

Provenance

The following attestation bundles were made for auraprotector_agent-0.2.0-py3-none-any.whl:

Publisher: release-python.yml on auraguard-co/AuraProtector

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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