secrets create
and secrets cat
does not Provide Bitwise Reproductibility for non-ASCII Files
#374
Labels
bug
Something isn't working
Describe the bug
I've been dogfooding PK in delegating the
.gnupg
directory. You can see our progress here: https://github.com/MatrixAI/nixpkgs-matrix-private/pull/16#issuecomment-2675473317.Starting from my SOURCE computer:
Here's the md5sum of the
.gnupg
:Egressing to the TARGET computer:
Here is the target md5sum.
You can see that 3 files do not have matching hashes:
The correct files are all ASCII text according to
file
.This tells me there isn't sufficient randomised testing with binary data for the commands. We need to use fastcheck for this.
To Reproduce
secrets create
to ingress a binary file.secrets cat
to egress a binary filemd5sum
hash difference.Expected behavior
They should be bitwise reproducible.
Platform
Linux matrix-framework-13-ryzen-7040 6.12.8 #1-NixOS SMP PREEMPT_DYNAMIC Thu Jan 2 09:34:26 UTC 2025 x86_64 GNU/Linux
Additional context
Notify maintainers
@aryanjassal @tegefaulkes
The text was updated successfully, but these errors were encountered: