Sub topic 11
Zero Data Retention with Model Providers
This chapter assumes you know Salesforce objects, fields, and user permissions. It also assumes you know what an LLM and a prompt are, and that you are familiar with privacy concerns such as PII and data residency. Earlier chapters covered masking, prompt defense, and the LLM gateway. This chapter covers what happens to a prompt after the gateway sends it to a model provider.
What zero data retention means
Zero data retention (ZDR) is a contractual and technical arrangement. Under it, a model provider processes a prompt to produce a response and then does not store the prompt or the response. The provider also agrees not to use them to train or improve its models.
Without such an arrangement, an LLM provider might keep prompts in logs, review them for abuse, or use them as training data. For an enterprise, any of these would mean customer data persists outside its control. ZDR closes that gap for the provider hop.
In the Trust Layer pipeline, ZDR applies at the step where the LLM gateway sends the prompt to the provider and the model returns a response.
What is retained and what is not
ZDR describes the provider side. The Salesforce side still records data, and that is intentional. Keep the two apart.
| Location | Prompt and response stored? | Purpose |
|---|---|---|
| Model provider | No, under ZDR terms | Avoid persistence and training use outside Salesforce |
| LLM gateway | Not retained as provider-bound content | Route and protect the request |
| Salesforce audit trail | Yes, if enabled and configured | Review, feedback, and compliance |
The audit trail is covered in a later chapter. The point here is that "zero retention" does not mean "no record exists anywhere." It means no record exists at the provider.
What ZDR protects against
ZDR addresses specific risks.
- Provider-side storage. Prompts sitting in a provider's logs could be exposed by a breach or misconfiguration at that provider.
- Training reuse. Customer content could influence a model that other customers use, and fragments could resurface in other outputs.
- Retention beyond your policy. Your data retention rules apply in Salesforce. They cannot reach a provider's storage unless the contract sets the terms.
- Human review at the provider. Some providers let staff read stored prompts to investigate abuse. With no stored data, there is nothing to read.
How it works with masking
ZDR is one layer of several. Masking works before the provider sees the prompt. ZDR limits what the provider keeps afterward.
Consider the earlier example, where the prompt sent out is:
Summarize the case for PERSON_0 (EMAIL_0).
Her order 55501 arrived damaged.Masking replaced the name and email. The order number remains in the prompt, because it was not detected as sensitive in that configuration. Under ZDR the provider does not keep that order number either. Each control covers a gap in the other:
- If masking misses a value, ZDR limits how long it exists outside Salesforce.
- If a provider's retention fails, masking has already removed the most sensitive values.
Neither control is a guarantee on its own. Together they reduce exposure at two points.
The in-transit window
ZDR does not mean the data never reaches the provider. The model must read the prompt to answer it. During processing, the prompt exists in the provider's systems, usually in memory. ZDR governs what happens after processing ends.
This has two practical consequences:
- The provider can still see unmasked values that your masking configuration did not catch. ZDR does not hide them while the model reads them.
- Transport protection, such as encrypted connections between the gateway and the provider, is a separate control from ZDR. Do not treat ZDR as a substitute for it.
Who is covered
The ZDR terms apply to model providers that Salesforce contracts with and reaches through the LLM gateway. The next chapter on model options covers how that changes when you bring your own model. A model you connect yourself may sit under your own agreement with the provider, so the Salesforce ZDR terms may not apply to it.
A checklist for reviewing ZDR
An admin or architect can use the following questions during a security review. The answers come from Salesforce documentation and your contracts, not from a setting in the org.
- Which providers and models are enabled for the features in use?
- Are those models reached through the Salesforce LLM gateway, or through a connection you configured?
- What do the contract and documentation say about storage, abuse monitoring, and training use for each?
- Does anything outside the gateway path, such as a custom integration, send CRM data to a model directly?
- Are data residency requirements met? ZDR addresses retention, not where processing takes place.
Question 5 matters because retention and residency are different properties. A provider can retain nothing and still process data in a region your policy does not allow.
Common errors in reasoning
- "ZDR means the AI never sees my data." It sees the masked prompt while generating a response.
- "ZDR removes the need for masking." It does not. Masking limits what the provider sees at all.
- "ZDR means nothing is logged." Salesforce can still log the interaction in the audit trail.
- "ZDR applies to any custom integration." A custom callout to an outside API bypasses the gateway path and its terms.
- "ZDR covers residency." It covers storage and reuse. Location of processing is a separate question.
Summary
Zero data retention is a promise about the provider hop. After the model returns a response, the provider does not keep the prompt or response and does not train on them. It complements masking, prompt defense, and the audit trail, and it does not replace permissions or good data hygiene. The terms depend on which provider and path you use, so verify them for each model you enable.
Exercise
A colleague says, "We have zero data retention, so we can turn off masking and the audit trail." Give two reasons this is wrong.
Show answer
First, ZDR only stops the provider from storing the prompt and response after processing. The provider still reads the whole prompt while generating a response, so unmasked sensitive values are still visible to it. Masking limits what the provider sees at all. Second, the audit trail is stored in Salesforce, not at the provider, and serves review, feedback, and compliance. ZDR does not provide those functions, and disabling the audit trail would remove your ability to review interactions.
Exercise
Your team builds a custom integration that sends case text straight to an external model API. Does the Trust Layer's ZDR arrangement cover it? What should you do?
Show answer
Not automatically. ZDR terms apply to models reached through the Salesforce LLM gateway under Salesforce's agreements. A direct callout bypasses that path, so only your own contract with that provider applies. Review that contract for storage, abuse monitoring, and training use. Also consider routing the use case through the gateway, or applying your own masking before the call.