
The Tenant Boundary: Isolation for Shared AI Systems
A field guide to deciding what may be pooled, what must be siloed, and how to keep retrieval, memory, caches, tools, logs, and evaluations inside the right customer boundary.
Read MoreZharfAI Team

A company encrypts customer records in storage and transit, then sends them to an AI server whose host, hypervisor, device firmware, runtime, and application join the trust problem. Who can see or alter the data while the model uses it?
Confidential computing can reduce that exposure by running work inside a hardware-backed trusted execution environment, or TEE. But buying a “confidential VM” does not prove that the intended model, container, driver, and policy received the data. The reader decision is therefore: does the workload have an in-use threat that a TEE can meaningfully reduce, and can the organization make data and model keys unavailable until fresh evidence proves the complete approved runtime is present?
This guide explains the mechanism, residual risks, and a testable attested secret-release architecture.
Before comparing products, name the protected asset, the party that must not access it, the moment of exposure, and the acceptable failure:
Customer documents and proprietary model weights may be decrypted only inside release
R-27; a cloud administrator, compromised host kernel, hypervisor, or neighboring tenant must not read or modify them. Loss of service is acceptable; silent execution in an unapproved runtime is not.
This identifies distrusted layers and whether failing closed fits the service.
NIST IR 8320, finalized in May 2022, describes hardware-enabled security as the physical foundation of layered platform security. That is the verified foundation. ZharfAI analysis: use confidential computing only when the hardware root changes a named trust relationship—not automatically for public data, an accepted host, or risks that sit inside the application.
Classify the adversary explicitly:
The last category is decisive. A TEE tries to protect the guest from parts of its hosting environment. It does not make unsafe guest code safe.
A TEE normally contributes three different properties:
These are not interchangeable. Memory encryption may omit integrity; isolation without attestation leaves placement as a provider claim; attestation without a relying-party decision changes nothing.
The AMD SEV-SNP technical paper gives a concrete boundary: private guest memory is protected from an untrusted hypervisor, with integrity defenses against replay, corruption, aliasing, and remapping. It also excludes guest availability guarantees, requires normal protection such as TLS for shared I/O, and does not generally eliminate physical attacks or architectural side channels.
Do not generalize this boundary. Record the processor generation, firmware, TEE mode, guest policy, device path, attestation service, and exclusions. A product label is not a threat model.
Use the control only where it closes a material gap:
| Workload condition | TEE value | Decision implication |
|---|---|---|
| sensitive inputs or weights must be hidden from the infrastructure operator | potentially high | require a provider and device threat model that explicitly excludes that operator from plaintext access |
| several parties contribute data but will not reveal raw inputs to one another | potentially high | define who verifies the runtime and who controls each decryption key |
| the host is already inside the accepted trust boundary and data is low sensitivity | often low | ordinary isolation, access control, and encryption may be simpler and more reliable |
| the main threat is prompt injection, unsafe tools, model error, or abusive users | low | fix application controls; harmful work may run legitimately inside the TEE |
| the service cannot tolerate fail-closed key denial or attestation dependency loss | mixed | design a safe degraded mode or reject the architecture |
Compare hardened compute, a confidential VM, and a smaller enclave. The broad guest is easier but enlarges the trusted base; the enclave reduces trusted code but demands application changes. GPU and interconnect support narrow options further.
Estimate lifecycle cost: reproducible images, attestation, reference-value updates, key policy, capacity, cold start, incident response, regional recovery, and staff able to interpret failed claims.
Trace every plaintext location: client, gateway, preprocessing, queue, CPU and GPU memory, pinned buffers, caches, temporary storage, output filters, logs, dumps, traces, and downstream tools. A protected kernel does not help if the gateway logs prompts.
For each stage record:
Define the trusted computing base, or TCB: every hardware, firmware, verifier, guest, runtime, application, and policy component whose compromise breaks the promise. It is not only the CPU; unnecessary guest services join the practical TCB.
Bind this inventory to the AI release passport. Policy needs immutable identities for the guest, kernel, boot configuration, application, model server, driver, and model policy. latest is not a reference value.
Remote attestation is an evidence flow. RFC 9334, the January 2023 IETF RATS architecture, separates three roles:
This prevents accepting any token signed by a known service. A valid signature proves issuer and integrity, not that the claims satisfy this release policy.
Google Cloud Attestation is one current implementation: it gathers endorsements, checks evidence against reference values and policies, and returns signed claims. The portable pattern is attester → verifier → result → relying-party policy → resource decision.
Version the relying-party policy as code:
| Claim family | Question before release |
|---|---|
| hardware and TEE | Are technology, security version, confidential mode, and debug state approved? |
| firmware and boot | Are firmware, secure boot, kernel, command line, and guest policy allowed? |
| workload | Does the image or application digest equal an approved release identity? |
| device | Are GPU, driver, firmware, and interconnect claims present where the secret will enter device memory? |
| freshness | Is the evidence bound to a new nonce or another accepted freshness mechanism? |
| session | Does the evidence bind the public key that will receive the secret? |
| context | Do tenant, environment, region, purpose, and risk tier match the resource? |
| revocation | Are endorsements, certificates, firmware, and reference values still acceptable? |
Absence is not approval. Required but missing GPU evidence cannot mean “GPU trusted.”
Attesting a machine and then sending a key over an unrelated authenticated connection leaves a substitution gap. The receiver of the secret must be the same protected workload represented by the evidence.
A robust pattern:
Microsoft calls the resource half secure key release: release key material only after attestation proves an approved TEE. Its Azure Attestation FAQ documents binding workload-generated public keys into attested runtime data so the relying party can establish a channel to that environment.
Attestation describes runtime properties; workload identity names the caller; authorization connects caller, runtime, tenant, task, and resource. Apply the short-lived authority pattern from the credential-brokering guide. Neither token should become a master credential.
Separate keys by asset and owner. Model provider and customer can require the same runtime but different tenant, geography, purpose, and expiry claims. Do not hide every asset behind one attested=true decision.
AI crosses CPU and GPU trust boundaries. CPU protection alone does not prove plaintext entered an approved GPU, driver, firmware, or interconnect. Several device claims may need joint appraisal.
NVIDIA's confidential-computing reference architecture requires measured CVM, CPU, GPU, verifier, secure key release, and privacy-preserving logging, with fresh CPU, GPU, guest, launch, and firmware evidence before model-key release. Its attestation documentation, updated August 1, 2026, lists local and remote paths for supported H100-or-newer GPUs and multi-GPU switches.
Those are vendor facts, not deployment proof. ZharfAI analysis: make one composite decision fail closed when a layer is missing, stale, in debug mode, revoked, or inconsistent. Normalize vendor results without discarding claims that change the threat model.
Policy must still cover shared memory, DMA, I/O, model caches, and multi-GPU links. “GPU attested” does not answer those data-flow questions.
A provider owns model weights; a customer owns confidential case files. Neither trusts the infrastructure operator, and the provider will not release weights to an arbitrary image. They approve R-27: a measured CVM, fixed kernel, minimal container, approved CPU/GPU modes, driver and firmware ranges, disabled debug, and an output filter.
The operating sequence is:
R-27 and the session key.MK-8.T-41, purpose, region, retention, and request authority, then wraps only DK-93.If driver, GPU evidence, nonce, image, or policy fails, that owner's key is denied. Retry on a fresh approved host, never an ordinary VM or yesterday's result.
This narrows infrastructure exposure; it does not prove accuracy, container safety, output authority, or lawful purpose.
New dependencies can stop the service: endorsements, certificate status, verifier, reference values, key service, capacity, and policies that reject a necessary update. Define each disposition:
Drill recovery. Preserve policy, signing authority, revocation, and audit continuity; a new region may use different authorities or claims. Recovery must not widen trust merely to meet RTO.
Protect evidence: RFC 9334 warns it can reveal useful firmware, software, device, or user detail. Minimize, encrypt, restrict, and expire it. The AI audit guide gives the test: preserve input, policy, decision, and effect linkage—not a green-badge screenshot.
Measure the full path against conventional compute, not one throughput number:
| Dimension | Useful measurement |
|---|---|
| coverage | sensitive jobs with every required CPU, guest, GPU, and device claim appraised |
| freshness | age distribution of evidence at key release; replay and nonce-reuse rejection count |
| policy | releases and denials by policy version, claim, environment, tenant, and reason |
| TCB | measured components, privileged services, package count, and approved digest drift |
| key exposure | keys released outside policy, secret lifetime, crash-dump findings, and plaintext-path exceptions |
| security change | time from vendor advisory or revocation to reference-value and release-policy update |
| reliability | verifier and key-service availability, fail-closed events, encrypted queue age, and recovery success |
| performance | attestation, cold start, model load, memory, I/O, throughput, tail latency, and completed-job cost |
Benchmark the actual model, context, batching, topology, data path, and failure policy. Separate launch overhead from per-request cost; averages can hide an unusable cold-start or capacity cliff.
Release no sensitive data or weights until the owner can answer yes:
Revisit after any processor, GPU, firmware, driver, guest, verifier, format, reference authority, key manager, runtime, tenant, region, or topology change—and after side-channel disclosure, unexplained denial, emergency exception, plaintext leak, or recovery drill.
The durable principle is not “run AI in an enclave.” It is: make decryption conditional on fresh, workload-bound evidence that the complete approved runtime is present. The TEE narrows one infrastructure threat; everything inside still needs secure code, narrow authority, evaluation, and accountable operation.

A field guide to deciding what may be pooled, what must be siloed, and how to keep retrieval, memory, caches, tools, logs, and evaluations inside the right customer boundary.
Read More
A field guide to versioning, validating, repairing, and safely consuming structured AI output without confusing schema compliance with truth or authority.
Read More
Install and secure OpenClaw, configure its Gateway, models, workspaces, channels, memory, skills, plugins, browser tools, subagents, tasks, and automations.
Read MoreIf this note maps to a real system in your organization, start with the services page or a shipped case study.