From d76fc3612078a1687928d243254848747e64cecb Mon Sep 17 00:00:00 2001 From: Thomas Flament Date: Fri, 25 Sep 2026 11:19:47 +0200 Subject: [PATCH 1/2] Set mongodb.shardCollections from MONGODB_SHARD_COLLECTIONS The entrypoint maps the other mongo settings (MONGODB_HOSTS, MONGODB_RS, MONGODB_DATABASE) from env vars but not shardCollections, which is required to run against mongos: it also keeps Arsenal from adding replicaSet=rs0 to the connection URL. Consumers running the image against a sharded cluster, like sorbet's functional tests, override the entrypoint and command to patch config.json themselves. Setting MONGODB_SHARD_COLLECTIONS to any non-empty value now sets .mongodb.shardCollections=true, like the other boolean flags. Issue: CLDSRV-1006 --- docker-entrypoint.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index b39848f91d..5f1bc43711 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -103,6 +103,10 @@ if [[ "$MONGODB_DATABASE" ]]; then JQ_FILTERS_CONFIG="$JQ_FILTERS_CONFIG | .mongodb.database=\"$MONGODB_DATABASE\"" fi +if [[ "$MONGODB_SHARD_COLLECTIONS" ]]; then + JQ_FILTERS_CONFIG="$JQ_FILTERS_CONFIG | .mongodb.shardCollections=true" +fi + if [ -z "$REDIS_HA_NAME" ]; then REDIS_HA_NAME='mymaster' fi From 6e425cb09c973e426d33d6bed798d3eeaab3746d Mon Sep 17 00:00:00 2001 From: Thomas Flament Date: Fri, 25 Sep 2026 18:41:18 +0200 Subject: [PATCH 2/2] Bump version to 9.5.0-preview.1 Issue: CLDSRV-1006 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 828db63598..1d430b5b51 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@zenko/cloudserver", - "version": "9.4.4", + "version": "9.5.0-preview.1", "description": "Zenko CloudServer, an open-source Node.js implementation of a server handling the Amazon S3 protocol", "main": "index.js", "engines": {