mirror of
https://github.com/NixOS/nix
synced 2025-06-25 06:31:14 +02:00
Merge pull request #12976 from picnoir/pic/multisign
store URI: introduce multiple signatures support
This commit is contained in:
commit
3f3fd2c94b
5 changed files with 36 additions and 5 deletions
|
@ -110,3 +110,13 @@ nix store verify --store "$TEST_ROOT"/store0 -r "$outPath2" --trusted-public-key
|
|||
|
||||
# Content-addressed stuff can be copied without signatures.
|
||||
nix copy --to "$TEST_ROOT"/store0 "$outPathCA"
|
||||
|
||||
# Test multiple signing keys
|
||||
nix copy --to "file://$TEST_ROOT/storemultisig?secret-keys=$TEST_ROOT/sk1,$TEST_ROOT/sk2" "$outPath"
|
||||
for file in "$TEST_ROOT/storemultisig/"*.narinfo; do
|
||||
if [[ "$(grep -cE '^Sig: cache[1,2]\.example.org' "$file")" -ne 2 ]]; then
|
||||
echo "ERROR: Cannot find cache1.example.org and cache2.example.org signatures in ${file}"
|
||||
cat "${file}"
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue