Files
Danko Miladinovic 293c65a3aa
CI / ci (push) Has been cancelled
Rust CI Pipeline / rust-check (push) Has been cancelled
NOISSUE - Add path to expected PCR values (#398)
* add path to expected PCR values

* change rust scrtip for attestation policy to print policy to stdout

* fix cli test

* remove stdout from cmd config struct

* fix manager test

* fix manager readme
2025-03-17 12:25:42 +01:00
..

Rust project for fetching Attestation Policy

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/attestation_policy 
make

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

cd ./target/release

# Run with option --policy (policy is 64 bit number) 
./attestation_policy --policy 196608 --pcr ../../pcr_values.json