Re: Fedora Copr builders updated to Fedora 38

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Pavel,

On Wed, 14 Jun 2023 11:27:35 +0200,
Pavel Raiskup wrote:
> On úterý 13. června 2023 16:57:42 CEST Neal H. Walfield wrote:
> > On Thu, 08 Jun 2023 21:37:09 +0200,
> > Ondřej Budai wrote:
> > > RPM Sequoia's crypto policies can be configured, so you should be able to re-enable SHA-1. However, this would
> > > be a global change, not only for EL6... See
> > > https://docs.rs/sequoia-policy-config/latest/sequoia_policy_config/#hash-functions
> > > ...
> > > On Thu, Jun 8, 2023 at 5:42 PM Pavel Raiskup <praiskup@xxxxxxxxxx> wrote:
> > > 
> > >  Hello maintainers!
> > > 
> > >  Copr builders have been updated to Fedora 38 today (some old builders
> > >  might still be running F37 ATM, but when they finish the task(s) they
> > >  work on, they will be deleted). Our testsuite is passing just fine, so
> > >  you _should_ be fine too :-).  Please let us know if you have some
> > >  troubles.
> > > 
> > >  There was one important change in Fedora 38 - RPM switched to the
> > >  Sequoia crypto backend.  It refuses SHA-1 in crypto;  which basically
> > >  disallows Mock to properly check EL6 GPG signatures.  To allow further
> > >  builds, we switched to gpgcheck=0 for all epel-6 chroots.  If you know a
> > >  better work-around, let me know.
> > 
> > I find this behavior surprising.  The default policy as set by
> > fedora-crypto-policies is for rpm-sequoia is to accept SHA-1 (and
> > DSA-1024, ...):
> > 
> >   https://gitlab.com/redhat-crypto/fedora-crypto-policies/-/blob/master/policies/FEDORA38.pol#L75
> > 
> > What policy are you using?
> 
> I was wrong.  The problem was *not* with the EPEL-6 signatures, but with
> CentOS 6 signatures.  It is a bit harder to analyse, as
> `sq-keyring-linter` is silent for that one:
> 
>     $ sq-keyring-linter < /usr/share/distribution-gpg-keys/centos/RPM-GPG-KEY-CentOS-6
>     $ echo $?
>     0

Thanks for investigating, I opened an issue on our issue tracker about
it here:

  https://gitlab.com/sequoia-pgp/keyring-linter/-/issues/20

Using https://www.centos.org/keys/RPM-GPG-KEY-CentOS-6, it appears
that the CentOS 6 key expired in July 2021.  The linter checks if a
certificate is invalid under the standard policy, but valid under the
standard policy + SHA-1.  Since the certificate is expired, it's
considered invalid in both cases, and it concludes that the
certificate doesn't have any issues.  Using faketime to examine the
certificate when it wasn't expired, we see:

  $ faketime 2021-01-01 sq-keyring-linter RPM-GPG-KEY-CentOS-6
  Certificate 0946FCA2C105B9DE is not valid under the standard policy: No binding signature at time 2020-12-31T23:00:00Z
  Certificate 0946FCA2C105B9DE contains a User ID ("CentOS-6 Key (CentOS 6 Official Signing Key) <centos-6-key@xxxxxxxxxx>") protected by SHA-1
  Examined 1 certificate.
    0 certificates are invalid and were not linted. (GOOD)
    1 certificate was linted.
    1 of the 1 certificates (100%) has at least one issue. (BAD)
  0 of the linted certificates were revoked.
    0 of the 0 certificates has revocation certificates that are weaker than the certificate and should be recreated. (GOOD)
  0 of the linted certificates were expired.
  1 of the non-revoked linted certificate has at least one non-revoked User ID:
    1 has at least one User ID protected by SHA-1. (BAD)
    1 has all User IDs protected by SHA-1. (BAD)
  0 of the non-revoked linted certificates have at least one non-revoked, live subkey:
    0 have at least one non-revoked, live subkey with a binding signature that uses SHA-1. (GOOD)
  0 of the non-revoked linted certificates have at least one non-revoked, live, signing-capable subkey:
    0 certificates have at least one non-revoked, live, signing-capable subkey with a strong binding signature, but a backsig that uses SHA-1. (GOOD)

Neal
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux