OpenViking icon indicating copy to clipboard operation
OpenViking copied to clipboard

[docs]: Consolidate 4 config/auth/reload/hybrid-search documentation gaps (real-world incidents)

Open livechenjt-prog opened this issue 4 months ago • 0 comments

Summary

Several small documentation / DX gaps around ov.conf and operational procedures that individually are minor but together caused us real production incidents. Consolidating into one doc issue instead of four:

  1. Auth credentials are split between ov.conf and ovcli.conf — the docs don't clearly state that the same root_api_key (and related fields) must live in both files, and searching for auth issues requires checking both. Related to #1722 but the fix there is code; this ask is docs.

  2. No hot reload — modifying [vlm], [embedding], or [server] sections requires systemctl restart openviking. This isn't documented in docs/en/guides/01-configuration or docs/en/deployment/*. Users assume Redis-style hot reload and get burned.

  3. Hybrid search / sparse embedding config is undocumented for self-hosted embedding providers — docs/en/guides/01-configuration shows storage.vectordb.sparse_weight > 0 as the enable switch and lists supported providers (volcengine/openai/vikingdb/jina/voyage/dashscope/gemini/minimax) but does not clarify:

    • Whether a self-hosted embed_server.py needs to expose a specific /v1/embeddings/sparse endpoint
    • The minimum-memory footprint of the models that produce native sparse tokens (bge-m3 is ~2.3 GB — we hit OOM on a 1.8 GB box; that's a documentation-preventable failure)
    • Whether BM25 or any built-in sparse fallback exists when the provider only outputs dense
  4. ROOT API key ≠ tenant-scoped data access in api_key mode — the message ROOT API keys cannot access tenant-scoped data APIs in api_key mode is enforced by the server but not stated in the auth docs. Users (us included) assume ROOT is a superset of ADMIN. The three legit paths to cross-tenant reads (trusted mode / store other user's api_key and switch identity / use shared resources) should live in one page.

Environment

  • OpenViking 0.4.4 → 0.4.7
  • Ubuntu 22.04, self-hosted, api_key auth mode

Impact / Real-World Cases

  • (1) cost us a 30-min debugging session when we rotated root_api_key in ov.conf only and Admin CLI kept failing
  • (2) is why we accidentally scheduled a "no downtime" model swap that took the service down for 60 s
  • (3) is why we spent an afternoon evaluating hybrid search only to conclude "hardware-blocked" — documentation of memory footprint would have saved the whole loop
  • (4) is why we designed a whole three-layer permission workaround for cross-user inspection before realizing option (b) — "store the target user's api_key and switch identity" — is the officially blessed path

Proposed Doc Structure

A new section under docs/en/deployment/ or docs/en/guides/:

  • 01-configuration.md — add "Two-file rule" callout for auth fields
  • 02-restart-and-reload.md (new) — matrix of which config changes need restart vs which can hot-reload (if any)
  • 03-hybrid-search.md (new or extend existing) — sparse provider requirements, memory footprints, fallback behavior
  • 04-auth-and-scopes.md — ROOT vs ADMIN vs USER vs tenant-scoped table with concrete examples

Additional Context

  • We have four internal skills (ov-diagnostics-procedures, ov-config-query, ov-cross-user-inspection, openviking-health-monitoring) that document what should be in the official docs. Happy to contribute the source material as a starting-point PR if this issue gets prioritized.
  • Related: #1604 (observer role hardening), #1722 (root_api_key trusted-mode bug), #988 (ACL & Custom Role Support)

Falsification Signal

If any of the four points are already covered in a doc page I missed, please point at the URL and I'll close the corresponding sub-point.

livechenjt-prog avatar Jul 10 '26 08:07 livechenjt-prog