RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2144737 - vault interoperability with older RHEL systems is broken
Summary: vault interoperability with older RHEL systems is broken
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: ipa
Version: 8.8
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Trivino
QA Contact: ipa-qe
URL:
Whiteboard:
Depends On:
Blocks: 2144736 2148255
TreeView+ depends on / blocked
 
Reported: 2022-11-22 07:25 UTC by Florence Blanc-Renaud
Modified: 2023-05-16 09:30 UTC (History)
8 users (show)

Fixed In Version: ipa-4.9.10-8.module+el8.8.0+17351+9a3fb056
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2148255 (view as bug list)
Environment:
Last Closed: 2023-05-16 08:29:08 UTC
Type: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Fedora Pagure freeipa issue 9259 0 None None None 2022-11-22 07:26:58 UTC
Red Hat Issue Tracker FREEIPA-9026 0 None None None 2022-11-22 07:47:16 UTC
Red Hat Issue Tracker RHELPLAN-140125 0 None None None 2022-11-22 07:47:42 UTC
Red Hat Product Errata RHBA-2023:2794 0 None None None 2023-05-16 08:29:42 UTC

Description Florence Blanc-Renaud 2022-11-22 07:25:28 UTC
Cloned from upstream: https://pagure.io/freeipa/issue/9259

### Issue
AES-128-CBC was recently enabled as default wrapping algorithm for transport of secrets.

This change was done in favor of FIPS as crypto-policies disabled 3DES in RHEL9, but
setting AES as default ended-up breaking backwards compatibility with older RHEL systems.

#### Steps to Reproduce
1. spawn a topology with a rhel7.9 server, and a rhel8.7 client
2. add a vault from the client: "ipa vault-add vault"

#### Actual behavior
Client fails with: "ipa: ERROR: an internal error has occurred", for other combinations you could see: "ipa: ERROR: Unknown option: wrapping_algo"

Without FIPS:

oldServer + newReplica + newClient

    client fails with: "ipa: ERROR: Unknown option: wrapping_algo"
    replica works
    master works
    newServer + oldClient:
    client fails with: "ipa: ERROR: an internal error has occurred"
    server works

with FIPS:

oldServer + newReplica + newClient:

    client fails with: "ipa: ERROR: Unknown option: wrapping_algo"
    replica works
    master works
    newServer + oldClient:
    client fails with: "ipa: ERROR: an internal error has occurred"
    server works

where old is RHEL7 and new is RHEL8

#### Expected behavior
ipa vaults work when running in mixed topologies.


#### Additional info:
The new wrapping algo implementation:

40c362e1eeb000867d0e6244ce03b66b6a35e913
"Support AES for KRA archival wrapping"

introduced a new option "--wrapping-algorithm" for "ipa vault-[retrieve/archive]" that is supposed to be internal only, actually it doesn't work. It should be hidden.

Comment 1 Florence Blanc-Renaud 2022-11-22 07:26:57 UTC
Upstream ticket:
https://pagure.io/freeipa/issue/9259

Comment 2 Florence Blanc-Renaud 2022-11-22 07:30:31 UTC
Fixed upstream:
master:
    https://pagure.io/freeipa/c/93548f2569e11a49ffbb5d0f5957be420820f501 Vault: fix interoperability issues with older RHEL systems

ipa-4-10:
    https://pagure.io/freeipa/c/ba962632cd008edd057f61e7e6fadbf464ff94f2 Vault: fix interoperability issues with older RHEL systems

ipa-4-9:
    https://pagure.io/freeipa/c/c643e56e4c45b7cb61aa53989657143627c23e04 Vault: fix interoperability issues with older RHEL systems

Comment 3 Florence Blanc-Renaud 2022-11-22 07:39:29 UTC
The patch is also needed on RHEL 8.7z (8.7 contains 4.9.10 which embeds the fix adding the new option "--wrapping-algorithm")

Comment 14 errata-xmlrpc 2023-05-16 08:29:08 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (idm:client and idm:DL1 bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2023:2794


Note You need to log in before you can comment on or make changes to this bug.