Files
Danko Miladinovic 006897a57c COCOS-153 - Add host-data option (#163)
* add host_data option

* add CLI hostdata option and rename platform to backend

* move code for computation hash to a function

* rename getComputationHash to computationHash

* add default for backend information field switch
2024-07-08 15:32:13 +02:00
..

Rust project for fetching backend info

This rust project fetches information from the host system needed for validation of the attestation report. It outputs a JSON file that contains the said information. The JSON file is in a format that can be used with the go-sev-guest library.

Usage

Clone cocos repository:

git clone git@github.com:ultravioletrs/cocos.git
cd ./cocos/scripts/backend_info 
make

Then run the binary. Keep in mind that you have to specify the policy of the Guest VM:

cd ./target/releas

# Run with option --policy (policy is 64 bit number) 
./backend_info --policy 196608