Closed connorkuehl closed 3 years ago
So, here is my thought of a user experience:
search:
goto search
if no cache file was found, perform the expensive operation and create one, where the app has permissions to do so.
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.
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.
sevctl
is packaged in copr repo for use in Enarx kickstart/var/cache/amd-sev/:/var/cache/amd-sev
into the GHA runner containersev
tests stop invalidating cached chainenarx-keepldr
CI stops caching its own chain to~/.cache/var/amd-sev/chain
(these steps should be removed entirely from CI)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.