Hello!
I am wondering about the potential security risks of having the remote HTTP cache publicly available.
Regarding how the files are used and stored on the cache, is the following correct?
1. Output files are stored in the /cas directory and are named with the hash of their content.
2. ActionResults are protobuf files stored under the /ac directory and are named with the hash of their action inputs. The content of those files specifies the output files that were generated in the build process.
That's how Bazel can identify whether the result of an action is in the cache and reuse the output files, right?
If that's the case, what happens if a malicious actor is able to change the content of an output file or edit an ActionResult to reference an arbitrary output file? Is Bazel going to "reuse" it and potentially execute arbitrary code?
Thanks!
--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/b44ae2f0-e09a-4180-93f5-87d0b4d4b832n%40googlegroups.com.