// SERVICE SPECIFICATION - SOVEREIGN & AIR-GAPPED AI
Local AI for Sensitive Data
Deploy zero-egress, on-premises, and air-gapped sovereign AI infrastructure for regulated workloads: high-throughput vLLM and Ollama clusters, automated PII/PHI redaction gates, local vector RAG, OIDC RBAC, and tamper-evident compliance logging.
Table of Contents
- Data Sovereignty & The Enterprise Egress Risk
- Hardware Sizing, Quantization & Local Inference Engines
- Air-Gapped RAG & Local Vector Storage
- Automated PII/PHI Redaction & Pre-Inference Guardrails
- Identity Federation, RBAC & Immutable Audit Logging
- Continuous Evaluation, Model Lifecycle & Disaster Recovery
- Tutorial 1: Python Air-Gapped Inference & PII Audit Logger
- Tutorial 2: Python Local Document Ingestion & Qdrant Sovereign RAG
- Tutorial 3: Sensitive Data Classification & Redaction Prompt
- Tutorial 4: Regulated Compliance & Audit-Ready Synthesis Prompt
- Tutorial 5: Step-by-Step Air-Gapped Cluster Deployment
- Tutorial 6: Step-by-Step Data Leakage Incident & Model Rollback Runbook
- Live References & Documentation
Data Sovereignty & The Enterprise Egress Risk
Every time an employee pastes a patient medical record, an unannounced merger term sheet, proprietary source code, or a defense procurement specification into a public SaaS AI interface, that payload crosses external network boundaries, traverses third-party load balancers, and lands in remote inference logs. Even when commercial API providers offer zero-data-retention agreements, strict regulatory regimes - including the HIPAA Security Rule, the GDPR official framework, ITAR, and sovereign banking mandates - often prohibit sensitive data from leaving controlled physical or VPC enclaves altogether.
Simultaneously, banning generative AI outright creates a worse security failure: Shadow AI. Engineers, analysts, and legal associates quietly route sensitive documents through personal accounts on unmanaged browsers, leaving the CISO with zero visibility and zero auditability. The only durable enterprise solution is to deploy an internal, sovereign AI platform inside your own air-gapped data center or isolated private VPC that matches the usability of commercial copilots while enforcing a mathematical guarantee of zero external byte egress.
Air-Gapped vs. Private VPC Sovereign Topologies
We design sovereign deployments across two primary isolation tiers. In a Private VPC Enclave, inference nodes run on dedicated bare-metal GPU instances inside an isolated cloud subnet with all public internet gateways removed and egress restricted solely to internal corporate DNS and identity endpoints. In a True Air-Gapped Facility, physical hardware racks operate with zero WAN connectivity; model weights, container images, and Python wheels are mirrored across an audited diode or cryptographic media transfer process after passing Hugging Face Safetensors integrity verification.
Eliminating Hidden Telemetry & Supply-Chain Phone-Home Vectors
Standard open-source AI packages frequently attempt silent outbound network calls at runtime: downloading tokenizers from Hugging Face Hub, fetching spaCy models, pinging telemetry endpoints, or checking for framework updates. In a sensitive-data enclave, any unexpected outbound DNS lookup or HTTP request triggers an immediate security incident. Our deployment hardening checklist strips all telemetry environment variables, sets offline mode flags across every runtime library, pre-populates local tokenizer caches, and validates zero outbound packets via continuous eBPF network monitoring.
Hardware Sizing, Quantization & Local Inference Engines
Running open-weight models locally at enterprise concurrency requires disciplined VRAM engineering, not guesswork. A model's memory footprint consists of two components: static model weights and dynamic KV cache memory allocated per concurrent sequence. Selecting the wrong quantization format or under-provisioning KV cache causes out-of-memory crashes under peak team load or forces aggressive context truncation that degrades reasoning quality.
For single-node developer workstations and departmental appliances, Ollama provides streamlined GGUF model packaging, hardware auto-detection, and an OpenAI-compatible local REST API. For multi-user enterprise clusters serving 20 to 500+ concurrent employees, we deploy vLLM with PagedAttention and continuous batching on top of the NVIDIA Container Toolkit. Using FP8 or AWQ 4-bit quantization with tensor parallelism across multi-GPU nodes, vLLM sustains high tokens-per-second throughput while preserving near-BF16 accuracy on reasoning benchmarks across Gemma, Qwen, DeepSeek, Llama, and Mistral model families.
VRAM Budgeting & Concurrency Planning
As an operational rule of thumb, reserve 20% to 30% of total GPU VRAM strictly for KV cache and CUDA graph overhead after loading quantized model weights. For example, a mid-sized open-weight model in 4-bit AWQ format consumes roughly 18 GB of VRAM for weights; deploying it on a 48 GB L40S or dual 24 GB GPUs leaves ample headroom for 32K-token RAG contexts across dozens of simultaneous user sessions without swapping to host RAM.
Model Routing: Small Task Models vs. Frontier Open-Weight Reasoners
Running a single massive model for every enterprise request wastes GPU capacity and inflates queue latency. We configure a two-tier local model router: lightweight 7B-to-14B parameter models handle high-volume classification, PII tagging, SQL formatting, and document summarization at over 120 tokens per second, while larger 70B+ or Mixture-of-Experts open-weight models are reserved for complex multi-document legal synthesis, architectural code review, and clinical reasoning. This tiered topology maximizes hardware utilization across existing on-premises GPU clusters.
Air-Gapped RAG & Local Vector Storage
A local LLM without access to internal documents cannot answer organization-specific questions. However, many teams accidentally break air-gapped sovereignty during RAG implementation by calling a cloud embedding API or shipping document chunks to a managed vector SaaS. Every single stage of our sovereign RAG stack - document parsing, OCR, chunking, dense embedding generation, hybrid vector storage, and cross-encoder reranking - executes 100% inside your private boundary.
We deploy Qdrant (or PostgreSQL with pgvector for teams standardized on relational infrastructure) alongside locally hosted open-weight embedding and reranking models cached in an internal artifact registry. Documents are parsed locally using deterministic PDF/DOCX extractors, tagged with department-level ACL metadata, and indexed with both dense vectors and sparse BM25 payloads. At query time, Qdrant enforces ACL filters inside the HNSW index scan before a single chunk is passed to the local inference engine.
Encryption at Rest, Memory Scrubbing & Document Lifecycle Sync
Sovereign vector databases store dense semantic representations of your most sensitive intellectual property. All Qdrant storage volumes are encrypted at rest using AES-256 keys managed by your on-premises Hardware Security Module (HSM) or HashiCorp Vault. When a legal hold expires, a patient exercises a GDPR right-to-erasure request, or a contract is purged from SharePoint, our incremental deletion worker removes the corresponding vector points by document ID immediately and triggers segment compaction so deleted records cannot persist in unreferenced disk blocks.
Automated PII/PHI Redaction & Pre-Inference Guardrails
Even inside a private local cluster, defense-in-depth requires minimizing sensitive entity exposure inside model context windows and prompt logs. If a support analyst queries a troubleshooting assistant with a raw customer export containing Social Security Numbers, credit card PANs, or patient medical record numbers, those identifiers should never be echoed into shared team logs or cached prompts.
We place a deterministic PII/PHI Sanitization Gate directly in front of the local inference gateway using Microsoft Presidio combined with domain-specific regex and named-entity recognition (NER) recognizers. Sensitive spans are replaced with reversible, session-scoped surrogate tokens (such as <PERSON_1> or <MRN_4>) before the prompt reaches the LLM, and optionally re-hydrated only for authorized principals in the final UI response. Combined with OWASP Top 10 for LLM Applications input/output filters, this prevents indirect prompt injection and cross-session data leakage.
Defending Against Indirect Prompt Injection in Internal Corpora
Sensitive internal repositories often ingest external attachments such as vendor invoices, inbound resumes, and partner emails. A malicious PDF can embed hidden white-text instructions attempting to hijack a local copilot into exfiltrating confidential context across tool calls. Our gateway isolates untrusted retrieved chunks inside XML delimiter tags, strips executable markdown/HTML payloads, and enforces strict allow-lists on any downstream MCP or API tool invocations so a local model can never be coerced into unauthorized actions.
Identity Federation, RBAC & Immutable Audit Logging
Regulated enterprises cannot deploy unauthenticated local AI endpoints where any employee on the corporate LAN can query any model or vector collection. Our sovereign gateway integrates directly with your existing OIDC or SAML identity provider (Okta, Microsoft Entra ID, Keycloak, or Ping Identity) via mutual TLS, enforcing per-group model access, token rate quotas, and document clearance levels.
To satisfy NIST SP 800-53 and NIST AI Risk Management Framework audit controls, every inference request emits a structured, tamper-evident JSONL audit event shipped via OpenTelemetry to your internal SIEM. Rather than logging raw sensitive payloads in plaintext, the audit record captures the authenticated user ID, clearance tier, SHA-256 hash of the sanitized prompt and response, retrieved document IDs, model digest, and latency metrics. Security teams gain complete forensic traceability without creating a secondary PII exposure risk in log storage.
Continuous Evaluation, Model Lifecycle & Disaster Recovery
Sovereign AI infrastructure must be operated with the same rigor as core banking or clinical systems. Every model weight artifact imported into an air-gapped registry is pinned by immutable cryptographic SHA-256 digest, scanned for unsafe pickle deserialization (enforcing Safetensors format exclusively), and benchmarked against an internal golden evaluation dataset before receiving production traffic.
For high-availability clusters, we configure active-passive or active-active GPU node pools behind an internal Envoy or NGINX ingress controller with automatic health probes, Qdrant snapshot replication to encrypted local object storage, and blue-green model swaps so teams can upgrade weights or LoRA adapters with zero downtime and instant rollback capability.
Domain LoRA Fine-Tuning Under Strict Data Governance
When base open-weight models require adaptation to proprietary medical coding, defense acronyms, or internal legacy languages, we run LoRA/QLoRA fine-tuning entirely inside the air-gapped GPU cluster. Training datasets are scrubbed of PII/PHI before tokenization, adapter weights are versioned alongside their exact dataset SHA-256 manifests, and every fine-tuned checkpoint must pass both accuracy uplift benchmarks and automated memorization-leakage probes before promotion to production serving.
Tutorial 1: Python Air-Gapped Inference & PII Audit Logger
This production Python gateway wraps a local Ollama or vLLM OpenAI-compatible endpoint, redacts sensitive PII patterns before inference, and writes a tamper-evident SHA-256 audit log without storing raw sensitive text.
Tutorial 2: Python Local Document Ingestion & Qdrant Sovereign RAG
This script builds an end-to-end air-gapped RAG pipeline using a locally cached embedding model, an on-premises Qdrant instance with department ACL filtering, and a local LLM synthesis call with zero external network dependencies.
Tutorial 3: Sensitive Data Classification & Redaction Prompt
Deploy this prompt on a fast, small local model to classify incoming documents into enterprise sensitivity tiers before indexing them into department-isolated vector collections.
Tutorial 4: Regulated Compliance & Audit-Ready Synthesis Prompt
Use this system prompt for legal, clinical, or financial analysts querying local RAG pipelines. It enforces strict evidence grounding, forbids extrapolation, and outputs structured audit citations.
Tutorial 5: Step-by-Step Air-Gapped Cluster Deployment
Follow this seven-step operational procedure to provision a zero-egress sovereign AI cluster inside an air-gapped or private VPC environment.
- Mirror Container Images & Python Wheels Offline: Pull verified vLLM, Ollama, Qdrant, and Presidio OCI images in a staging DMZ, scan for CVEs, and push them into your internal air-gapped Harbor registry.
- Verify Model Weights Cryptographically: Transfer open-weight Safetensors directories across your approved media diode and validate every file against its upstream SHA-256 manifest before mounting.
- Configure NVIDIA Container Toolkit & GPU Isolation: Install pinned NVIDIA drivers and the container runtime on bare-metal or private VPC GPU nodes, pinning MIG slices or tensor-parallel GPUs per workload.
- Enforce Default-Deny Egress Firewall Rules: Apply iptables or cloud security-group policies dropping all outbound TCP/UDP traffic from the GPU enclave except internal DNS, OIDC, and SIEM collector ports.
- Issue Internal PKI & mTLS Certificates: Terminate all internal API traffic over TLS 1.3 signed by your corporate Certificate Authority so no plaintext prompts traverse the LAN.
- Load & Index Local Knowledge Collections: Run offline ingestion workers with
local_files_only=Trueto populate Qdrant collections tagged with department ACLs. - Execute Egress & Red-Team Verification: Run packet-capture verification during load testing to prove 0 bytes of external egress and validate Presidio redaction on synthetic PHI/PII payloads.
Tutorial 6: Step-by-Step Data Leakage Incident & Model Rollback Runbook
If an audit alert flags an unexpected PII pattern, cross-department ACL bypass, or suspected prompt injection inside the sovereign cluster, execute this containment and recovery runbook immediately.
- Isolate the Gateway & Revoke Session Tokens: Switch the Envoy/NGINX ingress to maintenance mode for the affected department route and revoke active OIDC refresh tokens for impacted principals.
- Preserve Forensic Audit State: Snapshot the append-only
audit.jsonlSIEM stream and Qdrant query logs covering the incident window before rotating any containers. - Quarantine Compromised Vector Partitions: Disable the offending Qdrant collection or purge documents matching the injected payload hash while keeping verified collections online.
- Harden Redaction & Prompt Guardrails: Add the missed entity pattern to the Presidio recognizer registry and tighten input validation rules at the policy proxy.
- Roll Back to Golden Model Digest: If a newly promoted fine-tuned LoRA or model weight caused behavioral regression, repoint the blue-green ingress to the prior verified SHA-256 checkpoint.
- Validate & Resume Operations: Re-run the automated DLP and RBAC regression suite, confirm zero policy violations, and restore normal service with an updated compliance post-mortem.
Live References & Documentation
- Ollama Local Model Library & Documentation
- vLLM High-Throughput Local Inference Engine Documentation
- Qdrant Vector Database Official Documentation
- Microsoft Presidio PII Detection & Anonymization Framework
- Hugging Face Safetensors Secure Weight Format
- NVIDIA Container Toolkit Documentation
- NIST AI Risk Management Framework
- NIST SP 800-53 Security and Privacy Controls
- OWASP Top 10 for LLM Applications
- HHS HIPAA Security Rule Official Guidance
- General Data Protection Regulation (GDPR) Official Text
- OpenTelemetry Distributed Tracing & Audit Specification
Ready to Deploy Sovereign Local AI for Sensitive Data?
Build air-gapped vLLM and Ollama clusters, PII/PHI redaction gates, and compliant local RAG with full Apache 2.0 IP transfer.