robur-coop / albatross

Albatross: orchestrate and manage MirageOS unikernels with Solo5
ISC License
142 stars 17 forks source link

feature request: retrieve the SHA256 of a running unikernel #61

Closed hannesm closed 3 years ago

hannesm commented 3 years ago

at the moment, there is info for a unikernel which returns the unikernel configuration without the unikernel image itself. and there is get that returns the entire configuration (including image).

in the light of reproducible builds etc. it'd be great to get the uniquely identified sha-256 hash of the running (and uncompressed) binary of a unikernel. this would ease inventory management. the hash could be computed upon unikernel startup (from the uncompressed data dumped to disk) to avoid re-computing the hash on every request.

I'd appreciate it being part of the info subcommand (meaning revising the Unikernel.config record and ASN grammar -- but note that it should not be provided by albatrossclient*, but instead computed by the server! so eventually the get and info subcommands should use some other data structure than the create/force-create subcommands)