Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ This section describes the optional build variables that can be enabled via the
* XML Snippet Location: [hazelcast-sessioncache.xml](/releases/latest/kernel-slim/helpers/build/configuration_snippets/hazelcast-sessioncache.xml)
* `VERBOSE`
* Description: When set to `true` it outputs the commands and results to stdout from `configure.sh`. Otherwise, default setting is `false` and `configure.sh` is silenced.
* `GENERATE_LTPA_KEYS_PASSWORD` (26.0.0.5+)
* Description: Automatically generates a secure random password for LTPA keys and exports it as the `ltpa_keys_password` environment variable. This prevents the LTPA service from failing with error `CWWKS4118E` when no LTPA keys password is configured.
* Default: `"true"`.
* Note: If `ltpa_keys_password` is already set, automatic generation is skipped. Set to `"false"` to disable.

### Deprecated Build Variables

Expand Down
6 changes: 6 additions & 0 deletions releases/26.0.0.5/full/helpers/runtime/docker-server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,12 @@ fi

importKeyCert


if [ "${GENERATE_LTPA_KEYS_PASSWORD:-true}" = "true" ] && [ -z "$ltpa_keys_password" ]; then
export ltpa_keys_password=$(openssl rand -base64 32 2>/dev/null)
echo "Generated ltpa_keys_password for LTPA configuration"
fi

# Infinispan Session Caching
if [[ -n "$INFINISPAN_SERVICE_NAME" ]]; then
echo "INFINISPAN_SERVICE_NAME(original): ${INFINISPAN_SERVICE_NAME}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,12 @@ fi

importKeyCert


if [ "${GENERATE_LTPA_KEYS_PASSWORD:-true}" = "true" ] && [ -z "$ltpa_keys_password" ]; then
export ltpa_keys_password=$(openssl rand -base64 32 2>/dev/null)
echo "Generated ltpa_keys_password for LTPA configuration"
fi

# Infinispan Session Caching
if [[ -n "$INFINISPAN_SERVICE_NAME" ]]; then
echo "INFINISPAN_SERVICE_NAME(original): ${INFINISPAN_SERVICE_NAME}"
Expand Down
6 changes: 6 additions & 0 deletions releases/latest/full/helpers/runtime/docker-server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,12 @@ fi

importKeyCert


if [ "${GENERATE_LTPA_KEYS_PASSWORD:-true}" = "true" ] && [ -z "$ltpa_keys_password" ]; then
export ltpa_keys_password=$(openssl rand -base64 32 2>/dev/null)
echo "Generated ltpa_keys_password for LTPA configuration"
fi

# Infinispan Session Caching
if [[ -n "$INFINISPAN_SERVICE_NAME" ]]; then
echo "INFINISPAN_SERVICE_NAME(original): ${INFINISPAN_SERVICE_NAME}"
Expand Down
6 changes: 6 additions & 0 deletions releases/latest/kernel-slim/helpers/runtime/docker-server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,12 @@ fi

importKeyCert


if [ "${GENERATE_LTPA_KEYS_PASSWORD:-true}" = "true" ] && [ -z "$ltpa_keys_password" ]; then
export ltpa_keys_password=$(openssl rand -base64 32 2>/dev/null)
echo "Generated ltpa_keys_password for LTPA configuration"
fi

# Infinispan Session Caching
if [[ -n "$INFINISPAN_SERVICE_NAME" ]]; then
echo "INFINISPAN_SERVICE_NAME(original): ${INFINISPAN_SERVICE_NAME}"
Expand Down