-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
secrets create
and secrets cat
does not Provide Bitwise Reproductibility for non-ASCII Files
#374
Comments
This tells me there isn't sufficient randomised testing with binary data for the commands. We need to use fastcheck for this. |
Assigning to you @aryanjassal cause this is really needs to be fixed as part of the work with #249 #248 |
Considering that we want to remove the |
Yeah. I will make a list of final secrets commands that we will have so we have a good idea of the final goal. Reviewing the code, I can see that ingress and egress commands don't actually have a sufficient amount of fast-check applied to them, so I'll go through them and update them all to use fast check when I next work on Polykey. |
Now is #264 relevant too? |
#264 relates to having progress updates to streaming calls. This issue involves ensuring binary data transmission is bit-by-bit reproducible, like how ascii is using the commands. However, I do agree that the streaming progress issue has been open for far too long. I will prioritise that after I resolve the current unix command issues. |
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: