From c48dc5927ea0c9c5ced5e6b88cedd1a80d78a013 Mon Sep 17 00:00:00 2001 From: Bitnami Bot Date: Sat, 23 May 2026 12:15:57 +0200 Subject: [PATCH] [bitnami/moodle] Release 5.2.0-debian-12-r8 (#93901) Signed-off-by: Bitnami Bot --- bitnami/moodle/5.2/debian-12/Dockerfile | 6 +++--- .../5.2/debian-12/rootfs/opt/bitnami/scripts/libapache.sh | 8 ++++++-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/bitnami/moodle/5.2/debian-12/Dockerfile b/bitnami/moodle/5.2/debian-12/Dockerfile index 5620a5020e0b..1946fae79a93 100644 --- a/bitnami/moodle/5.2/debian-12/Dockerfile +++ b/bitnami/moodle/5.2/debian-12/Dockerfile @@ -9,7 +9,7 @@ ARG TARGETARCH ARG WITH_ALL_LOCALES="no" LABEL org.opencontainers.image.base.name="docker.io/bitnami/minideb:bookworm" \ - org.opencontainers.image.created="2026-05-21T04:08:19Z" \ + org.opencontainers.image.created="2026-05-23T09:38:40Z" \ org.opencontainers.image.description="Application packaged by Broadcom, Inc." \ org.opencontainers.image.documentation="https://github.com/bitnami/containers/tree/main/bitnami/moodle/README.md" \ org.opencontainers.image.source="https://github.com/bitnami/containers/tree/main/bitnami/moodle" \ @@ -30,7 +30,7 @@ RUN --mount=type=secret,id=downloads_url,env=SECRET_DOWNLOADS_URL \ mkdir -p /tmp/bitnami/pkg/cache/ ; cd /tmp/bitnami/pkg/cache/ || exit 1 ; \ COMPONENTS=( \ "render-template-1.0.9-165-linux-${OS_ARCH}-debian-12" \ - "php-8.4.21-2-linux-${OS_ARCH}-debian-12" \ + "php-8.4.21-3-linux-${OS_ARCH}-debian-12" \ "apache-2.4.67-1-linux-${OS_ARCH}-debian-12" \ "postgresql-client-14.23.0-0-linux-${OS_ARCH}-debian-12" \ "mysql-client-12.2.2-0-linux-${OS_ARCH}-debian-12" \ @@ -67,7 +67,7 @@ ENV APACHE_HTTPS_PORT_NUMBER="" \ APACHE_HTTP_PORT_NUMBER="" \ APP_VERSION="5.2.0" \ BITNAMI_APP_NAME="moodle" \ - IMAGE_REVISION="7" \ + IMAGE_REVISION="8" \ LANG="en_US.UTF-8" \ LANGUAGE="en_US:en" \ LD_LIBRARY_PATH="/opt/bitnami/postgresql/lib:$LD_LIBRARY_PATH" \ diff --git a/bitnami/moodle/5.2/debian-12/rootfs/opt/bitnami/scripts/libapache.sh b/bitnami/moodle/5.2/debian-12/rootfs/opt/bitnami/scripts/libapache.sh index d6eb686df3f6..0e1a4818ccc7 100644 --- a/bitnami/moodle/5.2/debian-12/rootfs/opt/bitnami/scripts/libapache.sh +++ b/bitnami/moodle/5.2/debian-12/rootfs/opt/bitnami/scripts/libapache.sh @@ -803,6 +803,10 @@ apache_create_password_file() { local -r username="${2:?missing username}" local -r password="${3:?missing password}" - "${APACHE_BIN_DIR}/htpasswd" -bc "$file" "$username" "$password" - am_i_root && configure_permissions_ownership "$file" --file-mode "600" --user "$APACHE_DAEMON_USER" --group "$APACHE_DAEMON_GROUP" + # The -B flag uses bcrypt to hash the password, which is more secure than legacy APR1 (1000-iteration MD5) hash + # The -C flag computing time used for the bcrypt algorithm (default is 5) + "${APACHE_BIN_DIR}/htpasswd" -Bbc -C 12 "$file" "$username" "$password" + am_i_root && configure_permissions_ownership "$file" --user "$APACHE_DAEMON_USER" --group "$APACHE_DAEMON_GROUP" + # We can set strong permissions regardless the container is running as root or not + chmod 0600 "$file" }