Private, Air-Gapped and Sovereign Deployment
Each step toward isolation buys control and removes conveniences you may not have noticed you depended on.
Deployment ranges from shared cloud service to air-gapped. Decide which requirement you are meeting: residency (where data is), sovereignty (whose law and control apply) or isolation (what can connect). Then design the full path, including updates, models, logs, support and exit, and secure the inside as carefully as the edge.
What you will learn: deployment options, residency and sovereignty, hybrid design, what stops working offline, how to bring software and models across a boundary, how to secure self-hosted components and how to plan exit.
Prerequisites: Network, Tenant and Multi-Agent Isolation and Open-Source Stack and Local LLM Agents.
The example runs in November 2026 with Python 3.13 and only the standard library. Files, hosts and licenses are invented. Legal points are general information, not legal advice; obligations depend on your organization, sector and countries.
The deployment spectrum
| Option | Description | You gain | You take on |
|---|---|---|---|
| Shared service | Provider API or product | Speed and features | Vendor and data terms |
| Regional controls | Provider processing limited to areas | Residency with little operations | Feature and model limits |
| Private cloud | Your accounts and private networking | Control of access and data paths | Platform operations |
| Sovereign offering | Cloud with local operation or legal separation | Stronger jurisdiction controls | Cost and narrower choice |
| On premises | Your hardware and facilities | Physical control | Capacity, hardware and staff |
| Air-gapped | No connection to outside networks | Strong isolation | Every update by controlled transfer |
Residency and sovereignty
Data residency concerns where data is stored and processed. Sovereignty is broader: which legal systems can compel access, who operates the service, who holds keys and whether you can continue if a supplier is unable or unwilling to serve you. Data can sit in your country while a provider headquartered elsewhere remains subject to its home law; the United States CLOUD Act is the example most often discussed. Whether that matters is a legal assessment, not an engineering one.
| Ask about | Examples of what to trace |
|---|---|
| Storage | Prompts, files, memory, indexes, backups |
| Processing | Model inference, hosted tools, cross-region routing |
| Telemetry | Logs, traces, crash reports, usage statistics |
| People | Support and operations staff with access |
| Keys | Who creates, holds and can revoke them |
| Supply | Updates, licenses and models needed to keep running |
Switching and exit rules
In the European Union, the Data Act includes rules on switching between data processing services, which have applied since September 2025. A 2026 legal summary notes that from January 12, 2027 providers may not impose switching charges, and that the European Commission treats data transfer-out charges connected with switching as included. Scope and exceptions matter, so have lawyers read your contracts. A legal right to move does not move anything by itself; you still need exports that work.
Hybrid patterns
| Pattern | Idea | Watch for |
|---|---|---|
| Local data, hosted model | Send only minimized, permitted text | Retrieved passages may still be sensitive |
| Local model for restricted work | Route by classification | Mixed conversations carrying restricted history |
| Hosted control, local execution | Provider orchestrates; tools run inside | Tool results flow back to the provider |
| Fully local runtime | All components inside | Quality, capacity and upkeep |
Classification should come from the source system's labels and the user's context. When in doubt or when the restricted path is down, fail closed.
What stops working offline
- Model, package and container downloads.
- Online license checks and activation.
- Hosted search, tools, evaluation and safety services.
- Automatic security updates and vulnerability feeds.
- Remote support and usage reporting.
- External time sources and certificate status checks.
Software often fails in odd ways when it expects the internet: long start-up delays, silent feature loss or errors that name something unrelated. Test the whole system with the network truly disconnected, not merely with a firewall rule believed to block everything.
Bringing things across the boundary
- Collect artifacts on a controlled connected system from approved sources.
- Scan them and review licenses.
- Create a manifest with digests, versions and origins, and sign it.
- Transfer by the approved method.
- Inside, verify the signature and every digest; reject anything unlisted.
- Load into internal registries and mirrors.
- Test in staging, then promote, keeping the previous bundle.
Checking a bundle and its configuration
The program compares delivered files with a manifest, checks licenses and looks for configuration that points outside the network.
"""Gate a software and model bundle before it enters an isolated network."""
import hashlib
from urllib.parse import urlparse
def digest(data):
return hashlib.sha256(data).hexdigest()
FILES = {"model.safetensors": b"weights v7",
"server.whl": b"serving package",
"policy.json": b'{"tools": ["search_docs"]}',
"helper.pkl": b"unexpected pickle"}
# Built on the connected side and delivered separately from the files.
MANIFEST = {
"model.safetensors": (digest(b"weights v7"), "apache-2.0"),
"server.whl": (digest(b"serving package v2"), "apache-2.0"),
"policy.json": (digest(b'{"tools": ["search_docs"]}'), "internal"),
"tokenizer.json": (digest(b"tokenizer"), "apache-2.0"),
}
LICENSES = {"apache-2.0", "mit", "internal"}
CONFIG = {"model_endpoint": "https://models.corp.internal/v1",
"trace_endpoint": "https://traces.corp.internal/otlp",
"usage_report_url": "https://telemetry.vendor.example/report",
"package_index": "http://mirror.corp.internal/simple"}
INTERNAL = ".corp.internal"
problems = []
for name, data in FILES.items():
if name not in MANIFEST:
problems.append(f"{name}: not in manifest")
continue
expected, license_id = MANIFEST[name]
if digest(data) != expected:
problems.append(f"{name}: digest mismatch")
if license_id not in LICENSES:
problems.append(f"{name}: license {license_id} not approved")
problems += [f"{n}: listed but missing" for n in MANIFEST if n not in FILES]
for key, url in CONFIG.items():
parts = urlparse(url)
if not (parts.hostname or "").endswith(INTERNAL):
problems.append(f"{key}: points outside the network ({parts.hostname})")
elif parts.scheme != "https":
problems.append(f"{key}: not encrypted ({parts.scheme})")
for line in problems:
print("BLOCK", line)
print("\nResult:", "reject the bundle" if problems else "accept the bundle",
f"({len(problems)} problems)")
Output:
BLOCK server.whl: digest mismatch
BLOCK helper.pkl: not in manifest
BLOCK tokenizer.json: listed but missing
BLOCK usage_report_url: points outside the network (telemetry.vendor.example)
BLOCK package_index: not encrypted (http)
Result: reject the bundle (5 problems)
One file differs from the manifest, one was never listed and one is missing. The unlisted pickle file matters because loading that format can run code. The configuration findings are as useful: a vendor usage report address would fail silently in a disconnected network and leak data in a connected one, and an unencrypted package mirror invites tampering inside. A digest only proves that a file matches the list. The program does not verify who wrote the list, so a real process must check a signature with a key that arrived by a separate, trusted route.
A private agent platform
Provide a small catalog of approved models and tools, with evaluation results and limits. A narrow, well-run service beats a wide one that nobody can patch. Some vendors package parts of this: IBM, for example, markets sovereign deployment software, and cloud providers offer disconnected or locally operated variants. Verify which features, models and update paths each one includes.
Securing self-hosted models and tool runtimes
| Component | Controls |
|---|---|
| Inference endpoint | Authentication, per-client quotas, network segmentation, no public admin routes |
| Model files | Safe formats, signed manifests, read-only mounts |
| Tool runtime | Sandbox per task, no ambient credentials, egress deny by default |
| MCP servers | Approved registry, pinned versions, authorization on each call |
| Gateway | Hold provider keys, restrict who can change routing, patch quickly |
| Logs and traces | Access control, masking, retention, tamper evidence |
| Build pipeline | Pinned actions and dependencies, least-privilege tokens |
Components that concentrate keys deserve special care. On March 24, 2026, two versions of the LiteLLM Python package, 1.82.7 and 1.82.8, were published to PyPI with malicious code that harvested credentials, as recorded in the vulnerability database. The lesson applies to any dependency: pin versions with hashes, delay and review upgrades, and limit what the installing system can reach. An isolated network reduces some exposure but does not stop a poisoned file carried in by hand.
Do not trust the inside
Isolation protects against outside connections. It does not protect against mistaken users, excessive permissions or instructions planted in internal documents. Apply user-level authorization to retrieval and tools, approvals to consequential actions and separation of duties for platform changes, as in Agent Identity, Authorization and Secrets and Prompt Injection Attacks and Defenses.
Operating a disconnected system
- Set an update cadence, with an urgent path for serious vulnerabilities.
- Track how old each component and model is.
- Keep spare hardware or a tested degraded mode.
- Hold documentation and diagnostic tools inside.
- Agree how support receives information without exposing data.
- Back up configuration, models, indexes and keys, and rehearse restore.
- Run evaluations inside, with cases that can live there.
Models age as the world changes. Retrieval over current internal documents helps with facts, but plan model refreshes and say what the system cannot know.
Prove the boundary
Claims about residency and isolation need evidence. Keep a data flow map, monitor egress and alert on any attempt, test from inside that forbidden destinations are unreachable and review supplier access records. Repeat after each change, since a new plugin or feature can add an outbound call. Regulatory duties for AI systems apply wherever they run; see EU AI Act and US AI Policy.
Capacity without elastic supply
In a shared cloud, a busy afternoon is handled by asking for more. Inside a private or isolated estate, the hardware you have is the hardware you get, sometimes for many months. Plan for that from the start.
| Pressure | Response to agree in advance |
|---|---|
| Peak demand | Queue lower priority work and show users the wait |
| Long agent runs | Limit steps, context and concurrency per team |
| Hardware failure | Spare capacity, or a smaller model that fits what remains |
| New model needs more memory | Test sizing before approving the upgrade |
| One team consumes everything | Quotas with visible usage and an owner who can change them |
Decide which workloads matter most before the day capacity runs short. A smaller model for routine summarizing can free the larger one for the tasks that need it, provided you have evaluated both for those tasks. Record procurement lead times, since they often set the pace of the whole program more than the software does. NVIDIA, vLLM and GPU Sizing shows how to estimate memory.
Who owns what inside the boundary
A managed provider quietly performs many jobs. When you bring a system inside, each job needs a name beside it. Typical roles include a platform owner who decides what is offered, operators who patch and respond to alerts, a model owner who runs evaluations and approves changes, data owners who grant access, a security team that reviews bundles and egress, and a business sponsor who accepts the residual risk. One person may hold several roles in a small organization. Avoid the same person both preparing a transfer bundle and approving it. Write down who can stop the service and how to reach them outside working hours.
Move in stages
- Classify the data and tasks, and find which truly require isolation.
- Pilot one restricted task with a small model and real access rules.
- Disconnect a test environment fully and list everything that breaks.
- Automate bundle building, verification and rollback.
- Operate for several update cycles before adding more workloads.
It is common to find that only part of the work needs the strictest environment. Keeping that part small lowers cost and lets other teams use services that improve faster.
Keep a requirements-to-evidence map
Reviewers will ask how each requirement is met. A short table maintained with the design answers faster than a folder of diagrams, and it shows where a claim rests on a contract rather than a technical control.
| Requirement example | Control | Evidence |
|---|---|---|
| Records stay in the country | Region restrictions on every service used | Configuration export and flow map |
| No outside operator access | Own operations or approved personnel terms | Contract and access logs |
| Organization holds keys | Customer-managed or on-premises key storage | Key inventory and revocation test |
| No outbound connections | Physical separation or deny-by-default egress | Test results and monitoring |
| Service survives supplier loss | Local artifacts and licenses | Rebuild rehearsal |
Give every row an owner and a review date. When a control is only partial, say so and record who accepted the gap. Requirements change as laws, contracts and architectures do, so revisit the map whenever a component is added.
Tell users what is different
People who also use public assistants will expect the same abilities inside. Say which model and tools are available, how current its knowledge is, which data it can reach, what is recorded and where to report problems. If web search or a popular feature is absent by design, explain why. Unexplained gaps push people toward unapproved services, which defeats the purpose of the boundary. Offer a route to request new tools or data, with a visible decision and reason, and review those requests alongside usage figures.
Common mistakes
| Mistake | Consequence | Instead |
|---|---|---|
| Treating region choice as sovereignty | Unmet legal or control requirement | State requirements and assess each |
| Forgetting telemetry and support paths | Data crosses the boundary | Map every outbound flow |
| No update process when air-gapped | Old vulnerabilities and models | Scheduled, verified bundles |
| Trusting digests without signatures | A forged manifest passes | Verify the signer |
| Open internal endpoints | Any compromised host uses the models | Authenticate inside too |
| Untested exit | Stuck with a supplier | Export and rebuild a sample |
Checklist
- Residency, sovereignty and isolation requirements are written separately.
- All data flows, including telemetry and support, are mapped.
- Restricted paths fail closed.
- Bundles are signed, verified and reversible.
- Internal services authenticate users and workloads.
- Dependencies are pinned and reviewed.
- Updates, backups and recovery are rehearsed offline.
- Contracts and exports support an exit.
Frequently asked questions
Is on premises always more secure?
It gives more control and more duties. A poorly patched internal system can be weaker than a well-run service.
Can an air-gapped system use current models?
Yes, if licensing allows and you have a transfer and evaluation process. It will lag, so plan the refresh interval.
Does encryption solve sovereignty?
It helps when you control keys, but data is typically decrypted for processing, so operators and legal reach still need assessment.
When is regional processing enough?
When your requirement concerns location and your assessment accepts the provider's terms and legal position. Record that decision and its owner.
References
- DLA Piper: cloud exit under the EU Data Act
- LiteLLM: security update, March 2026
- OSV: PYSEC-2026-2
- Safetensors documentation
Where to go next
Managed vs Custom Platforms and Total Cost
Weigh the cost of control.
Secure Agent Reference Architecture
Combine the security controls.
High Availability and Disaster Recovery
Keep the platform recoverable.