Skip to content

Decide the long-term credential model for enclave result delivery #134

Open

Description

@prdai

Problem

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

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