I’ve been investigating how to keep rubust, reliable and auditable the handling of my torizon-based application.
The docker images are pushed to a docker registry and an unique sha256 is generated. This sha256 is pinned to the image in the docker-compose.yml when it’s converted in its canonical format.
This is ok because it cannot be modified anymore and so the mechanism is robust, reproducible and auditable.
For the docker-compose.yml file itself (which is the real application - or, better, its recipe), the situation seems not so robust.
If I load it into torizon cloud, it asks me for a name and a release number; the web UI of the portal shows me an hash (that I can copy to the clipboard).
I suppose that this is not the hash of the file itself (that I can calculate with sha256 command) but it’s the hash of the blob containing (at least): the file + the name + the version.
In this way it assures me that it has not been changed in any way.
Can someone from Toradex confirm this?
I would expect that this is the same concept that I have if I publish my docker-compose.yml to container registry with docker compose publish command.
But, how can I pin this hash to the docker-compose.yml itself (like what I described above for images) so that I can verify it has not been altered after it has been downloaded to my device?
I mean: I would like saying “download the docker-compose.yml with this hash/sha” and being able to check on the SoM itself the hash/sha of the delivered docker-compose.yml
Does what I write make sense to Toradex?
Is there a way to get this behavior?


