ReinDBby Bandlei

Blog · Federal

Shipping software with built-in AI to air-gapped and classified networks

Brett Rosenblatt ·

Every product roadmap has AI on it now, and federal buyers want it too. Then the questions come: "Does it work on our network?" "Do we need to hire an AI specialist?" On an air-gapped or classified network, there's no calling a vendor's model API. Either the model runs inside the boundary, or the feature doesn't exist. Or, more commonly, it does exist but the API is on a different network.

The good news is that this is mostly a design decision, and it's cheaper to make it early. Here's how I'd build it.

One code path, three modes

The single most useful decision: the application talks to a model only through an OpenAI-compatible HTTP endpoint, and the address comes from configuration. Almost every local model server speaks that API, and so do most model gateways that agencies run. The app never needs to know which one it's talking to.

That gives you three deployment modes with the same code:

                    +--> local model server (Ollama or vLLM) next to the app   [bundled]
App --(OpenAI API)--+--> the agency's own model gateway                        [agency-hosted]
                    +--> nothing: AI features fall back to code-based rules    [rules only]

The configuration is three or four values:

AI_MODE=local                              # local | agency | rules
AI_BASE_URL=http://127.0.0.1:11434/v1      # Ollama's default port; vLLM uses 8000
AI_MODEL=gpt-oss:20b
AI_CA_BUNDLE=/etc/pki/agency-ca.pem        # agency gateways usually use an internal CA

That also answers "Do we need to hire an AI specialist?" No. With an OpenAI-compatible endpoint and a rules-only fallback, a system administrator can run the model server like any other service: install it, point the app at it, watch it, patch it.

Rules only is not an afterthought. Some sites will have no GPU, some won't approve any model, and some will approve one six months after your software. Design every AI feature so a deterministic version exists: the rules find the problem, and the model, when present, explains it in plain language. If the product cannot function without the model, it can't ship to the sites that need it most. This is where a lot of projects get abandoned in the prototype stage.

Agency-hosted is often the easiest path to approval. If the agency already runs an approved model, your software adds no new model to accredit. It's just another client of a service they've already authorized. Make the base URL, auth header and CA bundle configurable, and you're done.

Choosing a model: license and provenance first

For the bundled mode, quality matters less than you'd think. Accreditation cares about where the weights came from, what license they're under, and whether you can prove the file the site runs is the same file you tested.

Hardware: what each option needs

Option Hardware Notes
Rules only None beyond the app Always available, the baseline every site gets
gpt-oss-20b About 16 GB of memory A single 24 GB GPU is comfortable. CPU-only works for light use, but answers are slow
gpt-oss-120b A single 80 GB GPU (H100 or MI300X class) Much better reasoning. Plan for one GPU server per site, not per user
Agency-hosted Whatever the agency runs Nothing extra on your side

The weights also take disk: tens of gigabytes for larger models. In a disconnected site that matters for how you deliver updates, which comes up again below.

Size for your feature, not for a benchmark. Explaining a slow query, summarizing a log or drafting a report is well within the small model's range. Multi-step reasoning across many documents is where the larger one earns its GPU.

Serving the model: Ollama or vLLM

Both serve an OpenAI-compatible API, and both run fully offline once the weights are local.

Whichever you choose, test it with the network cut off. A component that tries to phone home and fails silently in a lab will still show up in a firewall log at the site, and somebody will ask about it.

Guardrails that reviewers will ask about

Getting through accreditation and the scans

None of this replaces the agency's ATO process, but it's what makes it go smoothly.

For the platform pieces underneath (Postgres, Kafka, Trino and their STIGs and hardened images), see From a Postgres cluster to a hybrid lakehouse.

What Iron Bank is, and what it isn't

Iron Bank is the DoD's repository of hardened container images, and getting your image there makes it much easier for DoD programs to pull it in. A few things are worth knowing up front:

A checklist before you promise "it works on our network"

Done this way, the same build serves a commercial customer with a GPU, an agency with its own model gateway and a classified enclave with no AI at all. If you've shipped AI features into a disconnected environment, I'd like to hear what tripped up your accreditation.


Brett Rosenblatt is a DBA and performance engineer and a co-founder of Bandlei, which makes ReinDB, a read-only performance monitor for PostgreSQL, Oracle and other databases.