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
Decide the long-term credential model for enclave result delivery #134
sce-unit now sends its signed run result straight to RunResultsQueue. It gets sqs:SendMessage by borrowing the host instance role over vsock port 5002, because #86 removed the enclave's own AWS credentials when KMS decrypt moved behind kms-service.
The result signature keeps a compromised host from forging results, but the credential model is still worth revisiting. Borrowing the host role gives the enclave the host's capabilities: s3:GetObject on the artifact bucket, ec2:TerminateInstances, and sqs:SendMessage. The host already has those capabilities, so the credential split is not a security boundary. It also puts temporary credentials inside the enclave and adds a credential-serving listener on port 5002.
Options
Keep the borrowed host role. Smallest change and already working with the result signature, but the enclave holds host-level AWS capabilities and the credential channel remains.
Add a delivery service. sce-unit POSTs the signed result with its verifier JWT; the service validates the token and performs SendMessage. No host credentials and no new enclave privilege, at the cost of another service in the result path.
Have kms-service perform delivery. It already validates the verifier JWT and is on the enclave path. Simple, but mixes KMS and result transport concerns.
Mint narrowly scoped temporary STS credentials (sqs:SendMessage on this queue only) from a token-authenticated service. Keeps the result payload out of that service, but adds STS role plumbing and another credential path.
A presigned SQS SendMessage URL was tested and does not work for a dynamic body: SQS returned 404 UnknownOperationException for a botocore-generated presigned URL containing MessageBody.
Done when
The credential model is chosen and either implemented or recorded as the accepted design, with the #93 threat model updated to match. Refs #93, #132.
Activity