Skip to content

Test endorsed TCB#7668

Merged
achamayou merged 14 commits intomainfrom
test_endorsed_tcb
Mar 5, 2026
Merged

Test endorsed TCB#7668
achamayou merged 14 commits intomainfrom
test_endorsed_tcb

Conversation

@achamayou
Copy link
Copy Markdown
Member

Closes #7625

@achamayou
Copy link
Copy Markdown
Member Author

@copilot also run the programmability test on Genoa and Milan, that's what exercises the verifySnpAttestation JS API

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 13, 2026

@achamayou I've opened a new pull request, #7669, to work on those changes. Once the pull request is ready, I'll request review from you.

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: achamayou <4016369+achamayou@users.noreply.github.com>
Comment thread tests/npm_tests.py Outdated
Comment thread tests/npm_tests.py Outdated
Comment thread tests/npm_tests.py Outdated
Comment thread tests/npm_tests.py Outdated
Comment thread tests/npm_tests.py Outdated
@achamayou achamayou marked this pull request as ready for review March 3, 2026 11:46
@achamayou achamayou requested a review from a team as a code owner March 3, 2026 11:46
Copilot AI review requested due to automatic review settings March 3, 2026 11:46
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds coverage for endorsed_tcb handling in the npm/TypeScript verifySnpAttestation endpoint to prevent regressions from the earlier endorsed TCB endianness change, and ensures the relevant e2e test runs in SNP CI.

Changes:

  • Extend tests/npm_tests.py to call /app/verifySnpAttestation with an endorsed_tcb parameter.
  • Label the programmability_and_jwt e2e test as snp so it is executed in the SNP-labelled CI jobs.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
tests/npm_tests.py Adds a new SNP-only request variant that supplies endorsed_tcb when verifying a node’s attestation.
CMakeLists.txt Marks programmability_and_jwt with the snp CTest label so it runs under ./tests.sh ... -L snp.

Comment thread tests/npm_tests.py Outdated
Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 4, 2026

@achamayou I've opened a new pull request, #7699, to work on those changes. Once the pull request is ready, I'll request review from you.

Copilot AI and others added 3 commits March 4, 2026 19:54
…7699)

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: achamayou <4016369+achamayou@users.noreply.github.com>
@achamayou
Copy link
Copy Markdown
Member Author

@copilot ok this is good, keep everything you've added, but add one more check afterwards, where you call verifySnpAttestation with an endorsed_tcb that's the correct size but contains only zeroes, and check that this is rejected as expected.

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 5, 2026

@achamayou I've opened a new pull request, #7704, to work on those changes. Once the pull request is ready, I'll request review from you.

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: achamayou <4016369+achamayou@users.noreply.github.com>
@achamayou achamayou changed the title [Draft] Test endorsed TCB Test endorsed TCB Mar 5, 2026
Comment thread CMakeLists.txt
@achamayou achamayou merged commit 834e750 into main Mar 5, 2026
17 checks passed
@achamayou achamayou deleted the test_endorsed_tcb branch March 5, 2026 11:19
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.

Add test for endorsed_tcb in verifySnpAttestation TS API

5 participants