Re: [Rpm-maint] [rpm-software-management/rpm] RFE: read sources checksums from the SPEC file and verify them (#463)

2023-04-16 Thread Marcin ZajÄ…czkowski
It would be useful. When an [OpenPGP upstream signature](https://docs.fedoraproject.org/en-US/packaging-guidelines/#_source_file_verification) is not available and one wants to have the checksum verification, it needs to be performed manually in the `%prep` section (similarly to the things

Re: [Rpm-maint] [rpm-software-management/rpm] Verification of PAYLOADDIGESTALT is broken (Issue #2486)

2023-04-16 Thread Daniel Alley
Sure, but in that case it should not look for PAYLOADDIGESTALT at all. Otherwise you'd just be comparing it against a value that it will not match most of the time. -- Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] Verification of PAYLOADDIGESTALT is broken (Issue #2486)

2023-04-16 Thread Demi Marie Obenour
@dralley RPM does not decompress the payload when verifying signatures and digests. That would massively increase its attack surface. Therefore, failing to verify `PAYLOADDIGESTALT` is expected. -- Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] Verification of PAYLOADDIGESTALT is broken (Issue #2486)

2023-04-16 Thread Daniel Alley
@DemiMarie @pmatilai -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/issues/2486#issuecomment-1510417707 You are receiving this because you are subscribed to this thread. Message ID: ___ Rpm-maint

Re: [Rpm-maint] [rpm-software-management/rpm] Verification of PAYLOADDIGESTALT is broken (Issue #2486)

2023-04-16 Thread Daniel Alley
To reproduce: specfile ``` Name: rpm-test Version:0 License:LGPL Release:0 Summary:"" #BuildRequires: %description %build cat > hello-world.sh < ba21f4cb197179798065399a1551af2727e41efe56daed73ce869549b1280dd0 8

[Rpm-maint] [rpm-software-management/rpm] Verification of PAYLOADDIGESTALT is broken (Issue #2486)

2023-04-16 Thread Daniel Alley
There are two components to this 1) `rpm -v --checksig` (also without -v) seems to exclude any digests which fail to verify so long as an equivalent one does verify. This seems to apply even when using `--define "_pkgverify_level all"`. 2) `rpm` appears to fail to verify PAYLOADDIGESTALT in