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 2196856 - [RFE] Add the ability to change crypto-policies for a single service
Summary: [RFE] Add the ability to change crypto-policies for a single service
Keywords:
Status: CLOSED DUPLICATE of bug 2064740
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: crypto-policies
Version: 9.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Alexander Sosedkin
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-05-10 14:36 UTC by Juan Manuel Santos
Modified: 2023-05-16 14:51 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-05-16 14:51:17 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-156895 0 None None None 2023-05-10 14:39:40 UTC

Description Juan Manuel Santos 2023-05-10 14:36:18 UTC
Description of problem:
Since the introduction of crypto-policies, we can easily change the entire system's crypto configuration. However, changing a single service's configuration is still complicated.

For example, changing sshd's crypto policy requires not just having a custom crypto backend for opensshserver, but also additional modifications in the openssl backend, as well as a systemd drop-in to use the custom configuration (see: https://access.redhat.com/solutions/7012231).

Furthermore, our product documentation does not mention this (e.g. https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/security_hardening/using-the-system-wide-cryptographic-policies_security-hardening#examples-of-opting-out-of-system-wide-crypto-policies_using-the-system-wide-cryptographic-policies)

Version-Release number of selected component (if applicable):
crypto-policies-20220815-1.git0fbe86f.el9

How reproducible:
Every time

Steps to Reproduce:
1. Apply a custom crypto policy to a service by creating a backend file in /etc/crypto-policies/back-ends
2. Point the service configuration to the new backend.

Actual results:
Depending on the service, additional steps are needed (e.g. a custom OpenSSL backend + systemd drop-in file in the case of sshd)

Expected results:
As easy as it is to change the crypto policy for the entire system, it should also be possible to set it on a per-application basis (as long as the application is known to crypto-policies).

Additional info:
This issue was brought up in a recent case where a customer needed a RHEL 6 client to connect to a RHEL 9 SSH server. Setting DEFAULT:SHA1 as the system-wide crypto policy worked, but the customer did not want the entire system to accept SHA1, just SSH.


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