Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-29765

Packages signed with weak cipher causing issues with FIPS

    XMLWordPrintable

Details

    Description

      We recently started testing deployments of SLES 15 SP4 and we found out that MariaDB repo doesn't work when FIPS is enabled on the machine.

      The following steps can be taken to reproduce the issue.
      1. Deploy a machine with SLES 15 SP4
      2. Add MariaDB package repository script from https://mariadb.com/kb/en/installing-mariadb-with-zypper/#using-the-mariadb-package-repository-setup-script
      3. Enable FIPS mode on SLES using steps documented at https://www.suse.com/support/kb/doc/?id=000019432
      4. Run command zypper ref on terminal.

      Error message we get from doing the above steps looks something like below.

      testsles15sp4vm:/tmp # zypper ref
       
      Note: The rpm database seems to contain old V3 version gpg keys which are meanwhile obsolete and
      considered insecure:
       
              gpg-pubkey-1bb943db-511147a9
       
          To see details about a key call 'rpm -qi GPG-PUBKEY-VERSION'.
       
          Unless you believe the key in question is still in use, you can remove it from the rpm database
          calling 'rpm -e GPG-PUBKEY-VERSION'.
       
      Repository 'SLE-Module-Basesystem15-SP4-Pool' is up to date.                                                                                                                                                         
      Repository 'SLE-Module-Basesystem15-SP4-Updates' is up to date.                                                                                                                                                      
      Repository 'SLE-Module-Containers15-SP4-Pool' is up to date.                                                                                                                                                         
      Repository 'SLE-Module-Containers15-SP4-Updates' is up to date.                                                                                                                                                      
      Repository 'SLE-Module-HPC15-SP4-Pool' is up to date.                                                                                                                                                                
      Repository 'SLE-Module-HPC15-SP4-Updates' is up to date.                                                                                                                                                             
      Repository 'SLE-Module-Legacy15-SP4-Pool' is up to date.                                                                                                                                                             
      Repository 'SLE-Module-Legacy15-SP4-Updates' is up to date.                                                                                                                                                          
      Repository 'SLE-Module-Packagehub-Subpackages15-SP4-Updates' is up to date.                                                                                                                                          
      Repository 'SLE-Module-Packagehub-Subpackages15-SP4-Pool' is up to date.                                                                                                                                             
      Repository 'SLE-Module-Public-Cloud15-SP4-Pool' is up to date.                                                                                                                                                       
      Repository 'SLE-Module-Public-Cloud15-SP4-Updates' is up to date.                                                                                                                                                    
      Repository 'SLE-Module-Server-Applications15-SP4-Pool' is up to date.                                                                                                                                                
      Repository 'SLE-Module-Server-Applications15-SP4-Updates' is up to date.                                                                                                                                             
      Repository 'SLE-Module-Web-Scripting15-SP4-Pool' is up to date.                                                                                                                                                      
      Repository 'SLE-Module-Web-Scripting15-SP4-Updates' is up to date.                                                                                                                                                   
      Repository 'SLE-Product-SLES15-SP4-Pool' is up to date.                                                                                                                                                              
      Repository 'SLE-Product-SLES15-SP4-Updates' is up to date.                                                                                                                                                           
      Repository 'SUSE-PackageHub-15-SP4-Backports-Pool' is up to date.                                                                                                                                                    
      Repository 'SUSE-PackageHub-15-SP4-Pool' is up to date.                                                                                                                                                                                                                                                                                                          
      Looking for gpg key ID 1BB943DB in cache /var/cache/zypp/pubkeys.
      Repository mariadb_repository_sles15 does not define additional 'gpgkey=' URLs.
      Warning: File 'repomd.xml' from repository 'mariadb_repository_sles15' is signed with an unknown key 'CBCB082A1BB943DB'.
       
          Note: Signing data enables the recipient to verify that no modifications occurred after the data
          were signed. Accepting data with no, wrong or unknown signature can lead to a corrupted system
          and in extreme cases even to a system compromise.
       
          Note: File 'repomd.xml' is the repositories master index file. It ensures the integrity of the
          whole repo.
       
          Warning: We can't verify that no one meddled with this file, so it might not be trustworthy
          anymore! You should not continue unless you know it's safe.
       
      File 'repomd.xml' from repository 'mariadb_repository_sles15' is signed with an unknown key 'CBCB082A1BB943DB'. Continue? [yes/no] (no)
      

      Looking further why this is happening only with MariaDB and not other third party repositories we have, we noticed this must be weak signature that is probably being blocked with FIPS now.
      MariaDB is still using DSA/SHA1 for signing the packges while all other repositories we have on the system are using SHA256 at minimum.

      rpm -qip ./MariaDB-server-10.5.17-1.x86_64.rpm
      Name        : MariaDB-server
      Version     : 10.5.17
      Release     : 1
      Architecture: x86_64
      Install Date: (not installed)
      Group       : Applications/Databases
      Size        : 132794741
      License     : GPLv2
      Signature   : DSA/SHA1, Fri Aug 12 00:08:48 2022, Key ID cbcb082a1bb943db
      
      

      rpm -qip ./emacs-nox-27.2-150400.1.49.x86_64.rpm
      Name        : emacs-nox
      Version     : 27.2
      Release     : 150400.1.49
      Architecture: x86_64
      Install Date: (not installed)
      Group       : Productivity/Text/Editors
      Size        : 15789584
      License     : GPL-3.0-or-later
      Signature   : RSA/SHA256, Thu May 12 03:40:45 2022, Key ID 70af9e8139db7c82
      

      Are there existing tickets or plans on fixing this issue? We need FIPS for compliance reasons and can't deploy using SLES15 SP4 for this reason.

      Attachments

        Activity

          People

            dbart Daniel Bartholomew
            amitnarkhede Amit Narkhede
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.