about summary refs log tree commit diff
path: root/third_party
diff options
context:
space:
mode:
authorGriffin Smith <grfn@gws.fyi>2020-07-16T02·16-0400
committerglittershark <grfn@gws.fyi>2020-07-16T21·40+0000
commit4468e411fd40945f96fb473b8574721d1dfd0f0b (patch)
tree65a28ce517a5bd6199b3c095b9bb8c01f9f3c4bd /third_party
parent3999439fbb3d455def815fc873aceea8c9b7d117 (diff)
feat(3p/nix): Add VerifyStore r/1330
Change-Id: I6a0596e986867e94857da461c746a80750830f7b
Reviewed-on: https://cl.tvl.fyi/c/depot/+/1206
Tested-by: BuildkiteCI
Reviewed-by: tazjin <mail@tazj.in>
Diffstat (limited to 'third_party')
-rw-r--r--third_party/nix/src/proto/worker.proto14
1 files changed, 14 insertions, 0 deletions
diff --git a/third_party/nix/src/proto/worker.proto b/third_party/nix/src/proto/worker.proto
index ad1810b4d5..d983b261c8 100644
--- a/third_party/nix/src/proto/worker.proto
+++ b/third_party/nix/src/proto/worker.proto
@@ -82,6 +82,9 @@ service Worker {
   // Optimise the disk space usage of the Nix store by hard-linking files
   // with the same contents.
   rpc OptimiseStore(google.protobuf.Empty) returns (google.protobuf.Empty);
+
+  // Check the integrity of the Nix store
+  rpc VerifyStore(VerifyStoreRequest) returns (VerifyStoreResponse);
 }
 
 enum HashType {
@@ -240,3 +243,14 @@ message DerivationOutputNames {
 message HashPart {
   string hash_part = 1;
 }
+
+message VerifyStoreRequest {
+  bool repair = 1;
+  // TODO(grfn): Remove double-negative
+  bool dontCheckSigs = 2;
+}
+
+message VerifyStoreResponse {
+  // True if errors remain (???)
+  bool errors = 1;
+}