enarx-archive / sev

Library for AMD SEV
Apache License 2.0
20 stars 15 forks source link

Mount /var/cache/amd-sev/ into the GHA runner #25

Closed connorkuehl closed 3 years ago

connorkuehl commented 4 years ago

This machine is a CI machine and a developer machine. The CI invalidates any cached certificate chains. For this to scale beyond 1 developer, we need the CI to leave the system in the same state that it found it in.

After this is fixed, developers should remove their home-dir cached chain: rm ~/.cache/amd-sev/chain and in most cases, can stop caching it there manually entirely.

Ultimately the goal here is to start caching it in a system-wide location rather than expecting developers to manually cache this in their home dir.

haraldh commented 4 years ago

So, here is my thought of a user experience:

search:

if no cache file was found, perform the expensive operation and create one, where the app has permissions to do so.

connorkuehl commented 4 years ago

I'm worried that re-entering the search would only encourage users to leave redundant certificate chains on the system.

I think if we only leave a certificate chain in /var/amd-sev/chain by convention, the certificate chain management will be entirely transparent to developers and CI.