Skip to content

fix(docker): load bundled vector store connection defaults - #45407

Merged
laipz8200 merged 6 commits into
mainfrom
laipz8200/fix-bundled-vdb-defaults
Nov 3, 2026
Merged

laipz8200 merged 6 commits into
mainfrom
laipz8200/fix-bundled-vdb-defaults

Conversation

@laipz8200

Copy link
Copy Markdown
Member

Summary

Fixes #45405.

Selecting a bundled vector store currently starts its server without supplying the corresponding client connection defaults to the API and workers. Load the selected provider's .defaults for the API, workers, and Beat, including the Elasticsearch Japanese variant. Keep root .env precedence and existing provider, api-worker.env, and shared.env overrides.

Supply the bundled endpoints and credentials, align Qdrant and PostgreSQL image-native credential mappings, and make Milvus and OpenSearch reachable from the API's Compose network. Convert the Milvus, MyScale, MatrixOne, and Vastbase templates to .defaults while preserving their existing .env override paths.

Keep the user-generated Agent local sandbox token exclusively in root deployment inputs and pass it consistently to both services. Root .env.example remains minimal. Clarify the matching Code sandbox credentials and the networking requirement in the Docker README and configuration comments.

Documentation: langgenius/dify-docs#1171.

Checklist

  • This change requires a documentation update, included in the linked documentation PR.
  • I understand that this PR may be closed in case there was no previous discussion or issues.
  • I've updated the documentation accordingly.

Load the selected provider defaults for API, workers, and Beat, preserving root and provider overrides. Align bundled connection credentials and internal networks, and keep the Agent local sandbox token exclusively in the root deployment inputs. Clarify Code sandbox credential and network requirements.
Map Qdrant API keys and PostgreSQL initialization usernames to the image-native variables so copied provider settings configure both clients and servers. Preserve existing client overrides and scope credential-rotation guidance to stored database passwords.
@github-actions github-actions Bot added the size:XL This PR changes 500-999 lines, ignoring generated files. label Nov 3, 2026
@codecov

codecov Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.80%. Comparing base (074e9e0) to head (a0ad612).
⚠️ Report is 18 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff            @@
##             main   #45407    +/-   ##
========================================
  Coverage   89.80%   89.80%            
========================================
  Files        6239     6240     +1     
  Lines      390966   391117   +151     
  Branches    79305    79329    +24     
========================================
+ Hits       351091   351239   +148     
- Misses      33779    33782     +3     
  Partials     6096     6096            
Flag Coverage Δ
api 89.64% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Document the complete MySQL connection settings, root override boundaries, middleware template destination, and matching Weaviate authentication inputs. Cover separate sandbox credentials, legacy Agent names, middleware loading, and root precedence in isolated Compose regressions.
Keep the usual .env.example naming rule explicit and identify middleware.env as the separate destination for the development stack.
Point the startup template to the documented loading rules instead of promising root precedence for unmapped native service variables.
@laipz8200
laipz8200 marked this pull request as ready for review November 3, 2026 09:09
@laipz8200
laipz8200 requested a review from crazywoola as a code owner November 3, 2026 09:09
@laipz8200
laipz8200 enabled auto-merge November 3, 2026 09:10
Enable OpenSearch TLS certificate verification by default for both bundled and external endpoints. Keep explicit opt-outs and root environment precedence, and document the choice required for local demo certificates.

Restore unconditional Weaviate REST, gRPC, and API key fallbacks for knowledge bases whose stored backend remains Weaviate after VECTOR_STORE changes. Cover copied defaults, existing override paths, explicit empty values, and root precedence with focused Compose regressions.
@laipz8200
laipz8200 added this pull request to the merge queue Nov 3, 2026
Merged via the queue into main with commit b7c7b29 Nov 3, 2026
56 checks passed
@laipz8200
laipz8200 deleted the laipz8200/fix-bundled-vdb-defaults branch November 3, 2026 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XL This PR changes 500-999 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bundled vector stores miss client defaults and Agent sandbox token can diverge

2 participants