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:
parent
59557a86f3
commit
66dc9ae503
6
setup.sh
6
setup.sh
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue