Skip to content

PowerShell package in yum repository needs to have a payload digest. #15866

Closed

Description

Prerequisites

Steps to reproduce

I am experiencing a problem when attempting to install PowerShell from the Microsoft yum repo when using FIPS mode on RedHat 8.4. An additional SHA256 digest needs to be added to the package so that FIPS enabled systems running Redhat 8+ can validate the payload of the package.

https://access.redhat.com/solutions/4460971

Expected behavior

yum install powershell

Powershell would then be installed

Actual behavior

yum install powershell

Powershell is not installed, failing validation.

Error details

Error: Transaction test error:
  package powershell-7.1.3-1.centos.8.x86_64 does not verify: no digest

[root@test75-rhel8 ~]# rpm --checksig -v /var/cache/dnf/packages-microsoft-com-prod-37360e73ce94b4be/packages/powershell-7.1.3-1.centos.8.x86_64.rpm
/var/cache/dnf/packages-microsoft-com-prod-37360e73ce94b4be/packages/powershell-7.1.3-1.centos.8.x86_64.rpm:
    Header V4 RSA/SHA256 Signature, key ID be1229cf: OK
    Header SHA1 digest: OK
    Payload SHA256 digest: NOTFOUND
    V4 RSA/SHA256 Signature, key ID be1229cf: OK
    MD5 digest: NOTFOUND

Environment data

Redhat Enterprise Linux v8+ or CentOS v8+ when running in FIPS mode

Visuals

Capture

Activity

  1. added
    Needs-Triage
    on Aug 4, 2021
  2. added
    WG-Maintainers-Build
    Issue-Question
    on Aug 4, 2021
  3. iSazonov commented on Aug 4, 2021

    @iSazonov
    Collaborator

    Perhaps #15678 has fixed this.

    /cc Aditya Patwardhan (@adityapatwardhan)

  4. agentoranger commented on Sep 3, 2021

    @agentoranger
    Author

    I had a few minutes of free time this morning, so I hopped back into that server and attempted to install PowerShell using yum. I can see that the digest issue is still occurring.

    image

  5. ghost added
    In-PR
    on Feb 17, 2022
  6. ghost removed
    Needs-Triage
    on Apr 21, 2022
  7. ghost removed
    In-PR
    on Apr 21, 2022
  8. ghost added
    Resolution-Fixed
    on Apr 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-QuestionResolution-FixedWG-Maintainers-Build

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions