I want to split this issue from #133 to discuss about improvements to Action Cache verification specifically.
As folks are already aware, Action Cache is a Key-Value store that maps a cache key (i.e, an Action's digest) to an Action Result message, which in turn points to the outputs of said action. Currently, there is no way to validate if the given Key-Value mapping is "correct". To put this differently, clients kinda have to "blindly" trust the content of the Action Cache, and server implementations often secure the Action Cache by enforcing write (UpdateActionCache) permissions to only trusted clients.
As the next major step for remote-api v2, I want to explore the solutions where we can increase the trust for Action Cache entries for multi-tenancy use cases.
Specifically, I want to enable a client to trust and use Action Cache entries created by a third party through verification. There are a few prior arts, such as:
- Git commit signing
- OCI container signing with SigStore
- Nix packaging shared cache
- Go Module Checksum database
- Google OSS Rebuild
I want to split this issue from #133 to discuss about improvements to Action Cache verification specifically.
As folks are already aware, Action Cache is a Key-Value store that maps a cache key (i.e, an Action's digest) to an Action Result message, which in turn points to the outputs of said action. Currently, there is no way to validate if the given Key-Value mapping is "correct". To put this differently, clients kinda have to "blindly" trust the content of the Action Cache, and server implementations often secure the Action Cache by enforcing write (UpdateActionCache) permissions to only trusted clients.
As the next major step for remote-api v2, I want to explore the solutions where we can increase the trust for Action Cache entries for multi-tenancy use cases.
Specifically, I want to enable a client to trust and use Action Cache entries created by a third party through verification. There are a few prior arts, such as: