Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0041638 | Openbravo ERP | A. Platform | public | 2019-08-13 09:30 | 2024-02-01 13:56 |
|
Reporter | shuehner | |
Assigned To | cberner | |
Priority | normal | Severity | major | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | PR24Q1 | |
Merge Request Status | approved |
Review Assigned To | |
OBNetwork customer | No |
Web browser | |
Modules | Core |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0041638: Not possible to configure jdbc connection to Postgres using SSL in a usable way |
Description | In some scenarios it is wanted to use SSL encryption between the application and the database which is a feature supported by jdbc.
Currently openbravo does not allow to configure this in any usable way and relies on workarounds getting it to work only partially.
To configure it using postgres database it is requried to add ssl=true connection parameter when creating the database connection.
Openbravo currently constructs a jdbc URL String to connect to the database. In that URL connection properties come at the end of the String.
Currently people use the fact and in most connections the bbdd.sid line from Openbravo.properties (database name) is the last value used to build said URL and just change it from i.e.
bbdd.sid=openbravo
to
bbdd.sid=openbravo?ssl=true
While that makes typical things work with SSL it immediately causes some regressions and other code assuming (correctly) that bbdd.sid is the database name now needs to strip out that extra values (i.e. openbravo-backup scripts where patched to do that).
Other side-effects:
- install.source has code not using above database name as it needs to create the database initially. Meaning that code will not use SSL and when ssl is required on db side cause issues like 41296.
- Other code may connect to jdbc differently than assumed above and again miss to use SSL i.e. 41314.
|
Steps To Reproduce | Setup postgres database with SSL connection and configure pg_hba.conf to use 'hostssl' effectively requiring SSL to be used.
|
Proposed Solution | Add a new Openbravo.properties line i.e. bbdd.params to define any jdbc connection parameter (like ssl).
Find & fix every code creating a database connection to properly use that new parameter.
At least:
- pi code running Openbravo itself (in tomcat)
- every build.xml target working with the database
Ideally also:
- automation/pi
- automation/pi-mobile
- scripts used in CI
The last 3 are important if we ever want to add automated tests for this scenario (ssl required on jdbc level) |
Additional Information | |
Tags | No tags attached. |
Relationships | has duplicate | defect | 0041296 | | closed | Triage Platform Base | [19Q3] install source not working if the DB is in a different machine and SSL connection is required | blocks | defect | 0041314 | | closed | Triage Platform Base | [19Q3] [HA] Error while trying to update a HA context via the Module Console |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2019-08-13 09:30 | shuehner | New Issue | |
2019-08-13 09:30 | shuehner | Assigned To | => platform |
2019-08-13 09:30 | shuehner | OBNetwork customer | => No |
2019-08-13 09:30 | shuehner | Modules | => Core |
2019-08-13 09:30 | shuehner | Triggers an Emergency Pack | => No |
2019-08-13 09:30 | shuehner | Relationship added | blocks 0041296 |
2019-08-13 09:31 | shuehner | Relationship added | blocks 0041314 |
2022-02-01 08:07 | alostale | Assigned To | platform => Triage Platform Base |
2023-10-18 16:43 | hgbot | Merge Request Status | => open |
2023-10-18 16:43 | hgbot | Note Added: 0156015 | |
2023-10-19 15:02 | hgbot | Note Added: 0156085 | |
2023-10-19 16:16 | hgbot | Note Added: 0156090 | |
2023-10-20 14:44 | hgbot | Note Added: 0156132 | |
2023-10-23 13:58 | hgbot | Note Added: 0156171 | |
2023-11-15 13:33 | AugustoMauch | Assigned To | Triage Platform Base => cberner |
2023-11-15 13:33 | AugustoMauch | Status | new => scheduled |
2023-11-15 15:21 | hgbot | Merge Request Status | open => approved |
2023-11-16 12:35 | hgbot | Note Added: 0157204 | |
2023-11-16 12:35 | hgbot | Note Added: 0157205 | |
2023-11-16 12:35 | hgbot | Resolution | open => fixed |
2023-11-16 12:35 | hgbot | Status | scheduled => closed |
2023-11-16 12:35 | hgbot | Fixed in Version | => PR24Q1 |
2023-11-16 12:35 | hgbot | Note Added: 0157206 | |
2023-11-16 12:35 | hgbot | Note Added: 0157207 | |
2023-11-16 12:36 | hgbot | Note Added: 0157208 | |
2023-11-16 12:36 | hgbot | Note Added: 0157209 | |
2023-11-16 12:36 | hgbot | Note Added: 0157210 | |
2023-11-16 12:36 | hgbot | Note Added: 0157211 | |
2023-11-21 11:48 | hgbot | Note Added: 0157410 | |
2023-11-21 11:48 | hgbot | Note Added: 0157411 | |
2024-01-03 12:13 | hgbot | Note Added: 0158789 | |
2024-01-03 12:21 | hgbot | Note Added: 0158792 | |
2024-01-03 12:23 | hgbot | Note Added: 0158794 | |
2024-01-03 12:28 | hgbot | Note Added: 0158795 | |
2024-01-03 12:31 | hgbot | Note Added: 0158796 | |
2024-01-08 17:07 | hgbot | Note Added: 0158949 | |
2024-01-08 17:07 | hgbot | Note Added: 0158950 | |
2024-01-08 17:09 | hgbot | Note Added: 0158951 | |
2024-01-08 17:09 | hgbot | Note Added: 0158952 | |
2024-01-08 17:09 | hgbot | Note Added: 0158953 | |
2024-01-08 17:10 | hgbot | Note Added: 0158954 | |
2024-01-08 17:10 | hgbot | Note Added: 0158955 | |
2024-01-08 17:10 | hgbot | Note Added: 0158956 | |
2024-01-08 17:10 | hgbot | Note Added: 0158957 | |
2024-01-08 17:10 | hgbot | Note Added: 0158958 | |
2024-02-01 13:56 | hgbot | Note Added: 0160092 | |
2024-02-01 13:56 | hgbot | Note Added: 0160093 | |
2024-03-14 16:41 | shuehner | Relationship replaced | has duplicate 0041296 |
Notes |
|
(0156015)
|
hgbot
|
2023-10-18 16:43
|
|
|
|
(0156085)
|
hgbot
|
2023-10-19 15:02
|
|
|
|
(0156090)
|
hgbot
|
2023-10-19 16:16
|
|
|
|
(0156132)
|
hgbot
|
2023-10-20 14:44
|
|
|
|
(0156171)
|
hgbot
|
2023-10-23 13:58
|
|
|
|
(0157204)
|
hgbot
|
2023-11-16 12:35
|
|
|
|
(0157205)
|
hgbot
|
2023-11-16 12:35
|
|
|
|
(0157206)
|
hgbot
|
2023-11-16 12:35
|
|
Directly closing issue as related merge request is already approved.
Repository: https://gitlab.com/openbravo/product/openbravo [^]
Changeset: c0b10f845fd759a61000426273e0c7398d2e16a7
Author: Cristian Berner <cristian.berner@openbravo.com>
Date: 16-11-2023 12:27:29
URL: https://gitlab.com/openbravo/product/openbravo/-/commit/c0b10f845fd759a61000426273e0c7398d2e16a7 [^]
Fixes ISSUE-41638: Not possible to configure jdbc connection to Postgres using SSL in a usable way
Added a new property to Openbravo.properties:
bbdd.props
It allows adding parameters to the connection URL.
---
M build.xml
M config/Openbravo.properties.template
M modules/org.openbravo.apachejdbcconnectionpool/src/org/openbravo/apachejdbcconnectionpool/JdbcExternalConnectionPool.java
M src-core/src/org/openbravo/data/Sqlc.java
M src-core/src/org/openbravo/database/ConnectionProviderImpl.java
M src-db/database/build-create.xml
M src-db/database/build.xml
M src-db/database/lib/dbsourcemanager.jar
M src-wad/src/org/openbravo/wad/WadConnection.java
M src/org/openbravo/base/session/SessionFactoryController.java
M src/org/openbravo/service/system/SystemService.java
---
|
|
|
(0157207)
|
hgbot
|
2023-11-16 12:35
|
|
|
|
(0157208)
|
hgbot
|
2023-11-16 12:36
|
|
|
|
(0157209)
|
hgbot
|
2023-11-16 12:36
|
|
|
|
(0157210)
|
hgbot
|
2023-11-16 12:36
|
|
|
|
(0157211)
|
hgbot
|
2023-11-16 12:36
|
|
|
|
(0157410)
|
hgbot
|
2023-11-21 11:48
|
|
|
|
(0157411)
|
hgbot
|
2023-11-21 11:48
|
|
|
|
(0158789)
|
hgbot
|
2024-01-03 12:13
|
|
|
|
(0158792)
|
hgbot
|
2024-01-03 12:21
|
|
|
|
(0158794)
|
hgbot
|
2024-01-03 12:23
|
|
|
|
(0158795)
|
hgbot
|
2024-01-03 12:28
|
|
|
|
(0158796)
|
hgbot
|
2024-01-03 12:31
|
|
|
|
(0158949)
|
hgbot
|
2024-01-08 17:07
|
|
|
|
(0158950)
|
hgbot
|
2024-01-08 17:07
|
|
|
|
(0158951)
|
hgbot
|
2024-01-08 17:09
|
|
|
|
(0158952)
|
hgbot
|
2024-01-08 17:09
|
|
|
|
(0158953)
|
hgbot
|
2024-01-08 17:09
|
|
|
|
(0158954)
|
hgbot
|
2024-01-08 17:10
|
|
|
|
(0158955)
|
hgbot
|
2024-01-08 17:10
|
|
|
|
(0158956)
|
hgbot
|
2024-01-08 17:10
|
|
|
|
(0158957)
|
hgbot
|
2024-01-08 17:10
|
|
|
|
(0158958)
|
hgbot
|
2024-01-08 17:10
|
|
|
|
(0160092)
|
hgbot
|
2024-02-01 13:56
|
|
|
|
(0160093)
|
hgbot
|
2024-02-01 13:56
|
|
|