microsoft / vscode-test

Testing utility for VS Code extensions
MIT License
242 stars 57 forks source link

feat: add length/hash validation for downloads #247

Closed connor4312 closed 10 months ago

connor4312 commented 10 months ago

Fixes https://github.com/microsoft/vscode-test/issues/246 (possibly) though it requires https://github.com/microsoft/vscode-update-server/issues/167 in order to be fully functional. At minimum it validates the length of the stream matches the content-length the CDN told us about, and it will validate SHA256 checksums when the update server provides them.

(I looked at getting them other ways, but it's very roundabout; the update server should just add them on all its headers.)