You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For example, copying the same to a local chroot store does fail:
$ nix copy --to ./store $(nix-build)
error: cannot add path '/nix/store/f2zx202h8skav3zaq7ajrg5bnm1q54sq-hello' because it lacks a signature by a trusted key
Describe the bug
nix copy --to s3://
seems to happily copy unsigned paths to a bucket. Which is very frustrating as that does not align with the docs ofnix copy
Especially when you accidentally mis-type
secret-key
param. I did:but
secret-key-file
should've beensecret-key
. Instead of failing to upload an unsigned path;nix copy
silently copied over an unsigned path!Steps To Reproduce
Expected behavior
Nix should refuse copying unsigned store paths to an S3 bucket as
--no-check-sigs
has not been passed.Metadata
Additional context
nix/src/libstore/binary-cache-store.cc
Line 131 in db7577a
checkSigs
argument passed to the function? We should probably check something hereChecklist
Add 👍 to issues you find important.
The text was updated successfully, but these errors were encountered: