Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RHPAM-4740] - Unable to connect to external PostgreSQL DB over SSL f… #671

Merged
merged 1 commit into from
Aug 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<module xmlns="urn:jboss:module:1.0" name="com.ongres.scram.client">
<resources>
<resource-root path="ongres-scram-client.jar"/>
</resources>
<dependencies>
<module name="javax.api"/>
<module name="javax.transaction.api"/>
<module name="com.ongres.scram.common" export="true"/>
</dependencies>
</module>
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<module xmlns="urn:jboss:module:1.0" name="com.ongres.scram.common">
<resources>
<resource-root path="ongres-scram-common.jar"/>
</resources>
<dependencies>
<module name="javax.api"/>
<module name="javax.transaction.api"/>
</dependencies>
</module>
Expand Up @@ -6,5 +6,19 @@
<dependencies>
<module name="javax.api"/>
<module name="javax.transaction.api"/>
<!--
~ RHPAM-4740: Explicitly add "com.ongres.scram.client" module as
~ a dependency to the PostgreSQL's "org.postgresql" module to prevent
~ "java.lang.ClassNotFoundException" errors if using PostgreSQL JDBC
~ client with SCRAM-SHA-256 password authentication method. See:
~
~ * https://github.com/pgjdbc/pgjdbc/commit/befea18d153dda7814daef4e036d3f5daf8de1e5
~ * https://github.com/pgjdbc/pgjdbc/commit/1a89290e110d5863b35e0a2ccf79e4292c1056f8
~
~ for more details about the extra Ongres SCRAM library dependency,
~ required by the PostgreSQL JDBC driver, but not packaged into the
~ PostgreSQL driver by default.
-->
<module name="com.ongres.scram.client" export="true"/>
</dependencies>
</module>
2 changes: 2 additions & 0 deletions jboss-kie-db-drivers/configure.sh
Expand Up @@ -12,6 +12,8 @@ function link {

link /usr/lib/java/mariadb-java-client.jar $JBOSS_HOME/modules/system/layers/openshift/org/mariadb/main/mariadb-java-client.jar
link /usr/share/java/postgresql-jdbc.jar $JBOSS_HOME/modules/system/layers/openshift/org/postgresql/main/postgresql-jdbc.jar
link /usr/share/java/ongres-scram/common.jar $JBOSS_HOME/modules/system/layers/openshift/com/ongres/scram/common/main/ongres-scram-common.jar
davidesalerno marked this conversation as resolved.
Show resolved Hide resolved
link /usr/share/java/ongres-scram/client.jar $JBOSS_HOME/modules/system/layers/openshift/com/ongres/scram/client/main/ongres-scram-client.jar

# module definitions for MariaDB, PostgreSQL
# Remove any existing destination files first (which might be symlinks)
Expand Down