Bug 2222665
| Summary: | Connect pcsd TLS configuration to RHEL crypto policies | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | Tomas Jelinek <tojeline> |
| Component: | pcs | Assignee: | Tomas Jelinek <tojeline> |
| Status: | CLOSED MIGRATED | QA Contact: | cluster-qe <cluster-qe> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 9.0 | CC: | cluster-maint, idevat, mlisik, mmazoure, mpospisi, omular, tojeline |
| Target Milestone: | rc | Keywords: | MigratedToJIRA, Triaged |
| Target Release: | 9.4 | Flags: | pm-rhel:
mirror+
|
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Release Note | |
| Doc Text: |
Previously, pcsd TLS cipher list was by default set to 'DEFAULT:!RC4:!3DES:@STRENGTH'. With this update, the cipher list is by default defined by system-wide crypto policy. Based on the currently set crypto policy, the TLS ciphers accepted by pcsd may change when upgrading to this version of pcs. See 'man crypto-policies' for more information about crypto policies framework.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2023-09-22 20:26:41 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
Upstream patch: https://github.com/ClusterLabs/pcs/commit/74d9e0059cf3495538d2b5a2c169a6896b77cba8 Test: [root@rh92-node1:~]# update-crypto-policies --set DEFAULT Setting system policy to DEFAULT Note: System-wide crypto policies are applied on application start-up. It is recommended to restart the system for the change of policies to fully take place. [root@rh92-node1:~]# systemctl restart pcsd [root@fed38-node1:~]# nmap -p 2224 rh92-node1 --script +ssl-enum-ciphers Starting Nmap 7.93 ( https://nmap.org ) at 2023-08-31 09:52 CEST Nmap scan report for rh92-node1 (192.168.122.12) Host is up (0.00039s latency). rDNS record for 192.168.122.12: rh92-node1.vm PORT STATE SERVICE 2224/tcp open efi-mg | ssl-enum-ciphers: | TLSv1.2: | ciphers: | TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (secp256r1) - A | TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (secp256r1) - A | TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256 (secp256r1) - A | TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA (secp256r1) - A | TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA (secp256r1) - A | compressors: | NULL | cipher preference: server | TLSv1.3: | ciphers: | TLS_AKE_WITH_AES_256_GCM_SHA384 (secp256r1) - A | TLS_AKE_WITH_AES_128_GCM_SHA256 (secp256r1) - A | TLS_AKE_WITH_AES_128_CCM_SHA256 (secp256r1) - A | cipher preference: server |_ least strength: A MAC Address: 52:54:00:90:01:09 (QEMU virtual NIC) Nmap done: 1 IP address (1 host up) scanned in 0.41 seconds [root@rh92-node1:~]# update-crypto-policies --set FIPS Setting system policy to FIPS Note: System-wide crypto policies are applied on application start-up. It is recommended to restart the system for the change of policies to fully take place. [root@rh92-node1:~]# systemctl restart pcsd [root@fed38-node1:~]# nmap -p 2224 rh92-node1 --script +ssl-enum-ciphers Starting Nmap 7.93 ( https://nmap.org ) at 2023-08-31 09:54 CEST Nmap scan report for rh92-node1 (192.168.122.12) Host is up (0.00023s latency). rDNS record for 192.168.122.12: rh92-node1.vm PORT STATE SERVICE 2224/tcp open efi-mg | ssl-enum-ciphers: | TLSv1.2: | ciphers: | TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (secp256r1) - A | TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (secp256r1) - A | compressors: | NULL | cipher preference: server | TLSv1.3: | ciphers: | TLS_AKE_WITH_AES_256_GCM_SHA384 (secp256r1) - A | TLS_AKE_WITH_AES_128_GCM_SHA256 (secp256r1) - A | TLS_AKE_WITH_AES_128_CCM_SHA256 (secp256r1) - A | cipher preference: server |_ least strength: A MAC Address: 52:54:00:90:01:09 (QEMU virtual NIC) Nmap done: 1 IP address (1 host up) scanned in 0.30 seconds List of pcsd ciphers have changed based on the selected crypto-policy Issue migration from Bugzilla to Jira is in process at this time. This will be the last message in Jira copied from the Bugzilla bug. This BZ has been automatically migrated to the issues.redhat.com Red Hat Issue Tracker. All future work related to this report will be managed there. Due to differences in account names between systems, some fields were not replicated. Be sure to add yourself to Jira issue's "Watchers" field to continue receiving updates and add others to the "Need Info From" field to continue requesting information. To find the migrated issue, look in the "Links" section for a direct link to the new issue location. The issue key will have an icon of 2 footprints next to it, and begin with "RHEL-" followed by an integer. You can also find this issue by visiting https://issues.redhat.com/issues/?jql= and searching the "Bugzilla Bug" field for this BZ's number, e.g. a search like: "Bugzilla Bug" = 1234567 In the event you have trouble locating or viewing this issue, you can file an issue by sending mail to rh-issues. You can also visit https://access.redhat.com/articles/7032570 for general account information. |
Description of problem: Currently, it is possible to configure TLS ciphers and other options used by pcsd in /etc/sysconfig/pcsd. There is a default value hardcoded in pcsd source. RHEL (and Fedora) provides a system-wide crypto policies framework, which allows to configure TLS settings in one place for the entire OS and all applications. This has a benefit of easy management, when disabling a weak cipher can be done in a single place. Pcsd should connect to this framework. Version-Release number of selected component (if applicable): pcs-0.11.7 How reproducible: always, easily Steps to Reproduce: 1. update-crypto-policies --set DEFAULT 2. nmap -p 2224 {pcsd node} --script +ssl-enum-ciphers 3. update-crypto-policies --set FIPS 4. nmap -p 2224 {pcsd node} --script +ssl-enum-ciphers Actual results: TLS ciphers used by pcsd do not depend on the current crypto policy Expected results: TLS ciphers used by pcsd are set by the current crypto policy Additional info: nmap-7.91-12.el9 doesn't show TLSv1.3, use nmap-7.93-2.fc38 Proposed solution: Make 'PROFILE=SYSTEM' the default for PCSD_SSL_CIPHERS