mattermost / desktop

Mattermost Desktop application for Windows, Mac and Linux
Apache License 2.0
2.03k stars 829 forks source link

[Bug]: Package fails to install on EL8/9 when fips mode enabled. #3190

Open jonathan-dove opened 2 weeks ago

jonathan-dove commented 2 weeks ago

Checks before filing an issue

Mattermost Desktop Version

5.9

Operating System

Rocky 9

Mattermost Server Version

No response

Steps to reproduce

sudo yum install https://releases.mattermost.com/desktop/5.9.0/mattermost-desktop-5.9.0-linux-x86_64.rpm

Expected behavior

Installation of the program

Observed behavior

error: unpacking of archive failed on file /opt/Mattermost/LICENSE.electron.txt;674218ee: cpio: Digest mismatch error: mattermost-desktop-5.9.0-linux-x86_64: install failed

Log Output

None to report as it is a packaging issue

Additional Information

This is to the rpm packages still using md5 digests. Which is not supported on el8+ with fips policies in place. (sha256 digests are required)

jonathan-dove commented 2 weeks ago

fpm [ "--rpm-digest=sha256"] looks to be needed to be added to the build process for rpms, but I am not familiar enough with electron to know how to do so properly.