Module 6 · Security, governance and the capstone · Chapter 22 · Free
Air-gapped and regulated deployments: offline models and updates
- An air-gapped deployment has no internet path. Nothing downloads, phones home or syncs on its own.
- Everything needed must already be inside: models, images, packages, licences and a trusted clock.
- Updates travel as signed, scanned bundles on a planned train, not as live pulls.
The picture: the enclave is an island. A ferry brings supplies in and reviewed notes out.
- What offline removes, item by item, and what breaks first.
- The mirror pattern: registry, artefact store and signed bundles.
- The update train, from staging to enclave.
- Capacity, observability and support when nothing can leave.
- A worked update plan and a lab where you plan one.
Copperline is a made up B2B SaaS company. One regulated customer runs its support copilot in an enclave with no internet route. Priya Nair, the staff platform engineer, shipped the first install and it looked healthy for a day.
- Then the licence check failed, the telemetry exporter retried forever, and a pod crash looped because its image was never mirrored. All figures here are illustrative.
- Tom, the SRE, had no remote access. Diagnosis meant a reviewed log export on the next approved window, an illustrative 2 days later.
- The model worked. The platform around it assumed the internet. That was the outage.
The fix was not a tunnel. It was an offline design.
- Why regulated customers demand no internet path.
- What offline removes, and what each removal breaks.
- The mirror: registry, artefact store and bundles.
- The update train, capacity and life inside.
- The picture, a worked plan, and your lab.
Next: why customers ask for an island.
Step 1: Why regulated customers require no internet path
Some Copperline customers handle data under strict rules: financial records, health data, legal files. Their auditors ask: where can this data go?
- No path, no leak: with no route out, prompts and documents cannot leave by accident or misconfiguration.
- Proof over promises: a firewall rule can be edited. A missing route is easier to audit.
- Controlled change: nothing changes unless someone carries it in, so every change has a person and a time.
This chapter stays at platform operations level: mirrors, bundles, capacity and support. The AI engineering course covers the wider framing in Restricted and air-gapped deployments.
Think of a clean room: materials are checked at the door. Where the picture breaks down:
- A clean room has people moving. Your enclave has scheduled transfers, not a steady flow.
- Checked at the door is not enough. Each bundle also needs a signature and hash check inside.
Next: what vanishes offline.
Step 2: What offline actually removes
Most stacks depend on the internet in unwritten ways. Offline removes all of them at once.
- Model downloads: no pulling weights from a public hub at startup. A missing model is a failed deploy.
- Container registries: every image, including sidecars and debug tools, must exist inside first.
- Package repos: no live installs during a build or hotfix. Dependencies are mirrored ahead of time.
- Telemetry phone home: exporters shipping to a vendor endpoint fail or retry forever. Point them inside, or turn them off.
- Licence checks: online validation needs an offline licence file or a local licence server instead.
- Time sync: no public time servers. Certificates, tokens and log order need an internal trusted clock.
Think of a house off the grid: each supply needs a local plan. Where the picture breaks down:
- A house can receive visitors. A strict enclave may allow no inbound connection at all.
- Running out of milk is annoying. An expired certificate is an outage.
Next: the mirror pattern.
Step 3: The internal mirror pattern
The pattern has two parts inside, fed on a schedule from outside.
- Internal registry: holds every image the cluster may run, pinned by digest, never by a floating tag alone.
- Internal artefact store: holds model weights, package mirrors, licence files and config, each versioned.
- Signed bundles in: artefacts arrive as bundles scanned and signed in staging. The enclave verifies the signature before import.
- One way, on a schedule: transfers happen in approved windows, by the customer's agreed method, such as a one way transfer device or reviewed media. Confirm the method per site.
Think of a library branch that lends only from its own shelves, restocked by a monthly crate. Where the picture breaks down:
- Books do not execute code. Images and models do, so scanning and signing matter more.
- A late crate inconveniences readers. A late security bundle can leave a known flaw unpatched.
Next: the update train.
Step 4: The update train
A new model version never jumps straight in. It rides a fixed sequence, each step leaving evidence.
- Build and test in staging: staging runs the new model, eval gates and a load check.
- Scan and sign: images and weights are scanned, then signed, with a hash for every artefact.
- Approve: per Chapter 23, Governance: model inventory, approvals and audit trails: who approved it, for which customer, on what evidence.
- Carry in: the bundle moves in the approved window. Nothing else rides along.
- Verify inside: signatures and hashes are checked before import. A mismatch stops the update.
- Deploy: the rollout follows Chapter 12, Model deploys and rollouts: canary, shadow and rollback, with the previous version kept for rollback.
Predict first:
The hash check is the point of the train. A mismatch means the artefact is not the one scanned, signed and approved. Importing it anyway breaks the audit story. The old version keeps serving, which is why rollback copies stay in the mirror.
Next: fixed capacity.
Step 5: Sizing and capacity with no elastic cloud
Inside, the hardware you have is the hardware you have. There is no burst pool.
- Size for the peak: use the earlier sizing math on the real peak, plus headroom for one node down in maintenance.
- Protect the queue: when demand exceeds capacity, requests queue or shed by priority. Agree that policy in advance, not during an incident.
- Plan spares: replacement hardware may take weeks to approve and install. A failed GPU is a capacity event.
- Watch the mirror: every kept version takes disk. Set retention rules, or the store fills the cluster it feeds.
Next: observability and support.
Step 6: Observability and support when nothing leaves
Chapter 17, Observability for AI services: traces, tokens and quality signals, still applies. The difference is where telemetry lives.
- Telemetry stays inside: metrics, traces and logs are stored in the enclave, on mirrored, offline capable tooling.
- Reviewed exports: a person reviews any export for prompts and personal data before it leaves.
- No remote access: support works through the customer's operators or sessions they host. You guide, they type.
- Debug by design: ship local dashboards and a one command log bundle. Your future self has no shell here.
Think of supporting a lighthouse keeper by letter: checklists out, readings back. Where the picture breaks down:
- Letters are complete. Log exports are often filtered, so ask for the right bundle first time.
- The keeper can improvise. Regulated operators follow approved steps, so runbooks must be exact.
Next: the picture.
Step 7: The picture, the update train crossing the boundary
Press Next to follow one update into the enclave.
- The new model runs evals and load checks in staging, where mistakes are cheap.
- Images and weights are scanned, then signed, with a hash list for every artefact.
- Governance approves the exact bundle for the exact customer, per Chapter 23.
- The bundle crosses in an approved window, by the agreed method. Nothing else crosses.
- Signatures and hashes are checked first. Only then does the Chapter 12 rollout begin.
- This version and the one before it stay in the mirror, so rollback needs no fetch.
Next: the worked plan.
Step 8: Worked example, one offline model update
Priya plans a copilot update. Every timing is illustrative. The bundle holds 1 model, 3 images and 1 licence file.
1. Stage and evaluate. Illustrative timings: build and eval gates 3 hours, load check 1 hour. Subtotal: 4 hours, outside the enclave.
2. Scan, sign and approve. Scan 1 hour, signing 30 minutes, governance approval 1 working day. Subtotal: 1 day plus 1.5 hours.
3. Wait for the window. Transfers run twice a week. The bundle misses Tuesday and waits for Friday: an illustrative 3 days. Normal offline.
4. Carry in and verify. Transfer 2 hours for the illustrative 40 GB bundle, checks 30 minutes. Subtotal: 2.5 hours.
5. Deploy and watch. Canary per Chapter 12: 2 hours, plus 1 hour of local checks. Subtotal: 3 hours.
6. The total. Hands on work: 4 + 1.5 + 2.5 + 3 = 11 hours. Elapsed: about 5 working days, because approval and the window set the pace. Set expectations on the 5 days.
Next: your lab.
Step 9: Hands-on lab, plan one offline model update
Why this exercise: offline updates fail on missing steps. A complete plan, in order, is the skill.
Lab: Plan the update from the chapter's lab brief: a new version of the document extraction model for the regulated customer's enclave, where transfers run in one window per week and the customer platform lead approves per Chapter 23. This lab runs in your browser and needs JavaScript enabled.
Next: the field note and mix-ups.
In production practice, offline estates tend to fail on unglamorous dependencies: an expired certificate, a licence, a drifted clock. Teams that run them well inventory every outbound call, and test with no route out first. Confirm transfer and export rules in writing.
Mix-ups to avoid
- "Air-gapped means never updated." Updates are batched, signed and scheduled. The train is the path.
- "A VPN is close enough." A remote path is a path. A tunnel breaks the no route rule and the audit.
- "Pull just this one small image." One exception becomes the design. Mirror it, or change the design openly.
- "Telemetry can keep pointing at the vendor." It will fail, retry and fill disks. Point it inside or turn it off.
- "Capacity is a cloud problem." Offline, capacity is bought months ahead. Peaks use headroom and agreed shedding.
Chapter quiz
Five questions, 70% to pass.
Review this chapter in 5 minutes
Watch the whole chapter recapped: No internet path, an internal mirror, the signed update train, and fixed offline capacity.
- Air-gapped means no internet path. Change happens only by carried in, approved bundles.
- Offline removes six things: model downloads, registries, package repos, telemetry phone home, licence checks and public time sync.
- Mirror pattern: internal registry plus artefact store, fed by signed, scanned bundles on a schedule.
- Update train: stage, scan and sign, approve per Chapter 23, carry in, verify hashes, deploy per Chapter 12, keep the old version.
- Capacity is fixed: size for peak plus one node down, agree shedding early. Telemetry stays inside; exports are reviewed; support is guided.
- Worked plan: 11 illustrative hands on hours, about 5 illustrative working days elapsed.
Decision rule: if a step needs the internet, redesign it to run on what is already inside, or carry it in signed, on the train.
Review
Glossary
- Air-gapped deployment
- No internet path in or out. Example: the customer's copilot enclave.
- Enclave
- The isolated environment, with its own cluster and rules. Example: a private Kubernetes platform.
- Internal registry
- Registry inside holding every runnable image. Example: images pinned by digest.
- Artefact store
- Versioned internal storage for models, packages and licences. Example: versions 4 and 3, kept for rollback.
- Signed bundle
- Artefacts packaged with a signature and hash list. Example: one model, three images, one licence.
- Update train
- The fixed sequence moving an update from staging inside. Example: scan, sign, approve, carry, verify, deploy.
- Hash check
- Comparing a computed hash with the signed list. Example: a mismatch stops the import.
- Offline licence file
- A licence validated locally, with no server call. Example: renewed before a tracked expiry date.
- Reviewed export
- Data checked by a person before leaving. Example: a log bundle cleared by the operator.
- Load shedding
- Delaying low priority work when capacity runs out. Example: extraction queues, copilot stays fast.
Next: "Governance: model inventory, approvals and audit trails".