Repository navigation
Description
Friction
Qdrant runs with no authentication, and apparently has since v0.2.12. k8s/llm/values-qdrant.yaml injects the API key under extraEnv, a key chart qdrant 1.19.1 does not have, so Helm drops it without an error. The repo, Secret llm/qdrant-api-key, the authenticated ServiceMonitor (#823), k8s/README.md:314 and closed #43 all assume Qdrant enforces the key, and the unit test that should guard it asserts the wrong key, so devops ci reports the protection as present.
Evidence
Live, read-only, 2026-10-17 (main = 3dd7fa6):
- StatefulSet
llm/qdrant(chart qdrant-1.19.1): the container's only env var isQDRANT_INIT_FILE_PATH. ConfigMapllm/qdrant(production.yaml) has noservice.api_key, and no API-key Secret is mounted. - Argo CD Application
qdrantis Synced and Healthy at 3dd7fa6, so the gap is in git, not drift. - An unauthenticated
GET /collectionsthrough the API server's service proxy (/api/v1/namespaces/llm/services/qdrant:6333/proxy/collections) returnedstatus=okwith 2 collections (only keys and counts were printed). - Secret
llm/qdrant-api-keyexists with data keyapi-key(value not read). - NetworkPolicy
llm/llm-default-perimeterselects qdrant and admits every pod inllm, the wholemonitoringnamespace and kube-system Traefik on all ports. Ingressllm/qdrant-ingressroutes/toqdrant:6333on Traefik's web entrypoint with no auth middleware; reachability from outside depends on the tunnel's access policy. - StatefulSet
llm/open-webuisetsVECTOR_DBandQDRANT_URIbut noQDRANT_API_KEY.
Repo and chart:
k8s/llm/values-qdrant.yaml:21declaresextraEnv:; the comment at:15describes it. Chart 1.19.1 reads only.Values.env(chartvalues.yaml:13env: [],templates/statefulset.yaml:97range .Values.env).helm templatewith the repo values renders noQDRANT__SERVICE__API_KEY; with the key renamed toenv:it renders asecretKeyReftoqdrant-api-key/api-key.apiKey: {valueFrom: ...}is not a fix: the chart'slookuprenders an empty Secretqdrant-apikeyunderhelm templateand Argo CD.tests/test_k8s_qdrant_security.py:4-5and:60-71assertextraEnvholds the key.k8s/llm/values-open-webui.yaml:32-36listsVECTOR_DBandQDRANT_URIonly.git log -Sshows theextraEnvblock unchanged since v0.2.12 (28c8903).
Remedy
One PR on a topic branch targeting main:
- Tests first: change
tests/test_k8s_qdrant_security.py(docstring:4-5, assertions:60-71) to assert the key sits inenv. Add a check that fails when a top-level key invalues-qdrant.yamlis not a key of chart 1.19.1's values, reading a vendored copy of the chart'svalues.yaml(tests make no network calls). It catches keys Helm ignores silently. k8s/llm/values-qdrant.yaml:21: renameextraEnv:toenv:, and fix the comment at:15.k8s/llm/values-open-webui.yaml: afterQDRANT_URI(:35-36), addQDRANT_API_KEYfromsecretKeyRef {name: qdrant-api-key, key: api-key}. Open WebUI chart 16.6.0 renders it on the open-webui container. Without it, Open WebUI's RAG breaks once Qdrant enforces the key.
Deployed by Argo CD Applicationsqdrantandopen-webuion merge, and by deploy-stack, which already pushesllm/qdrant-api-keybefore installing the release.
Verification after the sync:
- An unauthenticated
GET /collectionsthrough the service proxy returns 401. - The chart's readiness and liveness probes still pass.
- Open WebUI document search still works.
upfor the qdrant ServiceMonitor target stays 1 (Alloy already sends the bearer token from the same Secret, feat(k8s): qdrant metrics with an authenticated scrape, and its dashboard row restored #823).- devops-cli RAG clients still connect; they read keyring
qdrant_api_key, which push-secrets keeps equal to the Secret.
Priority: P1. Severity high: an unauthenticated read-write vector store reachable from two namespaces and Traefik, with a test that reports it protected.
Proposed design
Problem statement
Qdrant is configured to run without authentication, but the deployment expects it to enforce API key authentication. The current Helm values inject an API key via 'extraEnv' which the qdrant chart version 1.19.1 does not recognize, causing Helm to silently ignore it. This creates a security vulnerability as Qdrant is accessible without authentication, and Open WebUI does not send the required API key, breaking its RAG functionality.
Acceptance criteria
- Criterion 1: The qdrant Helm chart properly recognizes and uses the API key from the secret
Verification: Running 'helm template' with the updated values-qdrant.yaml should render a secretKeyRef to 'qdrant-api-key/api-key' under the env section of the statefulset - Criterion 2: Open WebUI sends the required QDRANT_API_KEY environment variable
Verification: The k8s/llm/values-open-webui.yaml should contain QDRANT_API_KEY set from secretKeyRef {name: qdrant-api-key, key: api-key} after the QDRANT_URI setting - Criterion 3: Qdrant requires authentication for API access
Verification: An unauthenticated GET /collections request through the service proxy should return 401 status code instead of 200 - Criterion 4: Open WebUI document search continues to work after the change
Verification: The RAG functionality in Open WebUI must remain functional, with successful document searches and vector retrievals - Criterion 5: Qdrant readiness and liveness probes continue to pass
Verification: The chart's readiness and liveness probes should still pass after the change is applied
Key questions
- What is the correct way to inject the API key in the qdrant Helm chart version 1.19.1?: The API key should be injected using the 'env' parameter instead of 'extraEnv' because chart 1.19.1 only reads '.Values.env' [sources: k8s/llm/values-qdrant.yaml:21]
- How does the current test verify API key injection?: The test currently asserts that 'extraEnv' holds the key, but this assertion is incorrect because 'extraEnv' is ignored by the chart version 1.19.1 [sources: tests/test_k8s_qdrant_security.py:4-5, tests/test_k8s_qdrant_security.py:60-71]
- What needs to be added to the Open WebUI configuration to make it work with Qdrant's authentication?: QDRANT_API_KEY environment variable must be added after QDRANT_URI in k8s/llm/values-open-webui.yaml, using secretKeyRef from qdrant-api-key [sources: k8s/llm/values-open-webui.yaml:32-36]
Open questions
- Should the qdrant chart be updated to support extraEnv? (missing verified source)
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
dan-petty commentedon Oct 18, 2026
Intake placed this item to the backlog: at intake only a critical fix goes into a release; a release start pulls Ready items in, P0 features first.
The candidate describes a bug where Qdrant requires an API key but it's not being sent by Open WebUI, causing a misconfiguration.The issue involves an unauthenticated read-write vector store reachable from multiple namespaces and Traefik, posing a high security risk.Fixing the API key handling ensures proper authentication for Qdrant, improving system security and functionality for users relying on vector search capabilities.The fix requires changes to multiple configuration files and tests, including updating environment variables and modifying test assertions.fix(k8s): qdrant requires its api key, and open webui sends it (#2014)