Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-152461

Return NotTrusted importing non-allowed keys

Linking RHIVOS CVEs to...Migration: Automation ...Sync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • rhel-10.3
    • rhel-10.1
    • rust-rpm-sequoia
    • None
    • No
    • Important
    • rhel-security-crypto-spades
    • 0
    • False
    • False
    • Hide

      None

      Show
      None
    • Yes
    • None
    • Bug Fix
    • Hide
      Cause:
      Consequence:
      Fix:
      Result:
      Show
      Cause: Consequence: Fix: Result:
    • Proposed
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      What were you trying to do that didn't work?

      When algorithm is disabled in cryptographic policy and we attempt to import the key of this type into RPM DB, it fails as it can not verify the signature made over the certificate.

      The previous change RHEL-144414 did modify just how the signatures of disabled algorithms were verified and we need to revisit if we need also the change on key import.

      The following WIP PR implements the discussed change:

      https://github.com/rpm-software-management/rpm-sequoia/pull/109

      What is the impact of this issue to you?

      Please provide the package NVR for which the bug is seen:

      How reproducible is this bug?:

      Steps to reproduce

      1. Configure system to disable RSA algorithm in cryptographic policies (Assume Q day)
      2. Import the RSA key into RPM DB: rpmkeys --import /.../RSA.key

      Expected results

      Rpm lib returns NonTrusted error, which could be interpreted in different way than the general failure.

      Actual results

      General failure importing key.

              jjelen@redhat.com Jakub Jelen
              jjelen@redhat.com Jakub Jelen
              Jakub Jelen Jakub Jelen
              Ondrej Moris Ondrej Moris
              Mirek Jahoda Mirek Jahoda
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated: