feat(tvix/store): Add CAHash validation

Validation is done inside ingest_nar_and_hash and
is used by Fetch::NAR and the nar-bridge.

Change-Id: I7e2be4cc13d2447035f1e5a444f44b62339988bf
Reviewed-on: https://cl.tvl.fyi/c/depot/+/12836
Tested-by: BuildkiteCI
Reviewed-by: flokli <flokli@flokli.de>
This commit is contained in:
Vova Kryachko 2024-11-19 17:56:16 -05:00 committed by Vladimir Kryachko
parent ae76eaa761
commit 8ef9ba82a8
9 changed files with 300 additions and 62 deletions

3
tvix/Cargo.lock generated
View file

@ -4792,8 +4792,10 @@ dependencies = [
"ed25519",
"ed25519-dalek",
"futures",
"hex-literal",
"hyper-util",
"lru",
"md-5",
"mimalloc",
"nix-compat",
"parking_lot",
@ -4809,6 +4811,7 @@ dependencies = [
"serde_json",
"serde_qs",
"serde_with",
"sha1",
"sha2",
"tempfile",
"thiserror",