Repository navigation
Conversation
Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Codex <codex@openai.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
what changed
runId,algorithmId,status, andoutputwith the ephemeral P-384 key it registers in its Nitro attestation document.POST /runrequires awebhookUrl; passsecure/result-consumer'sResultWebhookUrlto store results forGET /run/{runId}, or a DC URL.HEADreachability check with redirects disabled before launching EC2. Any HTTP status counts; DNS/TLS/connection failure returns400 webhook unreachable.secure/result-consumeris now an HTTPS receiver (POST /results) instead of an SQS consumer. When used as the run webhook, it verifies the signature against verifier-serviceGET /runs/{runId}and writesRunResultsTable, soGET /run/{runId}returns the result.sqs:SendMessage, queue, result-consumer SQS trigger.public_keyat/attestand exposesGET /runs/{runId}for signature verification.why
SQS could not be called from inside the enclave without either borrowing the host instance role or minting a presigned URL. Borrowing the role gives the enclave the host's AWS capabilities, and presigned SQS
SendMessagedoes not work for a dynamic body (tested: SQS returned404 UnknownOperationException). HTTPS delivery removes SQS and host credentials while keeping integrity bound to the measured enclave.This does not fix #120: the host still chooses the
runIdit serves to the enclave. Optional DC-provided output encryption is tracked in #141.verification
cd secure/sce-unit && gofmt -l . && go vet ./... && go build ./...passes.cd secure/sce/execution-service && bun run lint && bun run typecheckpasses.cd secure/result-consumer && bun run lint && bun run typecheckpasses.cd secure/verifier-service && bun run lint && bun run typecheckpasses.cd benchmark && uvx ruff==0.17.4 check . && uvx ruff==0.17.4 format --check .passes.8876fc4(required per-request webhook) is not deployed/tested yet; the behavior below used the previous default-internal-receiver build with the same receiver URL.07bd452a-877d-4e22-8d1a-e218afa561dfandac9ad5e2-2d72-4921-80d9-88187f501355returnedexit:0throughGET /run/{runId}after the HEAD check and required-webhook change.401 invalid signature; the stored result was unchanged.404 run has not attested.617fc6c6-49eb-48f8-ae98-c405b660ca5ddelivered to a public webhook. The signature verified againstGET /runs/{runId},statuswasexit:0, andGET /run/{runId}stayedpending.true; tampered payload verifiesfalse.notes
result-consumer-dev-RunResultsTable-1APZOQFP38H41remains; it has no CloudFormation stack tag and was not deleted.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.