Generate RA Report
Last updated
Was this helpful?
Last updated
Was this helpful?
The cloud will generate a default RA report for your application when it is bootstrapped. You can view this report on the dashboard under the Attestation tab and verify it by clicking the Check Attestation button.
There are two steps needed to generate a new RA report, rather than using the default one, which allows you to prove the execution of your code.
You first need to mount the Dstack API socket file to the container by configuring volumes in the Docker Compose file.
In your application, you can generate the RA report using the Dstack SDK, which supports Python, JS, and Go. The user-data
argument allows you to attach your own data to the RA report.
You can implement the above code in your application as an public API that anyone can call to generate a new RA report.
In practice, this is a method to bind the RA report to your application. For example, you can generate a key pair and set the public key as the user-data
. This way, anyone can verify the execution of your application by extract the public key from the RA report and checking the signature with the public key.