File tree Expand file tree Collapse file tree 4 files changed +45
-6
lines changed
added/modules/system/layers/openshift Expand file tree Collapse file tree 4 files changed +45
-6
lines changed Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <module xmlns =" urn:jboss:module:1.0" name =" com.ongres.scram.client" >
3
+ <resources >
4
+ <resource-root path =" ongres-scram-client.jar" />
5
+ </resources >
6
+ <dependencies >
7
+ <module name =" javax.api" />
8
+ <module name =" javax.transaction.api" />
9
+ <module name =" com.ongres.scram.common" export =" true" />
10
+ </dependencies >
11
+ </module >
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <module xmlns =" urn:jboss:module:1.0" name =" com.ongres.scram.common" >
3
+ <resources >
4
+ <resource-root path =" ongres-scram-common.jar" />
5
+ </resources >
6
+ <dependencies >
7
+ <module name =" javax.api" />
8
+ <module name =" javax.transaction.api" />
9
+ </dependencies >
10
+ </module >
Original file line number Diff line number Diff line change 6
6
<dependencies >
7
7
<module name =" javax.api" />
8
8
<module name =" javax.transaction.api" />
9
+ <!--
10
+ ~ CIAM-1495: Explicitly add "com.ongres.scram.client" module as
11
+ ~ a dependency to the PostgreSQL's "org.postgresql" module to prevent
12
+ ~ "java.lang.ClassNotFoundException" errors if using PostgreSQL JDBC
13
+ ~ client with SCRAM-SHA-256 password authentication method. See:
14
+ ~
15
+ ~ * https://github.com/pgjdbc/pgjdbc/commit/befea18d153dda7814daef4e036d3f5daf8de1e5
16
+ ~ * https://github.com/pgjdbc/pgjdbc/commit/1a89290e110d5863b35e0a2ccf79e4292c1056f8
17
+ ~
18
+ ~ for more details about the extra Ongres SCRAM library dependency,
19
+ ~ required by the PostgreSQL JDBC driver, but not packaged into the
20
+ ~ PostgreSQL driver by default.
21
+ -->
22
+ <module name =" com.ongres.scram.client" export =" true" />
9
23
</dependencies >
10
24
</module >
Original file line number Diff line number Diff line change 1
- #! /bin/sh
1
+ #! /bin/bash
2
2
# Link DB drivers, provided by RPM packages, into the "openshift" layer
3
3
set -e
4
4
5
5
# Import RH-SSO global variables & functions to image build-time
6
6
# shellcheck disable=SC1091
7
7
source " ${JBOSS_HOME} /bin/launch/sso-rcfile-definitions.sh"
8
8
9
- SCRIPT_DIR=$( dirname $0 )
9
+ SCRIPT_DIR=$( dirname " $0 " )
10
10
ADDED_DIR=${SCRIPT_DIR} /added
11
11
12
12
function link {
13
- mkdir -p $( dirname $2 )
14
- ln -s $1 $2
13
+ mkdir -p " $( dirname " $2 " ) "
14
+ ln -s " $1 " " $2 "
15
15
}
16
16
17
- link /usr/share/java/postgresql-jdbc.jar $JBOSS_HOME /modules/system/layers/openshift/org/postgresql/main/postgresql-jdbc.jar
17
+ # Link the main PostgreSQL JDBC JAR
18
+ link /usr/share/java/postgresql-jdbc.jar " ${JBOSS_HOME} " /modules/system/layers/openshift/org/postgresql/main/postgresql-jdbc.jar
19
+ # CIAM-1495: But also the JARs for the Ongres SCRAM library, so it's possible to use SCRAM-SHA-256 password-based auth method
20
+ link /usr/share/java/ongres-scram/common.jar " ${JBOSS_HOME} " /modules/system/layers/openshift/com/ongres/scram/common/main/ongres-scram-common.jar
21
+ link /usr/share/java/ongres-scram/client.jar " ${JBOSS_HOME} " /modules/system/layers/openshift/com/ongres/scram/client/main/ongres-scram-client.jar
18
22
19
23
# Remove any existing destination files first (which might be symlinks)
20
- cp -rp --remove-destination " $ADDED_DIR /modules" " $JBOSS_HOME / "
24
+ cp -rp --remove-destination " ${ ADDED_DIR} /modules" " ${ JBOSS_HOME} "
You can’t perform that action at this time.
0 commit comments