Skip to content

attestation: hash report data before GetQuote - #295

Merged
samgbafa merged 5 commits into
mainfrom
skgbafa/tc-963-attestation-report-data
Oct 15, 2026
Merged

samgbafa merged 5 commits into
mainfrom
skgbafa/tc-963-attestation-report-data

Conversation

@samgbafa

@samgbafa samgbafa commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor
  • /attestation sends SHA-256 of key_binding (32 bytes) as GetQuote report data and returns it as key_binding_sha256 next to the preimage.
  • Before answering 200, the node checks the guest agent's HTTP status, its report_data echo, and the REPORTDATA field of the returned TDX v4 quote; otherwise 503.
  • nonce is limited to 1-64 URL-safe characters; the endpoint uses the public per-IP rate limit.
  • Verifier steps in docs/attestation.md.

Tests: stub guest-agent socket with a structurally valid quote fixture; 64-byte bound, error status, REPORTDATA/echo mismatch, truncated quotes, digest recomputation, nonce and rate limit.

Linear: TC-963

@samgbafa samgbafa left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Security read: approve

@samgbafa samgbafa left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Astra review: approve

@samgbafa samgbafa left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Security read: approve

@samgbafa samgbafa left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Astra review: approve

@samgbafa samgbafa left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Astra review: approve

@samgbafa samgbafa left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Security read: changes requested (details tracked internally)

@samgbafa samgbafa left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Astra review: approve

@samgbafa samgbafa left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Security read: approve

…ation-report-data

# Conflicts:
#	CHANGELOG.md
@samgbafa
samgbafa merged commit 13cbcdc into main Oct 15, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant