“The model is ours” is not the whole architecture

A local deployment is often chosen to improve control over confidential data. That is a sensible goal, but “the model runs here” describes only one component: token inference. Around it are a web interface, proxy or API gateway, conversation database, RAG index, metrics collector, model updater, agent tools, and backups. Each may have separate storage, access, and outbound-traffic settings.

Locality is therefore not a property of one set of model weights or a checkbox in a control panel. It is a verifiable statement about a specific data flow: what leaves the device or server, where it goes, who can access it, how long it is retained, and how it is deleted.

NIST’s Generative AI Profile treats governance, data provenance and retention, third-party integrations, monitoring, and incident response as parts of the system lifecycle. OWASP separately highlights sensitive-information disclosure in LLM applications and warns that system instructions are not a reliable security boundary: they may be bypassed through prompt injection or other methods. This does not mean every local service is automatically unsafe. The practical point is to inspect the surrounding stack as well as the model.

Map data flows before buying a GPU

For each use case, answer five questions: what data enters; which components see it; where it can travel over the network; what is written to persistent storage; and how a record is corrected or deleted. Record the result as a simple diagram or table and assign an owner to every node.

Check at least six routes:

1. **Request and response.** User browser, web application, reverse proxy, API layer, and inference runtime. The interface may retain prompt history if that feature is enabled.
2. **Document retrieval.** Source files, OCR and parser, temporary queue, embeddings, vector store, retrieved text, and citations. Even with a local language model, the index or file storage may be external.
3. **Agent tools.** CRM, email, calendar, browser, ERP, and file APIs. An agent may send data to or retrieve data from these systems; check read and write permissions separately.
4. **Logs and analytics.** Prompt/response logging, traces, errors, metrics, monitoring, and support. Logs may be sent to a shared cloud observability stack or copied along with the application.
5. **Model and updates.** Weight downloads, container images, packages, plugins, signature checks, and outbound update requests. The question is not just where a file is stored, but who supplied it, how integrity is verified, and what happens during an update.
6. **Operations.** Backups, snapshots, disaster recovery, test environments, developer exports, and remote diagnostics. A backup follows its own retention rules even after a working record has been deleted.

Do not assume that every listed component sends data outside the organization. Check the actual configuration, network routes, contracts, and retention modes for the specific product version. Mark both verified flows and unanswered questions on the map.

Classify fields and events, not just “data” in general

“Do not send personal data” is too broad to configure a system. Separate fields into working classes: public, internal, commercially sensitive, personal, financial, and access secrets. Then map each class to the task and components.

For every field, ask:

  • does the model need it, or can it be removed or masked first;
  • can it enter a prompt, retrieved passage, cache, log, trace, or export;
  • in which region and with which operator is a copy stored;
  • which application and infrastructure roles can view it;
  • what is the retention period, deletion basis, and backup treatment;
  • is this flow acceptable for the use case and the specific supplier contract.

A customer identifier, order number, or support message can be sensitive even without a field named “passport.” Do not base the decision only on whether the model is trained on requests. No-training terms do not answer questions about logging, support access, retention, or subprocessors.

Controls at each system boundary

Input and conversation history

Authenticate before the API, restrict network access, and set a retention period for history. If the pilot uses real requests, exclude test accounts and accidental public links. Prefer synthetic examples for debugging; if real snippets are necessary, minimize and de-identify them before use.

RAG and documents

Check authorization before returning a passage, not only after generation. Search metadata does not replace authorization: access filters must be tied to the user’s identity and applied before text enters the prompt. Test that one group cannot obtain another group’s passages through direct search, a repeated request, or a cache.

Logs

Document which fields are logged by default, whether administrators can inspect contents, where metrics and copies reside, and who receives error reports. Keep the minimum technical fields needed: time, status, latency, model version, and test identifier. Store full request text only when justified, with a short retention period, access controls, and a deletion procedure.

Network and third-party dependencies

Create an outbound allowlist for the inference server and neighboring components. A pilot can inspect DNS and network connections during a test request, but traffic counters alone do not prove that all traffic is safe. Match destinations to documentation; disable unnecessary telemetry and automatic updates, or control them through an internal process.

Agent tools and permissions

Start with the least privilege required. In the first pilot, an agent may read one test folder and create drafts without sending email, changing payments, or deleting data. Check separately that a prompt cannot expand the API permissions it has been given. Human approval helps, but does not fix overly broad access if the agent can already read information it should not see.

Backups and deletion

Determine whether conversations, indexes, files, and logs enter snapshots or backups; who can restore them; and how deletions and access restrictions are reapplied after recovery. Removing a document from the main index is not enough if its text remains in a backup or a test export.

A one-week technical pilot

Instead of auditing every system at once, choose one use case and one data class. For example: an internal assistant answering from de-identified procedures, with no personal customer requests and no write access to the CRM.

1. Draw the request route and name the owners of the application, server, storage, and observability systems.
2. Add a canary string to a test request and check where it appears: application logs, RAG, monitoring, external DNS or egress, and backups.
3. Check user and administrator access in the test environment; delete the request and see which copies remain.
4. Block unnecessary outbound connections and repeat the test. Record what broke and whether a connection is required for updates or support.
5. Test a server failure, an external-component error, and recovery from backup to confirm predictable behavior.
6. Keep the data-flow map, retention rules, approved destinations, and test results as criteria for approving the next stage.

This check does not replace a security audit or legal review. It quickly separates verified configuration from assumptions such as “it probably does not send anything anywhere.”

Economics: local hosting also has a cost

Local deployment can reduce certain external transfers and provide more control over updates and logs. In return, the company owns patching, monitoring, redundancy, physical and network access, weight updates, driver compatibility, and recovery after failure. If some components remain in the cloud, assess the end-to-end flow rather than only the cost of the local server.

For a small team, estimate the time of the system owner, support, GPU or server time, storage, electricity, and periodic checks. Compare this not with an abstract “free API,” but against the target workload: request volume, retention periods, acceptable latency, answer quality, and incident cost. Do not assign an artificial dollar figure to confidentiality; state which requirement the architecture helps meet and which risks remain.

The next step

Ask the IT owner and process owner to trace one real use case from an employee’s click to the last retained copy. If each node has a known data class, operator, region, retention period, access rule, and deletion action, you have a basis for a pilot decision. If part of the route is unknown, that is a question for the supplier or integrator—and a more useful starting task than buying a GPU “just in case.”