-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: use sha256 for RPM digest #10272
Conversation
The md5 algorithm is known to be unsafe and FIPS enabled systems do not allow its use for file manifests. The `fpm` tool used to produce rpm and deb packages uses md5 by default. This updates the algorithm to sha256. Resolves: influxdata#10270
📦 Looks like new artifacts were built from this PR. Expand this list to get them here ! 🐯Artifact URLs |
I'm concerned about compatibility with this change. We have people using old versions of RHEL for example, like 6 and 7. Are they compatible with --rpm-digest sha256? |
I went with sha256 instead of sha512 due to a similar concern. As far as RHEL/CentOS support:
CentOS 8
CentOS 7
The D-BUS messages happen with our released RPM as well and I believe because I'm running this in a LXD. |
Sounds good, thanks for the info. The supported platforms doc does show that RHEL 7 is currently the oldest supported version. https://github.com/influxdata/telegraf/blob/master/docs/SUPPORTED_PLATFORMS.md#rhel |
(cherry picked from commit a2302c9)
The md5 algorithm is known to be unsafe and FIPS enabled systems do not
allow its use for file manifests. The
fpm
tool used to produce rpmand deb packages uses md5 by default. This updates the algorithm to
sha256.
Resolves: #10270