Simple code attestation for Workers

I’m building a Worker that deals with sensitive PII, and it would be great if my customers could verify that my service is doing what they expect with their data.

A simple way to achieve this would be an option for the Workers runtime to include a header containing a hash of the code responsible for serving the response. (It would also be necessary for the runtime to always strip that header if any Worker script attempts to set it.)

That way, if I publish my code on workers.dev, a customer or other third party has everything they need to verify that their requests are being handled by the published code.

I’d be happy to support it as I believe this kind of runtime-level attestation would be invaluable for building trust in cloud services handling sensitive data and also useful for many web based zero knowledge attestation designs.

(fixed typo in prior message above ^)

for others that would find workload attestations useful until cloudflare workers support this, see confidential.ai

Bump. I would love to see this in cloudflare :folded_hands: