In this article
With Recipient, KMS returns CiphertextForRecipient rather than plaintext; the intended private key must remain in the approved environment.
The deployment scenario
A parent instance relays an encrypted model secret to an enclave. The operator wants the parent to transport the result without reading the decrypted value. Calling ordinary KMS Decrypt and forwarding its plaintext would violate that intended boundary even if the destination enclave is genuine. The relevant question is whether the response is encrypted to an attested recipient key before it crosses the relaying component.
The data and control mechanism
KMS Decrypt supports Recipient with an attestation document. For a valid recipient, the documented response places the decrypted value in CiphertextForRecipient, encrypted under the public key in that document, while Plaintext is null or empty. Nitro’s integration separately uses measurement-based policy conditions to decide permitted use. The response encryption and permission appraisal have complementary roles: one identifies an allowed environment, while the other protects delivery to its key.
Define the intended boundary
Define the approved recipient key lifecycle, where its private key is generated and retained, and which relay components may see only encrypted bytes. Verify that application wrappers do not silently switch to an ordinary plaintext-returning request on an unsupported path. Bind the accepted attestation and recipient to the intended release operation. A parent process successfully carrying an opaque response is expected transport behavior, not proof that it was authorized to decrypt that response itself.
A step-by-step review
First inspect the request builder for Recipient and the response parser for the correct field. Use a synthetic response fixture with separate plaintext and recipient-ciphertext markers to review relaying and diagnostic behavior. Include an ordinary-decrypt fixture as a negative configuration case. Then review handling of invalid attestation, absent recipient data and decryption failure inside the recipient. Keep real model secrets out of these parser and routing checks.
Evidence required for acceptance
Acceptance evidence identifies the attestation policy, recipient public key binding, expected response field and actual consuming component. Record that the relay path neither requires plaintext nor retries through a plaintext-returning alternative. If a controlled end-to-end exercise is performed later, it must distinguish successful KMS response delivery from successful recipient-side recovery. A successful request status alone cannot demonstrate that the intended environment, rather than a wrong key holder, recovered the secret.
Failure cases and limits
This mechanism does not make every application output confidential. Approved enclave code can intentionally export results, and private-key handling inside the environment remains part of the trusted workload. Other unconditioned permissions or alternate data paths need separate review. The bounded result is an attested recipient response contract for one secret-release path, without assuming that GPU execution, storage, network destinations or later diagnostics inherit the same protection.
Primary references and related reading
With Recipient, KMS returns CiphertextForRecipient rather than plaintext; the intended private key must remain in the approved environment. AWS KMS Decrypt dry-run scope; Nitro Enclaves KMS policy measurement conditions.
The proposed investigation of kms attested recipient response versus plaintext is a proposed technical boundary review; no production workload or private data was used. Related reading: Retain decryption dependencies for an encrypted etcd restore; Confidential GPU serving: online queues change the meaning of overhead.
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.