Visitar URL original
Verify the VBS enclave key binding on the async attestation path by virzak · Pull Request #4798 · dotnet/SqlClient · GitHub
Skip to content

Verify the VBS enclave key binding on the async attestation path - #4798

Merged
cheenamalhotra merged 1 commit into
dotnet:mainfrom
virzak:dev/automation/vbs-async-key-binding
Nov 3, 2026
Merged

cheenamalhotra merged 1 commit into
dotnet:mainfrom
virzak:dev/automation/vbs-async-key-binding

Conversation

@virzak

@virzak virzak commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

CreateEnclaveSessionCoreAsync derives the session secret without calling VerifyEnclavePublicKeyBinding. The check was added to the sync path in #4532, and the async path added in #4541 doesn't call it. Nothing calls the async path yet, so no release is affected. @cheenamalhotra for context, as this is your async enclave work.

The check now runs inside GetSharedSecret, so neither path can derive a secret from a key the signed report doesn't commit to.

Testing

  • New GetSharedSecret_UnboundKey_Throws: rejects an unbound key before using the Diffie-Hellman inputs. Fails without the fix.
  • Enclave unit tests pass on net8.0 and net462.
  • Not added: an end-to-end async test, which needs a signed HGS health report and enclave report fixture.

@virzak
virzak requested a review from a team as a code owner October 7, 2026 03:33
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@priyankatiwari08 priyankatiwari08 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good - no concerns.

@virzak

virzak commented Nov 2, 2026

Copy link
Copy Markdown
Contributor Author

The async enclave path from #4541 has not shipped yet, so without this PR 8.0.0-preview1 would be the first release with the missing key-binding check. Could a maintainer add it to the milestone and run /azp run?

@paulmedynski paulmedynski moved this from To triage to In review in SqlClient Board Nov 3, 2026
@paulmedynski

Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
1 pipeline(s) were filtered out due to trigger conditions.

@paulmedynski paulmedynski added this to the 8.0.0-preview1 milestone Nov 3, 2026
@cheenamalhotra
cheenamalhotra enabled auto-merge (squash) November 3, 2026 18:07
@cheenamalhotra
cheenamalhotra merged commit 9e75b11 into dotnet:main Nov 3, 2026
39 of 40 checks passed
@github-project-automation github-project-automation Bot moved this from In review to Done in SqlClient Board Nov 3, 2026
@virzak
virzak deleted the dev/automation/vbs-async-key-binding branch November 3, 2026 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants