Skip to main content

Anonix Gateway

Self-hosted, fail-closed, on-the-fly data masking reverse proxy, API gateway, and web control plane powered by anonix.

Anonix Gateway lets any organization—universities, hospitals, SaaS platforms, or enterprises—deploy their own centralized data-masking layer in minutes. It protects non-relational data (JSON, XML, YAML, CSV) in memory on the fly without modifying existing backend databases or application code.


Why Anonix Gateway?

While anonix provides the pure Python in-memory masking library and CLI, enterprises need a complete self-hosted platform:

  1. Zero-Code API Protection (/proxy/{prefix}/*): Sit Anonix in front of existing internal REST APIs. External consumers call Anonix; Anonix fetches raw responses from the internal upstream, masks them in RAM for the caller's role, and returns only safe data.
  2. Language-Agnostic Masking Service (POST /v1/mask): Java, Node.js, Go, PHP, ETL, and AI/LLM pipelines send raw payloads and receive masked output on the fly.
  3. Self-Hosted Web Admin Console: First-run /setup wizard (zero hardcoded default passwords), versioned policy editor, Live Policy Playground, Auth Providers, Group Mappings, API Keys, Upstreams, Proxy Routes, and a Zero-PII Audit Log.
  4. Full Infrastructure & Auth Autonomy: Run with bundled Docker PostgreSQL + Redis, BYOD PostgreSQL (ANONIX_DATABASE_URL), or zero-setup local SQLite; authenticate callers via OIDC/JWT, API Keys, and/or Trusted-Proxy Headers.

Architecture Overview

  Consumer Apps / Partner Services / ETL
         │
         │  Bearer OIDC JWT │ X-API-Key │ Trusted-Proxy Headers
         ▼
┌──────────────────────────────────────────────────────────────────────┐
│                        ANONIX GATEWAY                                │
│                                                                      │
│  1. Inbound Auth Chain (Fail-closed 401)                             │
│  2. GroupMapping -> (Policy + Optional Role) (Fail-closed 403)       │
│  3. /proxy/* (httpx + SSRF Guard)  OR  POST /v1/mask                 │
│  4. anonix MaskingEngine in RAM (Fail-closed 502 on error)           │
│  5. Zero-PII Audit Logger + Web Admin Console                        │
└───────────────┬──────────────────────────────────┬───────────────────┘
                │ Outbound Service Creds           │ Metadata & Policies
                ▼                                  ▼
   Enterprise Internal APIs                 Gateway DB (Zero PII)
   (Private VPC / Firewall)              Postgres (Bundled/BYOD) or SQLite

Quick Start

cp .env.example .env
docker compose up -d

Open http://localhost:8000 to complete the first-run administrator setup.

To include the optional mock Student/Hospital upstream API for an instant live demo:

docker compose --profile demo up -d

Option 2: Enterprise BYOD (Bring Your Own PostgreSQL / Redis)

anonix-gateway keygen >> .env
# Edit .env and set ANONIX_DATABASE_URL (and optionally ANONIX_REDIS_URL)
docker compose -f docker-compose.byod.yml up -d

Option 3: Single-Node CLI (No Docker)

pip install anonix-gateway
anonix-gateway init
anonix-gateway serve

(If ANONIX_DATABASE_URL is omitted, a local SQLite database is created automatically in ./data/anonix.db.)


Documentation


Development & Verification

python -m venv .venv
source .venv/bin/activate   # Windows: .\.venv\Scripts\Activate.ps1
pip install -e ".[dev]"

ruff check src tests
mypy src
pytest -v

License

Apache License 2.0 — Copyright 2026 Adithya Nangarath and Nikhilesh Kalahasti. See LICENSE.

Metadata

Release files for anonix-gateway 0.1.0

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

Source distribution (sdist)

Source distribution for anonix-gateway 0.1.0
File Size Uploaded Provenance Actions
anonix_gateway-0.1.0.tar.gz 133.4 kB Without provenance Details for anonix_gateway-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for anonix-gateway 0.1.0
File Interpreter ABI Platform Actions
anonix_gateway-0.1.0-py3-none-any.whl Python 3 none any Details for anonix_gateway-0.1.0-py3-none-any.whl

Total release size: 235.2 kB

Release files / anonix_gateway-0.1.0.tar.gz

Download URL anonix_gateway-0.1.0.tar.gz
Size 133.4 kB
Tags Source
SHA-256 checksum
How to use checksums
b26153485eba82ba7aea2a3d7a1e6f661be985444882ddc05b4d23d93c0f94b2
BLAKE2b-256 checksum
How to use checksums
73d46f381283b8aec176d88e317c08807cdcc483e581ebc0bc1a1c1c409ab629
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.9

Release files / anonix_gateway-0.1.0-py3-none-any.whl

Download URL anonix_gateway-0.1.0-py3-none-any.whl
Size 101.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
54c0579b2dcc7b07dde2abb3d2c984ddc023814bf560dac8bd8f9962bb948e5f
BLAKE2b-256 checksum
How to use checksums
1c1f832bbfef62e81e796227764a19c36319f9914db992fe8928b809a8104be5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.9

Security for anonix-gateway 0.1.0

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.

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