Project · AI Governance

LynxGateway

A KVKK-native, multi-provider enterprise AI gateway for Turkish organizations; a closed-source compliance and governance layer on top of the open-source LiteLLM (MIT) core.

FastAPILiteLLMPostgreSQLPresidiospaCySAMLDocker

Overview

Problem It Solves

Lets organizations use external LLMs like OpenAI / Anthropic / Bedrock without personal data (PII) leaving the country in plaintext, in an auditable and KVKK/VERBİS-compliant way. Core principle: PII never reaches the provider as plaintext — it is masked at the Edge layer and unmasked as the response returns.

What Sets It Apart

A niche for the Turkish market with TCKN/IBAN checksums + Turkish NER + VERBİS PDF; residency-aware fallback and hash-chained audit written from scratch without any enterprise dependency.

Maturity

Phases 0–3 (technical hardening) complete, field pilot pending. 20/20 integration + 139 unit tests, OIDC SSO proven end-to-end, live self-host instance.

Highlights

🎭
Turkish PII Masking

TCKN (checksum), IBAN (mod-97), phone, email + Presidio/spaCy NER (name/address/organization); pseudonym + unmask; secure streaming (SSE) round-trip.

🔌
OpenAI-Compatible Proxy

/v1/chat/completions, with virtual lk_… keys.

🔑
Virtual Key Management

Hashed keys, RPM/TPM rate limits, monthly token budget, lifecycle/offboarding.

🌍
Data Residency

Data class (confidential/internal/public) + region; confidential data cannot leave the country; residency-safe provider fallback.

🗝️
Secret Isolation

Envelope encryption (KEK→DEK, AES-256-GCM); provider keys are never stored in plaintext.

📜
Immutable Audit

Hash-chained log + verification endpoint, filtered query + CSV export.

👤
Identity / Access

Admin RBAC (owner/admin/auditor/viewer); OIDC + SAML 2.0 SSO with in-house code.

Compliance & Detection

VERBİS PDF report (Turkish); Shadow AI (unauthorized access) detection and reporting.

🛡️
License Hygiene

Automated license_guard blocking enterprise leakage on every commit/CI + CycloneDX SBOM.

Tech Stack

Edge & ControlPython 3.11 + FastAPI
PanelNext.js 14
CoreLiteLLM (MIT core only)
DatabasePostgreSQL (isolated litellm DB) · Redis/Valkey
NLPPresidio + spaCy
Securitycryptography · python3-saml · ReportLab
InfrastructureFully Docker