Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0044832Openbravo ERPA. Platformpublic2020-08-17 16:402020-08-28 12:08
shuehner 
cberner 
normalmajorhave not tried
closedfixed 
5
 
PR20Q4PR20Q4 
caristu
Core
No
0044832: Support SCRAM authentication with PostgreSQL database by updating jdbc driver to version supporting it
PostgreSQL 11 added new form of password authentication (database passwords themselves) called SCRAM-SHA-256
https://www.postgresql.org/docs/11/auth-password.html [^]

Trying this with current master again PostgreSQL 12

fails with
org.postgresql.util.PSQLException: SCRAM authentication is not supported by this driver. You need JDK >= 8 and pgjdbc >= 42.2.0 (not ".jre" vesions)
Configure PostgreSQL i.e. 12 with following change
password_encryption = scram-sha-256

After that change change the 'postgres' user password to save it inside postgres with the new system active.

Now run 'ant create.database' with this postgres and see following error:

/home/huehner/ob/branches/pi_scram_pg/src-db/database/build-create.xml:104: org.postgresql.util.PSQLException: SCRAM authentication is not supported by this driver. You need JDK >= 8 and pgjdbc >= 42.2.0 (not ".jre" vesions)
Update jdbc driver to the latest version available and test that above feature works properly.
No tags attached.
related to defect 0044905 closed cberner Openbravo ERP Update postgres driver to support scram encryption in backoffice-test 
related to defect 0044906 closed cberner Retail Modules Update PostgreSQL driver to support SCRAM encryption in mobile-test 
related to defect 0046847 closed alostale Openbravo ERP Fix support for SCRAM authentication with PostgreSQL database by updating jdbc driver to version supporting it (again) 
Issue History
2020-08-17 16:40shuehnerNew Issue
2020-08-17 16:40shuehnerAssigned To => cberner
2020-08-17 16:40shuehnerModules => Core
2020-08-17 16:40shuehnerTriggers an Emergency Pack => No
2020-08-17 16:41shuehnerNote Added: 0122103
2020-08-19 14:46hgbotNote Added: 0122181
2020-08-20 11:22cbernerStatusnew => scheduled
2020-08-20 11:23cbernerReview Assigned To => caristu
2020-08-25 11:18hgbotNote Added: 0122346
2020-08-25 11:18hgbotResolutionopen => fixed
2020-08-25 11:18hgbotStatusscheduled => closed
2020-08-25 11:18hgbotFixed in Version => PR20Q4
2020-08-25 11:18hgbotNote Added: 0122347
2020-08-27 08:23cbernerRelationship addedrelated to 0044905
2020-08-27 08:34cbernerRelationship addedrelated to 0044906
2020-08-28 12:08hgbotNote Added: 0122420
2021-05-26 16:31shuehnerRelationship addedrelated to 0046847

Notes
(0122103)
shuehner   
2020-08-17 16:41   
Note that while we already have 42.2.2 in core since 38269 we used '.jre7' version of the jar file which apparently is not good enough.
(0122181)
hgbot   
2020-08-19 14:46   
Merge Request created: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/125 [^]
(0122346)
hgbot   
2020-08-25 11:18   
Merge request merged: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/125 [^]
(0122347)
hgbot   
2020-08-25 11:18   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/openbravo [^]
Changeset: 08236f77d7d1d46744cafd19395e4733bff24bcd
Author: Cristian Berner <cristian.berner@openbravo.com>
Date: 2020-08-25T08:58:03+00:00
URL: https://gitlab.com/openbravo/product/openbravo/-/commit/08236f77d7d1d46744cafd19395e4733bff24bcd [^]

Fixes ISSUE-44832: Update postgresql driver to support scram password encrypt

Postgresql version >= 42.2.x is needed to support scram-sha-256 postgres
password encryption. This exists since postgres 11 and it requires
updating the client driver. Note, jre7 42.2.2 version didn't have this
feature included.

This updated driver also fixes several security issues and vulnerabilities.

Updated postgresql driver 42.2.2.jre7 -> 42.2.16

---
A lib/runtime/postgresql-42.2.16.jar
M build.xml
M legal/Licensing.txt
R lib/runtime/postgresql-42.2.2.jre7.jar
---
(0122420)
hgbot   
2020-08-28 12:08   
Repository: https://gitlab.com/openbravo/tools/platform/dependencies [^]
Changeset: 5c949c7cb52736383b2fc0c1450d95ce74ef48ae
Author: Carlos Aristu <carlos.aristu@openbravo.com>
Date: 2020-08-28T12:08:11+02:00
URL: https://gitlab.com/openbravo/tools/platform/dependencies/-/commit/5c949c7cb52736383b2fc0c1450d95ce74ef48ae [^]

ISSUE-44832: Update PostgreSQL jdbc to 42.2.16

---
M build.gradle
---