Vibe Engines is free, interactive AI engineering & system design — runs in your browser. Pick a learning path →
Ship it where they
can actually run it.
The single question that reshapes an FDE architecture more than any other isn’t about the model or the UI — it’s “where can this run?”. The answer, on a spectrum from your SaaS to a fully air-gapped datacenter, decides your data flow, your updates, your model hosting, and even your own ability to touch the thing you built.
The question that reshapes everything
Most engineers design a system and then think about where to host it. FDEs invert that, because the hosting environment isn’t a detail you bolt on — it’s the constraint that determines the design. A solution that assumes a hosted model API, a managed database, and your own observability dashboards is elegant and fast to build. It also becomes impossible the moment the customer says “our data can’t leave our network.”
So the highest-value question in discovery is deceptively simple: “Where can this run, and who approves that?” The answer lands on a spectrum, and every step along it tightens what you’re allowed to do — while the customer’s security posture, not your preference, decides where you land.
The four targets
From the place you control completely to the place you barely control at all.
| Target | Who hosts | Best when | The cost |
|---|---|---|---|
| Your SaaS | You, multi-tenant | Data may leave; speed matters most | Blocked outright when data can’t leave their network |
| Customer cloud / VPC | You deploy into their account | Data stays in their cloud; they’ll grant a scoped role | Their IAM, their network rules, their approval |
| On-prem | Their datacenter / servers | Regulatory or policy reasons keep everything in-house | You manage installs + updates; no managed services |
| Air-gapped | Their isolated network, no internet | Defense, finance, healthcare; maximum control | Everything ships in by hand; hardest to build + update |
Think of it as a dial from convenience to control. Your SaaS is maximum convenience for you and minimum control for them; air-gapped is the reverse. Most enterprise AI deployments land in the middle two — the customer’s cloud/VPC or on-prem — where you get some tooling but live inside their rules. The deployment-targets cheatsheet is the quick decision aid.
What changes as you move right
Each step toward air-gapped changes the same set of concerns. Internalize this table and you can predict what a given target will demand before you start.
| Concern | SaaS / VPC | On-prem / air-gapped |
|---|---|---|
| Data egress | Data can leave (SaaS) or stays in their cloud (VPC) | Nothing leaves the network — ever |
| Updates | You push anytime | Scheduled, manual, versioned bundles brought in deliberately |
| Model hosting | Hosted LLM API is fine | Self-host an open model (vLLM etc.) — the model runs where the data lives |
| Secrets | Your vault / their KMS | Their vault, their rotation policy — not your .env |
| Observability | Your dashboards | Ship logs/metrics to their stack, or run a local one |
| Your access | Full | Maybe a screen-share and someone else’s hands on the keyboard |
Losing your own access. On a locked-down deployment you may never touch the running system — you debug through a customer engineer on a call. That makes logging, health checks, and a good runbook not niceties but survival tools.
Package portably
The defense against target uncertainty is portability. If discovery hasn’t nailed down the target yet — or if it might change — build so that moving right is a repackaging job, not a rewrite. In practice that means a small set of habits.
Do
- Containerize everything (Docker) so it runs the same anywhere.
- Depend on open, self-hostable components where the target might be on-prem.
- Externalize config — one image, per-environment settings.
- Have a plan for self-hosting the model from day one, even if you use an API now.
Avoid
- Cloud-only managed services with no on-prem equivalent (if on-prem is possible).
- Hardcoding endpoints, regions, or a single cloud’s identity model.
- Assuming internet access at runtime.
- Baking secrets or per-customer values into the image.
Portability isn’t free — it can cost you some of the convenience of a cloud’s managed magic. But paid up front, it turns “we need this on-prem now” from a project-threatening surprise into an afternoon of repackaging.
Secrets, identity, least privilege
In the customer’s environment, security stops being your convention and becomes their policy. Secrets live in their vault or KMS with their rotation rules; identity flows through their SSO; and every credential you hold should be scoped to the absolute minimum the job needs. This isn’t bureaucracy for its own sake — it’s exactly what gets a security team to approve you, and approval is often the critical path of the whole deployment.
A small, well-scoped access request gets a fast yes; a broad one triggers a long review. Asking for exactly what you need — and no more — is how you deploy this quarter instead of next. Security and compliance are deep enough to warrant their own quick-reference.
The update path
The question new FDEs forget until it bites them: how do you ship v2? On your SaaS it’s a deploy. On-prem it’s a coordinated release. Air-gapped, it might mean handing someone a signed, versioned bundle they carry in on approved media and install during a maintenance window. Decide this before v1, because an architecture that can’t be updated is a liability disguised as a delivery.
Pair the update path with real observability in their world. You may not be able to watch your own dashboards, so wire structured logs, a genuine health check, and alerts into the stack the customer actually uses — and into a channel their team monitors. On a locked-down deployment, knowing the system broke before the customer tells you is often the difference between a quick fix and a lost account. Once it’s deployed and observable, the work turns to hardening and handoff — making the thing durable and then making it theirs.
Prove the network before you build on it
Most deployment failures in a customer environment are not deployment failures. They are network assumptions that fail at runtime, one at a time, over three weeks.
The single question that determines your architecture is: can a machine in this environment reach a public IP address, and if so, through what? Ask it in week one, of an operator rather than an architect. The answer moves you along a spectrum, and each step removes a convenience you have never had to think about before.
Private VPC
No public ingress, egress usually allowed. Bastion access, endpoints, a VPN conversation. Normal work.
No-egress VPC
Nothing reaches the internet — including your package installs and your model API. A real re-architecture, not a config change.
Disconnected
Updates arrive through an approved transfer. Your iteration speed is now their change window, and it is fortnightly.
In a no-egress environment the failures do not appear at provisioning time, which is what makes them expensive. Terraform applies cleanly; the pod schedules; then the image pull times out, the certificate check hangs, and the clock drifts until token validation starts failing in a way that looks like an auth bug. The defence is half an hour of work on day one:
# prints a pass/fail table you can hand to their network team
for target in \
s3.$REGION.amazonaws.com # gateway endpoint?
api.ecr.$REGION.amazonaws.com # image pulls
sts.$REGION.amazonaws.com # miss this and IRSA fails cryptically
secretsmanager.$REGION.amazonaws.com \
$MODEL_ENDPOINT $INTERNAL_NTP $OCSP_RESPONDER ; do
timeout 5 nc -z "$target" 443 \
&& echo "PASS $target" || echo "FAIL $target"
done
# keep it in the repo. re-run it after every environment change —
# it is the cheapest diagnostic you will ever write.
Two items on that list are the ones people miss. STS, because workload identity fails with an error message that names none of this. And NTP, because clock drift produces token-validation failures that look exactly like an authentication bug and will cost you a day the first time.
Before any transfer into a disconnected environment, install your package on a machine with networking disabled. It takes an afternoon and catches nearly everything: the base layer pulled at run time, the dependency that compiles from source, the runtime that phones home for a licence check. The alternative is discovering it inside a facility where you cannot download anything and cannot try again until the next window. The full treatment is in air-gapped & regulated deployment.
Worked example: shipping v2 into a disconnected site
Say a team ships a RAG assistant into a disconnected environment: an 8B open-weight model, a 300M-parameter embedding model, and three container images totalling 2.5 GB (the API image is 1.2 GB of that). Updates go in through the page’s fortnightly change window. Walk through the first release, then a fix.
| Step | Question | Arithmetic | Answer |
|---|---|---|---|
| 1 | LLM weights in bf16 | 8×10⁹ params × 2 bytes | 16 GB |
| 2 | Embedding model | 0.3×10⁹ × 2 bytes | 0.6 GB |
| 3 | Full v2 bundle | 16 + 0.6 + 2.5 GB, plus a checksum manifest and signature | 19.1 GB |
| 4 | Before transfer | install on a machine with networking off; run netcheck | catches runtime downloads now, not on site |
| 5 | v2.1 fixes one bug in the API | ship only the changed image; weights unchanged | 1.2 GB, 6.3% of the full bundle |
| 6 | Fix needs 3 test-and-adjust rounds, SaaS | 3 × half a day | 1.5 days |
| 7 | Same 3 rounds, fortnightly window | 3 × 14 days, worst case | 42 days: 28× longer |
Step 5 only works if you planned for it in v1. Weights, images and config ship as separate, versioned artifacts, so a code fix does not drag 16 GB of unchanged weights back through approval. Step 7 is the page’s “estimates should be built on their deploy cadence” in numbers. The way to shrink it is to need fewer rounds: put several candidate fixes behind config flags in one bundle, and ship the diagnostics (structured logs, a health check that reports versions) with every release, so one window answers more than one question.
Cost and trade-offs: how a release gets in
The page’s targets say where it runs; these are the delivery mechanisms that decide how a change reaches it. Time is how fast a change lands, Space is what you carry or keep.
| Case | Time | Space | Why |
|---|---|---|---|
| You push from your pipeline into their account | Minutes to hours | A standing, scoped role in their cloud | Fastest, but that role stays under their security review for as long as it exists. |
| They pull a versioned release from your registry | Their schedule | Release notes, a version contract, an upgrade path | Their change process, their timing. You need clean, documented versions. |
| Signed bundle on approved media | The next change window | Every image, weight and dependency, plus checksums | Nothing can be fetched later, so anything missing waits another window. |
| Hosted model API | No model work | Data leaves the network on every call | Ruled out by the first “data can’t leave”. |
| Self-hosted open model | Days to stand up serving | GPUs, weights, a serving stack, upgrades | Data stays put; capacity planning and model updates become yours. |
| You operate it vs they operate it | Your on-call vs their ticket queue | Runbooks, alerts in their stack | Whoever holds the pager needs the access. Decide it before go-live. |
The trade is always the same: every step toward the customer’s control moves the cost of a change from your keyboard to their calendar. Design for the slowest path you might end up on.
Common mistakes
- Floating tags in a bundle
A bundle that says
api:latestorvllm:0.xcannot prove it holds what you tested. Pin every image by digest, record the digests in the manifest, and check them on site before install. - Model loaders that download on first start
Many model libraries fetch tokenizers, configs or weights from a hub the first time they run. Offline, that is a hang or a crash at start-up. Pre-load everything into the bundle and force offline mode, for example
HF_HUB_OFFLINE=1for Hugging Face libraries. - Ignoring TLS inspection
Many corporate networks re-sign outbound TLS with their own root certificate. Your container’s CA bundle does not trust it, so every HTTPS call fails with a certificate error. Mount their CA into the trust store; never switch verification off to get past it.
- No plan for version skew
Site A runs v1.3, site B is still on v1.1, and either may jump straight to v1.5. Report the running version from the health check, and write database migrations that are safe to apply in sequence from any older version.
- An untested rollback
In a maintenance window, a failed upgrade has to be undone before the window closes. Keep the previous bundle on site, make migrations backward-compatible for one version, and rehearse the rollback as seriously as the install.
Where this shows up in production and interviews
- Regulated buyers
Defense, finance and healthcare are the page’s examples of where air-gapped and on-prem demands come from. There the security review is part of the delivery plan, and the approval timeline often sets the project timeline.
- Bring-your-own-cloud products
A common pattern splits the system: the data plane runs in the customer’s account, the vendor’s control plane manages it from outside. It is the customer-VPC target turned into a product, and the scoped role from the first trade-offs row becomes a long-lived design decision.
- Self-hosted LLM rollouts
When data cannot leave, the model moves in: an open-weight model behind a serving stack such as vLLM on the customer’s GPUs. Weight size (16 GB for 8B parameters in bf16) then drives the bundle, the transfer and the GPU memory sizing.
- The interview version
A common FDE prompt: “the customer just said data can’t leave their network; what changes?” Walk the page’s concerns table row by row (egress, updates, model, secrets, observability, access), then say how you would ship v2 and how you would debug without access.
Check yourself
The customer allows a hosted model, but only one running inside their own cloud account, and grants you a scoped role there. Which of the page’s four targets is this, and what changes for you?
Customer cloud / VPC. You deploy into their account under their IAM and network rules, call a model endpoint that sits inside their account (or self-host one), and send logs to their stack. Your SaaS conveniences, including your dashboards and your vault, are out.
netcheck prints PASS for every target except sts. What will break, and what will the error look like?
Workload identity (IRSA on AWS) gets its credentials from STS, so every AWS call from the pod fails. As the page warns, the error looks like an authentication or permissions problem and does not mention STS. Ask for an STS endpoint before chasing IAM policies.
Your v1 bundle was one 19 GB tarball. v1.1 changes a single Python file. How should v2 releases be structured so the fix travels light?
Ship weights, images and config as separate versioned artifacts with their own checksums. The fix then carries one rebuilt image (1.2 GB in the worked example) while the 16 GB of weights stays on site untouched, which is also less for the security team to re-review.
A bug needs about three rounds of test-and-adjust, and the site takes changes fortnightly. How do you plan it?
Worst case is 3 × 14 = 42 days, so cut the rounds, not the days. Reproduce it on a networking-off replica first, ship several candidate fixes behind config flags in one bundle, and include the diagnostics you will need, so one window does the work of three.
Quick answers
What are the deployment options for delivering software to a customer?
Four main targets on a spectrum. Your own SaaS (multi-tenant, you host everything). The customer’s cloud account or VPC (you deploy into their environment). On-prem (their own datacenter or servers). And air-gapped (no internet connection at all). They move from fastest-to-ship-and-update on the left to most-locked-down on the right, and the customer’s security and data-residency rules usually dictate which one you get.
What is an air-gapped deployment?
A deployment in an environment with no connection to the public internet — common in defense, finance, and healthcare. Everything the software needs (container images, dependencies, model weights) has to be brought in deliberately, updates are scheduled and manual, and you often can’t reach the system to debug it directly. It’s the hardest target and reshapes almost every architectural decision toward self-containment.
How do you host an LLM when data can’t leave the customer’s network?
You can’t call a hosted API, so you self-host an open-weight model (e.g. with a serving stack like vLLM) inside the customer’s environment. That trades the convenience of a cloud API for full data control — the model runs where the data lives, and nothing leaves. It adds infrastructure work (GPUs, serving, updates) that a SaaS deployment avoids, so it’s worth confirming the constraint is real before taking it on.
Why does the deployment target affect the whole architecture?
Because everything downstream depends on it: whether data can leave, how you ship updates, where the model runs, how secrets are managed, where logs go, and whether you can even access the running system. A design that assumes a cloud API and your own dashboards falls apart on-prem. That’s why FDEs ask “where can this run?” in discovery — the answer, not the feature list, is the biggest architectural fork.
Explore the topic
See this alongside everything else on the same subject — handbooks, system designs, challenges and tools, in one place.
More Handbooks
- The Agent Evaluations HandbookA self-contained handbook on evaluating AI agents — theory, interactive widgets, and practical guidance. Trajectory evals, tool-use scoring, LLM-as-judge, observability, and reliability for PMs, engineers, and founders.Read →
- The Agent Patterns HandbookThe design patterns behind every LLM agent — the ReAct Thought–Action–Observation loop, tool/function calling, plan-and-execute, reflection, memory, multi-agent orchestration, and the failure modes (loops, hallucinated tools, recovery, human-in-the-loop) that break agents in production.Read →
- The Kubernetes HandbookThe one idea under all the YAML — declare desired state, and a control loop makes reality match. Covers the orchestration problem, pods, deployments and replicasets, services and networking, the reconciliation loop and self-healing, the scheduler, config/secrets and health probes, autoscaling, and when you actually need Kubernetes.Read →
- The Observability HandbookSeeing inside production — monitoring vs observability, the three pillars (metrics, logs, traces) and what each answers, structured logging, metric types and the cardinality trap, distributed tracing, the golden signals and SLIs/SLOs/error budgets, alerting on symptoms not causes, and correlating all three during an incident.Read →
- The AI Security HandbookYour app now reads the internet and believes it. Why prompt injection is a design problem filters cannot solve, the lethal trifecta (private data + untrusted content + exfiltration), defense in depth from least privilege to output validation, where PII actually leaks (logs, embeddings, weights), MCP/model supply-chain trust, and the red-team eval suite that gates CI.Read →
- The Docker HandbookA container is a lie told by the kernel — namespaces (what a process sees) plus cgroups (what it uses), not a VM. Image layers and the cache-ordering rule that halves build times, multi-stage Dockerfiles that ship small, volumes vs bind mounts, name-based networking, Compose, and the handoff to Kubernetes.Read →