microsoft / oe-engine

ACC template generation engine
MIT License
11 stars 14 forks source link

Parse latest intel-sgx driver url and compare checksum #71

Closed Francis-Liu closed 4 years ago

Francis-Liu commented 4 years ago

When Intel upgrade their sgx driver, the name of the url for downloading the latest version of sgx driver changes, which breaks our installation script. What we do here is to parse their folder, download SHA256 signature file, get the dir of latest driver, download it and compare its sha256 chucksum with the expected value.

Francis-Liu commented 4 years ago

Testing

  1. make build
  2. bin/oe-engine generate --api-model test/oe-ub1804.json
  3. deployed a VM
  4. ssh into the VM, run samples tests, all pass
  5. repeat 2~4 on 16.04
yakman2020 commented 4 years ago

LGTM