You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
set trustStoreSecret with a secret holding the customized truststore
Output of uname -a or ver
No response
Output of java -version
No response
GraalVM version (if different from Java)
No response
Kogito Operator version or git rev
No response
Build tool (ie. output of mvnw --version or gradlew --version)
No response
Additional information
There's a workaround overriding launch/configure-custom-truststore.sh
to
#!/bin/sh
set -e
# imports
source "${KOGITO_HOME}"/launch/logging.sh
function prepareEnv() {
# keep it on alphabetical order
unset CUSTOM_TRUSTSTORE
unset CUSTOM_TRUSTSTORE_PASSWORD
}
function configure() {
configure_custom_truststore
}
# Exit codes
# 1 - General error
function configure_custom_truststore() {
local defaultCustomTruststorePath="${KOGITO_HOME}/certs/custom-truststore"
if [ ! -z "${CUSTOM_TRUSTSTORE}" ]; then
CUSTOM_TRUSTSTORE_PATH="${defaultCustomTruststorePath}/${CUSTOM_TRUSTSTORE}/cacerts"
log_info "---> Configuring custom Java Truststore '${CUSTOM_TRUSTSTORE}' in the path ${defaultCustomTruststorePath}"
if [ ! -f "${CUSTOM_TRUSTSTORE_PATH}" ]; then
log_error "---> A custom truststore was specified ('${CUSTOM_TRUSTSTORE}'), but wasn't found in the path ${defaultCustomTruststorePath}. \
Make sure that the path is mounted and accessible in your container"
exit 1
fi
CUSTOM_TRUSTSTORE_ARGS="-Djavax.net.ssl.trustStore=${CUSTOM_TRUSTSTORE_PATH}"
if [ ! -z "${CUSTOM_TRUSTSTORE_PASSWORD}" ]; then
CUSTOM_TRUSTSTORE_ARGS="${CUSTOM_TRUSTSTORE_ARGS} -Djavax.net.ssl.trustStorePassword=${CUSTOM_TRUSTSTORE_PASSWORD}"
fi
fi
}
The text was updated successfully, but these errors were encountered:
Describe the bug
custom truststore is not properly configured
Expected behavior
Have access to new added certificates
Actual behavior
new truststore is not correctly configured
How to Reproduce?
set trustStoreSecret with a secret holding the customized truststore
Output of
uname -a
orver
No response
Output of
java -version
No response
GraalVM version (if different from Java)
No response
Kogito Operator version or git rev
No response
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
There's a workaround overriding launch/configure-custom-truststore.sh
to
The text was updated successfully, but these errors were encountered: