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 1979714 - sshd - should detect FIPS mode and handle tasks correctly in FIPS mode
Summary: sshd - should detect FIPS mode and handle tasks correctly in FIPS mode
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: rhel-system-roles
Version: 8.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: beta
: 8.6
Assignee: Jakub Jelen
QA Contact: David Jež
Eliane Ramos Pereira
URL:
Whiteboard: role:sshd
Depends On: 1942527
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-07-06 19:35 UTC by Rich Megginson
Modified: 2022-05-10 14:38 UTC (History)
6 users (show)

Fixed In Version: rhel-system-roles-1.11.0-1.el8
Doc Type: Bug Fix
Doc Text:
.The SSH server role now detects FIPS mode and handles tasks correctly in FIPS mode Previously, when managing RHEL8 and older systems in FIPS mode, one of the default hostkeys was not allowed to be created. As a consequence, the SSH server role operation failed to generate the `not allowed key` type when invoked. With this fix, the SSH server role detects FIPS mode and adjusts default hostkey list accordingly. As a result, the SSH server role can now manage systems in FIPS mode with default hostkeys configuration.
Clone Of:
: 2029634 (view as bug list)
Environment:
Last Closed: 2022-05-10 14:12:08 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github linux-system-roles linux-system-roles.github.io issues 66 0 None open sshd system role configuration fails on FIPS enabled RHEL7 systems 2021-07-06 19:35:53 UTC
Red Hat Product Errata RHBA-2022:1896 0 None None None 2022-05-10 14:12:31 UTC

Description Rich Megginson 2021-07-06 19:35:53 UTC
Description of problem:

The sshd role should handle managing a system which is in FIPS mode.  There may be tasks which should not be applied in FIPS mode, settings which are not applicable, etc.  Here is an example:

"We are attempting to use the SSH system role on RHEL7 systems which are in FIPS mode due to a security policy requirement. When trying to run this role through Ansible the playbook fails at SSH key generation task with error message "ED25519 keys are not allowed in FIPS mode". This is because the ed225519 key type is not available, as noted here: https://access.redhat.com/solutions/3643252."

There may be other tasks that will not work in FIPS mode, or other settings which should be skipped in FIPS mode.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:
https://github.com/linux-system-roles/linux-system-roles.github.io/issues/66

Comment 1 Rich Megginson 2021-07-06 22:41:53 UTC
@jjelen who should I assign this to?

Comment 2 Jakub Jelen 2021-07-07 08:33:05 UTC
Its probably up to me. Thanks for heads up. I will check what we can do about that.

Comment 3 Jakub Jelen 2021-07-07 08:44:13 UTC
FYI, the workaround posted in https://github.com/linux-system-roles/linux-system-roles.github.io/issues/66#issuecomment-875025844

  sshd_HostKey:
    - /etc/ssh/ssh_host_rsa_key
    - /etc/ssh/ssh_host_ecdsa_key

Is the correct solution for now and works for the reporter.

Comment 4 Jakub Jelen 2021-11-09 19:59:38 UTC
Filled a PR adding this functionality in upstream:

https://github.com/willshersystems/ansible-sshd/pull/173

Comment 5 Rich Megginson 2021-11-09 21:52:20 UTC
moving to ASSIGNED until merged upstream

Comment 7 Rich Megginson 2021-12-07 01:27:33 UTC
@jjelen please provide Doc Text

Comment 20 errata-xmlrpc 2022-05-10 14:12: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 (rhel-system-roles 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-2022:1896


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