From 7271a0cc2fd0f2ba2ad9a3308e3d9f38b194f258 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Mon, 1 Apr 2024 23:24:51 +0100 Subject: Add check for known hash when responding to /nar requests --- nar-herder/server.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nar-herder/server.scm b/nar-herder/server.scm index b3418cc..fa0b2f0 100644 --- a/nar-herder/server.scm +++ b/nar-herder/server.scm @@ -401,7 +401,8 @@ (uri-encode filename))))) #f))) (let ((cached-narinfo-file - (and compression-symbol + (and narinfo ; must be a known hash + compression-symbol ; must be a known compression ;; Check that the filename given in the ;; request matches the narinfo store-path (string=? filename -- cgit v1.2.3