fix: disable Qdrant API key when empty to prevent auth-on-empty-key bug

Qdrant v1.17+ enables authentication when QDRANT__SERVICE__API_KEY
env var is set (even to empty string). Since the default in setup.sh
is no Qdrant key (localhost-only bind), we now conditionally remove
the line from docker-compose.yml when QDRANT_API_KEY is unset.
This commit is contained in:
ClaudioDrews 2026-06-07 13:33:31 -03:00
parent 59557a86f3
commit 66dc9ae503
1 changed files with 6 additions and 0 deletions

View File

@ -242,6 +242,12 @@ DOCKERENV
ok "docker/.env created"
# Patch docker-compose.yml: remove Qdrant API key line when empty (v1.17+ enables auth on empty key)
if [ -z "${QDRANT_API_KEY}" ]; then
info "Qdrant API key not set — disabling Qdrant authentication"
sed -i '/^.*QDRANT__SERVICE__API_KEY:/s/.*/ # QDRANT__SERVICE__API_KEY: disabled (no key set)/' docker-compose.yml
fi
# Pull pre-built images first (Redis, Qdrant) — fast
info "Downloading pre-built images (Redis, Qdrant)..."
docker compose pull redis qdrant 2>&1 | tail -3