Skip to content

Support optional DC-provided output encryption for webhook results #141

Backlog

Description

@prdai

Problem

Webhook results are signed but not encrypted. A DC may want confidentiality for the output in addition to integrity, especially when the webhook receiver is outside the trust boundary of the SCE.

Proposal

Allow an optional encryption input on POST /run. When present, sce-unit encrypts the result for the DC before delivering it to the webhook, and keeps the existing enclave signature for integrity.

The key choice matters:

  • A DC-provided public key is the safer option. The execution-service passes the public key to the enclave, the host can see it without learning anything, and the DC decrypts with its private key.
  • A symmetric session key passed in the run request is visible to the host and to anything that can read the run parameters, so it does not provide confidentiality against a compromised host.

Open questions

  • Encrypt only output, or the whole signed payload?
  • Does the signature cover plaintext, ciphertext, or both? The DC needs enough information to verify integrity after decryption.
  • Key format and algorithm: hybrid encryption to a DC public key (for example ECIES or RSA-OAEP plus AES-GCM), or another agreed scheme.
  • Where the key is carried: run request, run-info over vsock, or a separate authenticated fetch.
  • What GET /run/{runId} returns for an encrypted webhook run, if anything.

Not implementing this now. Refs #93, #132, #134.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions