OpenPGP specifies that plain text should use CR LF for newlines. By doing so, it becomes possible to include the hashes directly in the .asc file.
(Currently untested, looking for Concept ACKs)
OpenPGP specifies that plain text should use CR LF for newlines. By doing so, it becomes possible to include the hashes directly in the .asc file.
(Currently untested, looking for Concept ACKs)
<!--e57a25ab6845829454e8d69fc972939a-->
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
<!--006a51241073e994b41acfe9ec718e94-->
For detailed information about the code coverage, see the test coverage report.
<!--021abf342d371248e50ceaed478a90ca-->
See the guideline for information on the review process. A summary of reviews will appear here.
173 | @@ -174,6 +174,10 @@ basenameify_SHA256SUMS() { 174 | sed -E 's@(^[[:xdigit:]]{64}[[:space:]]+).+/([^/]+$)@\1\2@' 175 | } 176 | 177 | +unix2dos() {
Maybe refer to https://www.rfc-editor.org/rfc/rfc4880.html section 5.2.4 here.
Done
By doing so, it becomes possible to include the hashes directly in the .asc file.
Not sure. Wasn't the goal the exact opposite, so that it is easier to cat the hashes once and as many signatures as one wants?
Not sure. Wasn't the goal the exact opposite, so that it is easier to cat the hashes once and as many signatures as one wants?
You can still do that with the content in the file. Furthermore, this change does not require us to produce an attached SHA256SUMS.asc, it only enables us to do so if desired.
OpenPGP specifies that plain text should use CR LF for newlines.
By doing so, it becomes possible to include the hashes directly in the .asc file.
<!--9cd9c72976c961c55c7acef8f6ba82cd-->
it only enables us to do so if desired.
It would be good to list at least one benefit, otherwise the benefits of this change are unclear.
It would be good to list at least one benefit, otherwise the benefits of this change are unclear.
Having a single file to download for the signatures is simpler for end users.
It seems this isn't enough - OpenPGP explicitly identifies the data as either binary or text: https://datatracker.ietf.org/doc/html/rfc4880#section-5.2.1
So I guess the only way to support a combined file would be to use --clearsign, detach it manually, then reattach them all together. And then they would only be valid attached. :(
Apparently stripping the final newline would fix this, but a new issue arose: if the signature is detached, it will only verify a pre-canonicalized (DOS-encoded and final newline stripped) file. Some sha256sum -c tools seem to not like this (they treat the \r as part of the filename and can't find it). GPG has a --textmode option that seems to suggest it addresses this, but I can't seem to get it to work.
So IF we're okay with the combined file ONLY being clearsign format (which can then be UNIX newlines again), I can fix this PR. Or someone could spend more time to figure out why --textmode doesn't work as expected.
The UX for downloading two verification files sucks IMO. I think we should just go for the clearsign option, even if it's exclusive.
Thoughts?
The UX for downloading two verification files sucks IMO. I think we should just go for the clearsign option, even if it's exclusive.
Thoughts?
We have ./contrib/verify-binaries/verify.py to make verification UX better. I just reviewed a PR and made a PR to it that makes it able to let a single file be downloaded & verified. Changes to here require changes to that script, right?
<!--2e250dc3d92b2c9115b66051148d6e47-->
🤔 There hasn't been much activity lately and the CI seems to be failing.
If no one reviewed the current pull request by commit hash, a rebase can be considered. While the CI failure may be a false positive, the CI hasn't been running for some time, so there may be a real issue hiding as well. A rebase triggers the latest CI and makes sure that no silent merge conflicts have snuck in.
Are you still working on this? There is outstanding review feedback, asking if this is a breaking change in the verification steps? #29147 (comment)
The UX for downloading two verification files sucks IMO. I think we should just go for the clearsign option, even if it's exclusive.
See also: https://www.gnupg.org/documentation/manuals/gnupg/Operational-GPG-Commands.html :
Note: When verifying a cleartext signature, gpg verifies only what makes up the cleartext signed data and not any extra data outside of the cleartext signature or the header lines directly following the dash marker line. The option --output may be used to write out the actual signed data, but there are other pitfalls with this format as well. It is suggested to avoid cleartext signatures in favor of detached signatures.
Closing for now due to lack of progress. Leave a comment if you want this reopened.