Repository navigation
feat(verifier): allow each run to attest only once - #125
Merged
Merged
Conversation
Co-authored-by: Codex <[email protected]>
Co-authored-by: Codex <[email protected]>
Co-authored-by: Codex <[email protected]>
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
runIdin a newRunAttestationTable.PutItem(attribute_not_exists(RunId)) made after the PCR check, so concurrent attestations race safely and only one mints tokens./attestfor the samerunIdreturns 409. Docs updated.why
Closes #124. Without a record, the same run id can be launched and attested again, and every attestation mints a fresh token pair. One run can then hold many attested sessions, each fetching from PDM, unwrapping the key through KMS, writing a subject-access entry, and reporting cost under the same id.
verification
tsc --noEmitandbiome check srcpass insecure/verifier-service.secure/verifier-service/serverless.ymlparsed as YAML.notes
main, per request. On its own it proves only that a run id attests once, not that the caller is that run's host; Result binding: host-selected run id lets an enclave publish under another run #120 binds a per-run secret to the id.AttestedAtclaim onRunBindingTableand this table should be unified.