Compatible gateway contract
POST /v1/chat/completions forwards admitted requests to an explicitly configured compatible provider. Request and trace identifiers connect decisions to persisted records. Streaming is unsupported.
Original project / Swayom Sharma
AI Security Gateway & Policy Enforcement
Inspect the request.
Enforce the boundary.
An OpenAI-compatible gateway that inspects input, applies deterministic policies, validates output, authorizes tool requests, and preserves sanitized audit evidence.
01 / Genuine project captures
Actual captures from the current local implementation. Select a view, then enlarge it to read the interface or response in full.
Persisted local policy blocks and incident counts from authored demonstration requests. These are historical sample records, not production traffic.
Use ← → to explore. Enlarge any capture for a closer look.
Recorded demonstration
A silent capture of the running project, with explanatory English captions. The recording preserves actual UI states and their stated limitations.
02 / Project overview
Model applications need an inspectable boundary between untrusted context, a configured provider, and downstream tools. GateShield places deterministic decision-making at that boundary and records the evidence used by the gateway.
Input inspection and versioned policies determine whether a request can proceed. Output checks apply redaction or withholding before the response returns. Tool authorization is a separate explicit decision; the integrating application remains responsible for execution.
The current authenticated operations console presents persisted request, security-event, policy, tool, approval and administrative records. The portfolio captures that real console without exposing its administration API.
03 / Capabilities & evidence
POST /v1/chat/completions forwards admitted requests to an explicitly configured compatible provider. Request and trace identifiers connect decisions to persisted records. Streaming is unsupported.
Exact-match rules use ENFORCE, MONITOR or OFF. Draft, active and retired versions support explicit activation and rollback, with role-protected authoring.
Deterministic injection and credential checks, output DLP, and bounded JSON object/schema validation feed policy decisions. Coverage is limited; pattern matching is not universal attack detection.
Application-scoped definitions, schema/argument checks and resource guards determine admission. High-risk requests use expiring, single-use, context-bound approval. Authorization does not execute the tool.
Console filters and inspectors read persisted decisions, security events and policy state. Sensitive snapshots are redacted before storage and console display.
Classification-aware model routes and an optional semantic classifier require explicit operator configuration. A classifier cannot independently grant an action.
04 / Technical architecture
Bounded JSON input, message roles, segment provenance and request correlation.
Input findings meet active policy versions. BLOCK and REQUIRE_APPROVAL prevent provider forwarding.
Only admitted traffic reaches the selected endpoint. Missing or failed upstream service remains an explicit failure.
DLP and structured-response checks precede sanitized return and SQLAlchemy persistence. The authenticated console reads those records.
Tool authorization and approvals form a separate admission path. The capture uses real denials and upstream failure; it does not demonstrate a successful external model integration.
05 / Verified technology
Typed request handling and an explicitly configured provider transport.
Validated policy definitions and bounded structured-response validation.
Local capture uses disposable SQLite; production settings require PostgreSQL.
Authenticated /console renders actual backend records; it is not a React application.
06 / Security & boundaries
Controls described here are implementation details, not a blanket security certification.
Active policies govern admission and response withholding. Detectors have bounded coverage and may produce false positives or miss attacks.
Console HTTP Basic authentication protects administrative views. Agent credentials cover registered agent calls; general caller authentication still belongs at trusted ingress.
Stored request/response copies and console output are sanitized. Redaction is not a guarantee that arbitrary content contains no sensitive information.
The console and gateway remain local. TLS, correct ingress body limits, tenant boundaries and secret lifecycle controls require deployment review.
07 / Development status
Repository roadmap material covers evaluation and operational hardening. This showcase does not claim those deployment-specific paths are certified.
Current local operations-console redesign includes uncommitted changes beyond the linked backend baseline.
Source baseline: d57844a ↗. Source inspection, local demonstration and production verification are different evidence levels.
08 / Source references
Continue exploring
Read the source, explore another project, or discuss the engineering.