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 1964848 - postgresql: Port to OpenSSL 3.0
Summary: postgresql: Port to OpenSSL 3.0
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: postgresql
Version: CentOS Stream
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: beta
: ---
Assignee: Filip Januš
QA Contact: Vaclav Danek
URL:
Whiteboard:
Depends On:
Blocks: 1958021
TreeView+ depends on / blocked
 
Reported: 2021-05-26 08:15 UTC by Sahana Prasad
Modified: 2022-05-17 12:59 UTC (History)
10 users (show)

Fixed In Version: postgresql-13.3-9.el9
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-05-17 12:43:25 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2022:2384 0 None None None 2022-05-17 12:43:52 UTC

Comment 6 Honza Horak 2021-06-04 12:56:35 UTC
PR to work-around build failures ready, not yet merged:
https://gitlab.com/redhat/centos-stream/rpms/postgresql/-/merge_requests/1

Comment 10 Honza Horak 2021-06-17 13:05:03 UTC
test init                         ... ok           17 ms
test md5                          ... ok           14 ms
test sha1                         ... ok           13 ms
test hmac-md5                     ... ok           12 ms
test hmac-sha1                    ... ok           12 ms
test blowfish                     ... FAILED       12 ms
test rijndael                     ... FAILED       12 ms
test sha2                         ... ok           13 ms
test des                          ... FAILED       12 ms
test 3des                         ... FAILED       12 ms
test cast5                        ... FAILED       11 ms
test crypt-des                    ... ok           16 ms
test crypt-md5                    ... ok           20 ms
test crypt-blowfish               ... ok           52 ms
test crypt-xdes                   ... ok           18 ms
test pgp-armor                    ... ok           15 ms
test pgp-decrypt                  ... FAILED       32 ms
test pgp-encrypt                  ... ok          529 ms
test pgp-compression              ... ok           36 ms
test pgp-pubkey-decrypt           ... FAILED       33 ms
test pgp-pubkey-encrypt           ... ok           29 ms
test pgp-info                     ... ok           13 ms

These are the tests failing at this point.

Most common error reported by the server is: "ERROR:  encrypt error: Cipher cannot be initialized ?"

upstream thread begins at https://www.postgresql.org/message-id/FEF81714-D479-4512-839B-C769D2605F8A%40yesql.se

message about the upstream waiting for OpenSSL being in beta:
https://www.postgresql.org/message-id/F4341C2C-BBAA-48D2-94A7-5B5CC3FB0C5F%40yesql.se
https://www.postgresql.org/message-id/A47E7675-E506-44EB-857B-60E1FF193FA6%40yesql.se

Comment 11 Honza Horak 2021-06-17 17:14:13 UTC
(In reply to Honza Horak from comment #10)
> test blowfish                     ... FAILED       12 ms

For a smaller reproducer for this test specifically, it's enough to use this:

  EVP_EncryptInit_ex(ctx, EVP_bf_cbc(), ...

This works with openssl 1.1.1 and not with openssl 3.0.0. I'm asking more whether this is expected and what to expect during build generally in https://issues.redhat.com/browse/CRYPTO-4398

Comment 12 Honza Horak 2021-06-17 17:57:26 UTC
(In reply to Honza Horak from comment #10)
> test pgp-decrypt                  ... FAILED       32 ms
> test pgp-pubkey-decrypt           ... FAILED       33 ms

These failures are both related to missing blowfish as well, as the result diff is:

--- /home/cloud-user/rpmbuild/BUILD/postgresql-13.2/contrib/pgcrypto/expected/pgp-pubkey-decrypt.out	2021-02-08 16:54:11.000000000 -0500
+++ /home/cloud-user/rpmbuild/BUILD/postgresql-13.2/contrib/pgcrypto/results/pgp-pubkey-decrypt.out	2021-06-17 13:46:37.897984632 -0400
@@ -595,11 +595,7 @@
 
 select pgp_pub_decrypt(dearmor(data), dearmor(seckey))
 from keytbl, encdata where keytbl.id=2 and encdata.id=2;
- pgp_pub_decrypt 
------------------
- Secret msg
-(1 row)
-
+ERROR:  Wrong key or corrupt data
 select pgp_pub_decrypt(dearmor(data), dearmor(seckey))
 from keytbl, encdata where keytbl.id=3 and encdata.id=3;
  pgp_pub_decrypt 

and the test SQL is:
https://github.com/postgres/postgres/blob/1dc75515/contrib/pgcrypto/sql/pgp-pubkey-decrypt.sql#L511
(see the comment "-- elg2048 / blowfish")

Comment 13 Honza Horak 2021-06-30 13:28:04 UTC
A PR that disables tests that fails currently:
https://gitlab.com/redhat/centos-stream/rpms/postgresql/-/merge_requests/7

However, the pgp tests are disabled entirely, despite they should work if the keys used some more modern encryption. So, it should be possible to change the testing files to make the pgp tests work again, it just needs some more investigation.

Moving ITM now as this will likely not be done in upcoming week.

And switching back to ASSIGNED to signal clearly that it is still not done yet.

Comment 29 errata-xmlrpc 2022-05-17 12:43:25 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 (new packages: postgresql), 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:2384


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