Tenant payload data, audit logs, and billing records should not share the same data-encryption keys. Separate keys by security domain and, where the threat model warrants it, by tenant; then place those keys beneath protected, domain-specific key-encryption-key branches. The right granularity depends on data classification, deployment environment, residency and retention needs, scale, recovery objectives, and the operational economics of the chosen KMS or HSM.
The short answer: separate keys by security domain and, where risk warrants, by tenant
A sound enterprise AI architecture starts by treating tenant payloads, audit telemetry, and billing records as distinct security domains. These records may originate from the same inference workflow, but they usually have different readers, purposes, retention periods, downstream processors, and incident-response requirements.
At minimum, establish separate data-encryption-key populations for:
- Tenant payload data: prompts, responses, embeddings, uploaded context, cached content, fine-tuning data, and other workload-specific records.
- Audit logs: authentication events, authorization decisions, administrative actions, model-access records, and security telemetry.
- Billing records: usage measurements, account mappings, invoices, credits, and finance-system exports.
This separation limits the consequences of a compromised service identity or key path. It also allows each domain to have its own authorization policy, rotation process, retention lifecycle, recovery procedure, and administrative ownership.
Key separation is not, by itself, tenant isolation. A secure design must also authenticate the requesting workload, authorize its purpose, bind each operation to the correct tenant and domain, and protect the integrity of the metadata used to select a key.
Why the three record classes should not share data-encryption keys
Tenant payload data is commonly accessed by inference services, retrieval systems, cache layers, support workflows, or tenant-facing applications. Its key design should reflect workload sensitivity, tenant isolation needs, regional placement, and the lifecycle of the underlying content.
Audit logs usually serve a different audience: security operations, platform administrators, incident responders, and internal assurance teams. Audit data may need to remain available after access to tenant payloads has been suspended or deleted. Operational separation prevents a tenant-data key event from unnecessarily making security evidence unreadable.
Audit-log encryption should also be paired with integrity controls. Encryption can protect confidentiality, but it does not independently prove that events are complete, correctly ordered, or unaltered. Access restrictions, authenticated metadata, append-oriented storage, and appropriate tamper-evidence controls remain separate design concerns.
Billing records often move into finance, metering, reporting, tax, or payment-related systems. Those systems can have different operators, service identities, processors, retention rules, and recovery priorities. A billing service should not need access to keys that decrypt prompts or model responses, and an inference service should not gain access to finance records merely because it generated the underlying usage event.
When the threat model calls for stronger tenant-level separation
Domain-level separation is the baseline. Within the tenant-data domain, the platform can use per-tenant, pooled, or hybrid key granularity.
Per-tenant keys are particularly relevant when tenants have high-risk data, require targeted access suspension, operate in distinct regions, or need a narrower cryptographic blast radius. They can also make it easier to revoke or retire access for one tenant without affecting others.
However, per-tenant keys add lifecycle objects, authorization policies, monitoring events, recovery dependencies, and KMS activity. At large scale, teams must account for quotas, request latency, caching behavior, administrative complexity, and cost. Lower-risk workloads may be adequately served by a controlled pool of keys, provided authorization and tenant-binding controls remain strong.
A hybrid design often maps key granularity to risk tiers. For example, higher-sensitivity tenants may receive dedicated keys while lower-risk tenants use carefully partitioned key pools. This is an architectural choice, not a universal prescription.
| Model | Isolation and blast radius | Targeted revocation | Scale and KMS load | Operational considerations |
|---|---|---|---|---|
| Per-tenant keys | Narrower boundary because tenants do not share the same tenant-data key | More direct at the tenant level | More keys, policies, requests, and recovery objects | Strong granularity with greater lifecycle and administrative burden |
| Pooled keys | Multiple tenants share a cryptographic boundary | May affect a pool or require application-level handling | Lower key count and potentially simpler KMS use | Depends heavily on reliable authorization, pool assignment, and metadata integrity |
| Hybrid model | Granularity varies by risk tier, region, or workload | Targeted for dedicated-key tenants; broader for pooled tenants | Balances key volume against isolation requirements | Requires clear classification rules and controls that prevent incorrect tier or pool assignment |
An illustrative envelope-encryption hierarchy for enterprise AI
This vendor-neutral pattern illustrates a possible hierarchy and does not describe a specific Token Forge Cloud implementation:
Protected root or trust anchor
├── Tenant-payload key-encryption-key branch
│ ├── Tenant A data-encryption keys
│ ├── Tenant B data-encryption keys
│ └── Shared-pool data-encryption keys for designated lower-risk workloads
├── Audit-log key-encryption-key branch
│ ├── Security audit data-encryption keys
│ └── Administrative audit data-encryption keys
└── Billing-record key-encryption-key branch
├── Metering data-encryption keys
└── Finance export data-encryption keys
In an envelope-encryption design, data-encryption keys encrypt the records, objects, or streams. Key-encryption keys protect those data-encryption keys. This allows a platform to change a wrapping key or access policy without necessarily re-encrypting every underlying payload immediately.
The protected root should be isolated from routine application access. Applications should request narrowly scoped cryptographic operations through authenticated service identities rather than reading high-level key material directly.
Protected root and key-encryption-key layers
The root or highest-level trust anchor should have a small administrative surface. Key administrators and data operators should be separate roles where practical: managing key policy should not automatically grant access to tenant plaintext, and operating a data service should not grant unrestricted control over the key hierarchy.
Domain-specific key-encryption-key branches provide independent control over tenant payloads, audit logs, and billing records. They can support different administrative ownership, recovery policies, deployment regions, and access paths without forcing every record into one cryptographic lifecycle.
The physical boundary may differ by deployment. A cloud-hosted platform, private VPC deployment, and on-premises installation may use different KMS or HSM arrangements. When planning a deployment, evaluate where key material and wrapping operations reside, which identities can invoke them, and how regional or residency restrictions are enforced.
Domain branches for tenant payloads, audit telemetry, and billing records
Each domain branch should have an explicit purpose that is enforced in authorization policy rather than conveyed only through naming conventions.
For example, an audit service requesting an audit key should present its authenticated service identity, authorized operation, domain, and relevant deployment context. A billing processor should be unable to substitute a tenant-payload ciphertext or request a payload key merely by changing a metadata field.
Useful encryption context can include a tenant reference, domain, dataset, service, region, or key version. That context is trustworthy only when it is authenticated or otherwise integrity-protected and checked against authoritative authorization data. Accepting a caller-supplied tenant identifier without validating the caller’s rights creates an opportunity for cross-tenant key or ciphertext substitution.
Scoping data-encryption keys by tenant, dataset, service, region, or time period
Data-encryption keys can be scoped along more than one dimension. The appropriate combination should follow the threat model rather than a desire to maximize the number of keys.
- Tenant scope narrows the effect of tenant-specific revocation or compromise.
- Dataset or service scope prevents unrelated applications from sharing a cryptographic boundary.
- Regional scope can align key operations and recovery plans with data-placement constraints.
- Time-period scope can simplify versioning, scheduled rotation, and retirement of older material.
Overly broad scoping increases blast radius. Overly narrow scoping can create excessive KMS traffic, difficult recovery procedures, and a large inventory of keys and policies. The design should be tested against both security events and ordinary operational load.
Operate the complete key lifecycle
Key architecture is only effective when its lifecycle is defined from generation through retirement. Enterprise teams should document responsibility and expected behavior for each stage:
- Generation and wrapping: Generate data-encryption keys through an appropriate trusted mechanism, wrap them under the correct domain key-encryption key, and prevent plaintext key material from entering ordinary logs or databases.
- Storage and caching: Store wrapped keys separately from unrestricted plaintext access. If unwrapped keys are cached for latency or availability reasons, constrain cache location, lifetime, memory exposure, and permitted service identities.
- Rotation and versioning: Assign stable key identifiers and explicit versions. New writes can move to a new version while older versions remain available for authorized reads or while existing keys are safely rewrapped.
- Revocation, recovery, and deletion: Define what happens when access must be suspended, a key is suspected of compromise, a region becomes unavailable, or retained data reaches the end of its lifecycle.
Rotation does not automatically mean re-encrypting every stored record at once. Older key versions must remain securely available—or the associated data-encryption keys must be safely rewrapped—for as long as corresponding ciphertext and retained records need to remain readable. Deleting an old version prematurely can turn a routine rotation into an unrecoverable data-loss event.
Revocation also needs precise semantics. Teams should distinguish between blocking future encryption, blocking decryption, disabling one tenant, disabling an entire domain, and permanently destroying key material. Each action has different consequences for legal holds, incident investigation, billing reconciliation, backups, and disaster recovery.
Audit key use without exposing secrets
Key-management telemetry should support investigations and operational review without recording plaintext keys or sensitive decrypted content. Useful events include:
- Key identifier and version
- Intended purpose and security domain
- Tenant, pool, region, or service context where appropriate
- Requesting service identity and authorization decision
- Wrap, unwrap, rotate, disable, restore, or administrative action
- Outcome, timestamp, and relevant policy decision reference
Access to this telemetry should itself be separated from access to tenant payloads. Because audit records may be needed during a key-related incident, teams should test whether investigators can retrieve the required evidence when tenant-data services or keys are unavailable.
Plan for KMS outages and disaster recovery
A key service is an availability dependency. The platform should define whether requests fail closed, use a constrained key cache, queue work, or enter a limited operating mode during an outage. The answer may differ between interactive inference, asynchronous batch processing, audit ingestion, and billing reconciliation.
Disaster-recovery testing should cover more than restoring encrypted databases. Teams also need to confirm that the correct key versions, policies, service identities, metadata mappings, and audit trails can be recovered in the intended region. Backup access should be tightly controlled, and recovery procedures should not create a privileged bypass around normal tenant authorization.
Regional design requires similar care. Replicating ciphertext without a recoverable and authorized key path does not create a usable recovery copy. Conversely, copying keys broadly across regions can defeat the intended residency or administrative boundary.
Encryption separation and access control must work together
Every decrypt or unwrap operation should answer four questions:
- Who is calling? Validate the workload or administrator through a dedicated identity.
- What operation is permitted? Distinguish encrypt, decrypt, wrap, unwrap, rotate, disable, and administrative actions.
- For which tenant and purpose? Check tenant membership, domain, workload, and intended use against authoritative policy.
- Does the ciphertext match the request? Authenticate relevant metadata so ciphertext cannot be moved between tenants or domains without detection.
Separate service identities are important. Inference workers, audit collectors, billing processors, support tools, and administrators should not default to one shared cryptographic identity. Least-privilege policy should constrain both the keys an identity can reach and the operations it can perform.
These controls complement, rather than replace, application-level tenant isolation, database authorization, network segmentation, secure logging, and careful handling of decrypted data in memory.
What enterprise buyers should ask AI platform vendors
When evaluating a managed model API, self-deployed serving stack, or private inference control plane, ask vendors to explain the operational design—not simply whether data is “encrypted.”
- Are tenant payloads, audit logs, and billing records assigned separate keys or key branches?
- Is tenant-data granularity per tenant, pooled, or hybrid, and can it vary by risk tier or region?
- Are customer-managed-key, bring-your-own-key, or hold-your-own-key arrangements available for the proposed deployment?
- Where do KMS or HSM boundaries sit, and which party controls policies and administrative identities?
- How are service identity, purpose, tenant context, and ciphertext metadata enforced during key operations?
- How do rotation, version retention, rewrapping, revocation, backup, recovery, and deletion work?
- What occurs during KMS throttling, quota exhaustion, regional failure, or complete key-service unavailability?
- Is key caching used, and if so, where, for how long, and under which access controls?
- Which key and administrative events appear in audit evidence without exposing secret material?
- Can key administrators decrypt data, or are key administration and data operation separated?
- How are retained audit and billing records handled after tenant payload access has been revoked or deleted?
- Which encryption and key-management functions differ across managed, private VPC, and on-premises deployment models?
Answers should be mapped to the actual workload: interactive chat, batch enrichment, agentic workflows, retrieval pipelines, and cached inference can create different data paths and availability requirements.
Applying these questions to private LLM inference
Token Forge Cloud Private LLM Inference supports private deployment and serving-layer optimization for enterprise AI workloads, including areas such as caching, routing, batching, quantization, and GPU scheduling. Our approach also emphasizes private routing, policy-aware access, and telemetry under enterprise control.
These serving-layer controls make data flow, service identity, cache boundaries, and audit telemetry important parts of deployment planning. They should not, however, be treated as substitutes for a defined cryptographic architecture. Confirm the required key hierarchy, KMS or HSM boundary, key-custody model, rotation behavior, recovery design, and deletion process for the chosen environment.
For teams beginning with API-first model access, Token Forge Cloud Managed Model APIs can provide a path for validating demand before considering private deployment. The key-management questions still apply, but responsibility may be divided differently between the API provider, the customer’s application layer, and downstream logging or billing systems. Documenting that division early helps prevent sensitive payloads, telemetry, and financial records from inheriting an unintended shared trust boundary.
Next step
Contact Token Forge Cloud to discuss API access, private deployment, and LLM inference cost control. Share your tenant-isolation, residency, key-custody, rotation, recovery, and audit requirements so the relevant cryptographic controls can be reviewed for your intended architecture.