Skip to content
Forward Deployed

Forward Deployed
Lessons and contents
Learn

Encryption, Keys and Audit Evidence

Source
From the FDE Delivery and Scoping Guides
By
Sourav Banerjee
Last updated
20 Nov 2026

Report an issue

Start with the yes that proves nothing

Sandling Pay, a payments firm, was reviewing a document service before sending it chargeback evidence. One questionnaire row asked whether data was encrypted at rest, and Ama, the forward deployed engineer, wrote "Yes, AES-256." The reviewer asked whose key it was, who could use it to decrypt Sandling's documents, and for the record of the last time a vendor engineer read one. The storage used the cloud provider's default key, which Sandling could not see or revoke. Any engineer with read access to the bucket could read every file, because the storage decrypted on read. The support console logged sign-ins but not which documents an engineer opened, and kept those logs for 14 days where the same engineers could delete them. The review paused for three weeks. Call this the yes that proves nothing: a control stated as a fact, with no account of what it stops or how anyone could check it.

What you'll learn

  • State what encryption in transit, at rest and in the application each stop, and what they do not.
  • Explain envelope encryption and choose who holds the key.
  • Design an audit trail that records the right events and survives an insider.
  • Turn each security claim into evidence a reviewer can check.

What each layer of encryption stops

Encryption protects data from anyone who gets the bytes without the key. Each layer hands the key to someone different, which decides what it stops.

Layer Stops Does not stop
In transit (TLS between every hop) Someone reading or changing traffic on the network Anyone at either end, including your own service
At rest, storage level A stolen disk, a leaked snapshot, a discarded drive Anyone who can read through the storage service, since it decrypts for them
At rest, with a key the customer controls All of the above, plus access after the customer revokes the key Your running service while the key is enabled
Application or field level Database administrators and backup operators reading the field The service code that holds the key and decrypts

Table 1: Each layer of encryption stops a different reader. None of them stops the service itself.

Storage-level encryption was the layer Sandling's team had. It is worth having and costs nothing. It does nothing against an engineer with bucket access, which was Sandling's real question. Encrypt within the service as well, between internal components, not only at the edge. Internal traffic crosses networks that others share.

Envelope encryption and who holds the key

Services do not encrypt every file with one master key. They use envelope encryption. Each object gets its own data encryption key (DEK). The DEK is itself encrypted by a key encryption key (KEK) that never leaves a key management service (KMS). The encrypted DEK is stored beside the data.

Diagram: Document; Encrypted document; New DEK; Wrapped DEK, stored with document; KMS holding KEK; Key use logDiagram: Document; Encrypted document; New DEK; Wrapped DEK, stored with document; KMS holding KEK; Key use log

Figure 1: Envelope encryption. Each document has its own data key. Only the key service can unwrap it, and it logs every request.

Two properties make this the default. Reading any document needs a call to the KMS, which is logged and can be refused. And rotating the KEK never means re-encrypting every file: old key versions still unwrap existing DEKs, and re-wrapping, where a policy asks for it, touches only the small DEKs. With a separate KEK per tenant, one customer's data can be made unreadable without touching another's. The key hierarchy itself is covered in secrets and per-tenant encryption keys.

The question a customer cares about is who holds the KEK.

Sandling's documents are encrypted with envelope encryption. Choose who holds the key encryption key to see who can decrypt, what happens if Sandling revokes it, and what it costs.

Your service holds it

  • The KEK sits in your KMS account. Your service and your key administrators can use it.
  • Sandling cannot see key use or cut off access. It relies on your controls and contract.
  • Cheapest and simplest. No dependency on the customer.

Fine for low-risk data. A payments reviewer will usually ask for more.

Customer-managed key

  • Sandling creates the KEK in its own KMS account and grants your service permission to use it.
  • Sandling sees every unwrap in its own logs. Disabling the key makes its data unreadable to your service once the change takes effect.
  • If Sandling disables the key by mistake, its part of the service fails. You need an alert and a runbook for that.

The usual answer for regulated customers. It needs per-tenant keys in your design.

Key held outside your cloud

  • The KEK stays in Sandling's own key manager. Each unwrap calls it across the network.
  • Sandling has full control, and your cloud provider cannot use the key either.
  • Every read depends on Sandling's system being up and reachable. Latency and outages are now shared.

For the strictest customers. Agree availability targets for their key manager before you promise yours.

Sandling chose a customer-managed key. The team added a per-tenant KEK, an alert when Sandling's key became unavailable, and a yearly rotation. When a KEK rotates, the KMS keeps old versions to unwrap existing DEKs, and new writes use the new version. NIST SP 800-57 calls the period a key may be used its cryptoperiod. Agree one with the customer and write it down.

Audit trails that survive an insider

An audit trail records who did what, to which data, when, from where, and whether it worked. Reviewers ask for one because it answers two questions after the fact: what happened, and can anyone deny it.

Record these events at a minimum:

Event Example
Sign-in and failed sign-in Analyst signs in through single sign-on
Customer data read by staff Support engineer opens document 4812 for ticket 3307
Permission and role changes Engineer granted support console access
Configuration changes Cache setting or retention period changed
Key use and key changes Unwrap requests, a key disabled or rotated
Exports and deletions Results exported, a tenant's data deleted

Table 2: Events an audit trail for a shared service should record.

Each entry needs the actor, the action, the object, the tenant, the time from a synchronised clock, the source address and the outcome. Leave out document content, secrets and full tokens. The trail must not become a second copy of the data.

The harder part is keeping it trustworthy. Ship entries straight to a store in a separate account that your engineers cannot write to or delete from. Use the storage's write-once retention setting where it has one. Keep entries as long as the customer's policy needs, which for Sandling was 12 months. Alert on gaps, because a trail that silently stops is worse than none.

Turning claims into evidence

A reviewer cannot test your intentions. They test artefacts. For each claim, decide what someone outside your team could inspect to confirm it.

Claim Evidence
TLS on every external endpoint An external scan result and the load balancer's policy export, both dated
Data encrypted with Sandling's key The storage configuration naming the key, and Sandling's own key use log showing unwraps
Only the service can use the key The key policy listing allowed identities
Staff reads are recorded An audit entry for a test read, made while the reviewer watches
Logs cannot be altered by engineers The log store's retention lock and its access policy
Keys rotate The key's version history

Table 3: Each claim and the artefact that proves it. Exports and live demonstrations beat screenshots and statements.

Evidence has a date and a source. A configuration export from this week is stronger than a screenshot from a slide deck. A live demonstration, such as reading a test document and showing the audit entry appear, is stronger than either. Keep the pack in one folder per customer, refreshed before each review.

Sandling's review resumed with nine artefacts in place of the one-line answer. It closed in four days.

Limits of this lesson

  • Cryptography choices. Algorithms, modes and key lengths belong to your platform's standards and the customer's policy. Use the provider's defaults unless a standard requires otherwise.
  • Certifications. Audits against formal standards bring their own evidence formats. This lesson covers the engineering evidence underneath them.
  • Composite engagement. Sandling Pay, Ama, the review, its figures and ticket numbers are illustrative, not a real customer.

Interview angle

Each answer is an outline to say in about two minutes. Open the question and try it aloud before reading.

Interview question 1. A bank's reviewer asks how you encrypt their data, who controls the keys, and how you would prove who accessed it. Answer all three.
  • Answer: In transit, TLS on every hop, including internal ones. At rest, envelope encryption: a data key per object, wrapped by a per-tenant key in a KMS. For a bank, offer a customer-managed key in their own account, so they see every unwrap and can revoke access. For access, an audit trail of staff reads, permission changes, key use and exports, shipped to a separate store engineers cannot alter, kept as long as their policy needs. Prove it with dated exports, their own key logs and a live test read.
  • Trade-off: A customer-managed key gives them control and means their mistake can take their tenant offline.
  • Follow-up to expect: "Can your administrators read our data?" Only through the service's key use, which they would see.
  • Go deeper: Secrets and per-tenant encryption keys.

References

  1. Google Cloud, Envelope encryption, accessed 17 November 2026. Data keys wrapped by key encryption keys held in a key service.
  2. Google Cloud, Customer-managed encryption keys, accessed 17 November 2026. Customer-controlled keys, and data becoming inaccessible when the key is disabled or destroyed.
  3. NIST CSRC, SP 800-57 Part 1 Rev. 5, Recommendation for Key Management, accessed 17 November 2026. Key management practice and cryptoperiods.
  4. OWASP, Logging Cheat Sheet, accessed 17 November 2026. Which events and fields to record, data to exclude and protecting logs from tampering.

Key takeaways

  • "Encrypted at rest" says little until you say whose key and who can decrypt.
  • Each encryption layer stops a different reader. None stops the service that holds the key.
  • Envelope encryption with a per-tenant key lets a customer see and revoke access.
  • An audit trail records staff reads, changes, key use and exports, in a store your engineers cannot edit.
  • Reviewers test artefacts. Bring dated exports and live demonstrations, not statements.

Check yourself

1. Why did storage-level encryption not answer Sandling's question about engineers?

The storage service decrypts for anyone it allows to read. An engineer with bucket access receives plaintext, so the encryption only protects against someone who gets the raw disks.

2. Why does rotating a key encryption key not require re-encrypting every document?

Documents are encrypted with their own data keys, and only those small keys are wrapped by the key encryption key. The key service keeps old versions to unwrap existing data keys, and new writes use the new version. Re-wrapping old data keys, if required, touches only the small keys.

3. Why must audit logs live where your own engineers cannot delete them?

The trail exists to show what staff did. If the people it records can edit it, it proves nothing about them.

Rate your confidence and keep notes on the module page.