fluent-bit: td-agent-bit won't install on RHEL 8 / FIPS

Bug Report

Describe the bug td-agent-bit won’t install on a Redhat/Centos 8 machine in FIPS mode, after following installations instructions at: https://docs.fluentbit.io/manual/installation/linux/redhat-centos

To Reproduce

Dependencies resolved.
=============================================================================================================================================================================================================
 Package                                              Architecture                               Version                                              Repository                                        Size
=============================================================================================================================================================================================================
Installing:
 td-agent-bit                                         x86_64                                     1.7.8-1                                              td-agent-bit                                     7.0 M
Installing dependencies:
 compat-openssl10                                     x86_64                                     1:1.0.2o-3.el8                                       appstream                                        1.1 M
 libpq                                                x86_64                                     13.2-1.el8                                           appstream                                        197 k
 make                                                 x86_64                                     1:4.2.1-10.el8                                       baseos                                           498 k

Transaction Summary
=============================================================================================================================================================================================================
Install  4 Packages

Total download size: 8.8 M
Installed size: 33 M
Is this ok [y/N]: y
Downloading Packages:
(1/4): libpq-13.2-1.el8.x86_64.rpm                                                                                                                                           1.6 MB/s | 197 kB     00:00    
(2/4): make-4.2.1-10.el8.x86_64.rpm                                                                                                                                          3.2 MB/s | 498 kB     00:00    
(3/4): compat-openssl10-1.0.2o-3.el8.x86_64.rpm                                                                                                                              7.2 MB/s | 1.1 MB     00:00    
(4/4): td-agent-bit-1.7.8-1.x86_64.rpm                                                                                                                                        11 MB/s | 7.0 MB     00:00    
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                                        7.5 MB/s | 8.8 MB     00:01     
Running transaction check
Transaction check succeeded.
Running transaction test
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: Transaction test error:
  package td-agent-bit-1.7.8-1.x86_64 does not verify: no digest

Expected behavior td-agent-bit would install successfully, as reported by yum/dnf.

Your Environment

  • Version used: Attempted to install 1.7.8-1.x86_64
  • Configuration: Unconfigured, other than repo file as described in configuration instructions
  • Operating System and version: RHEL 8.4 running in FIPS mode
  • Filters and plugins: N/A

Additional context I suspect this is related to FIPS mode which requires strong hash checksums to be present to validate the packages before install. I suspect SHA256 signatures are not being provided for the packages. FIPS mode restricts weak checksums from being used to validate downloaded packages. FIPS mode cannot be disabled due to compliance reasons and is officially supported by Redhat.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 34 (13 by maintainers)

Most upvoted comments

I’m actually looking at sorting this on https://github.com/fluent/fluent-bit/issues/3753 which is more general improvements to the release process and will include the GPG signing once fully complete.

@JungleGenius the old RPMs are all still there but just not indexed in the metadata for the repo - basically createrepo is running for just the latest RPM rather than the directory which is another thing I’m hoping to resolve. You can grab the RPM directly though for anyone trying to figure that out: wget https://packages.fluentbit.io/centos/7/x86_64/td-agent-bit-1.7.9-1.x86_64.rpm

Unfortunately, I am unable to install 1.8.12 on RHEL 8.3 with FIPS enabled:

[root@host yum.repos.d]# sudo dnf install td-agent-bit --repo td-agent-bit-official
Updating Subscription Management repositories.
Unable to read consumer identity

This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.

Repository rhui-microsoft-azure-rhel8 is listed more than once in the configuration
Last metadata expiration check: 0:00:37 ago on Mon 21 Feb 2022 01:11:49 PM UTC.
Dependencies resolved.
===========================================================================================================================================================================
 Package                                  Architecture                       Version                               Repository                                         Size
===========================================================================================================================================================================
Installing:
 td-agent-bit                             x86_64                             1.8.12-1                              td-agent-bit-official                             7.4 M

Transaction Summary
===========================================================================================================================================================================
Install  1 Package

Total download size: 7.4 M
Installed size: 30 M
Is this ok [y/N]: y
Downloading Packages:
td-agent-bit-1.8.12-1.x86_64.rpm                                                                                                           590 kB/s | 7.4 MB     00:12
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                      590 kB/s | 7.4 MB     00:12
Running transaction check
Transaction check succeeded.
Running transaction test
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: Transaction test error:
  package td-agent-bit-1.8.12-1.x86_64 does not verify: no digest

With definition of repository td-agent-bit-official:

[td-agent-bit-official]
name = TD Agent Bit
baseurl = https://packages.fluentbit.io/centos/7/$basearch/
gpgcheck=1
gpgkey=https://packages.fluentbit.io/fluentbit.key
enabled=1

As defined here: https://docs.fluentbit.io/manual/installation/linux/redhat-centos#configure-yum

I am able to install 1.8.12 without warning about missing digest:

sudo dnf info td-agent-bit-1.8.12-1.x86_64
Installed Packages
Name         : td-agent-bit
Version      : 1.8.12
Release      : 1
Architecture : x86_64
Size         : 30 M
Source       : td-agent-bit-1.8.12-1.src.rpm
Repository   : @System
From repo    : td-agent-bit
Summary      : Fast data collector for Linux
License      : Apache v2.0
Description  : Fluent Bit is a high performance and multi platform Log Forwarder.