You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support optional DC-provided output encryption for webhook results #141
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.
Activity