- Pin upstream to v4.8.2 (better official translations). Branding overlay
re-verified: logos, favicon, Onyx->AIDO codemod (incl. the official
next-intl catalogs, now 9 locales with Arabic), notification-hide, and
de/en language limiting all apply clean and type-check.
- Re-sync smb-ui.patch onto v4.8.2 and remove the "Initial Indexing"
badge hunk: connectors now ingest as the File source, which reports
status correctly on its own, so the hunk was dead. The patch is now two
files (chat citation + licensed Search), keyed on metadata.smb_source.
- Refresh the SMB connector docs to the current design: File-source
ingestion (chat-searchable), the full extension set, the per-source
index document and per-connector group access, and the UI overlay that
copies the full path. Fix stale ingestion_api / v4.5.2 references and a
trailing-whitespace nit in the connector payload.
DHI is a no-op on v4.8.2 (Dockerfile defaults to public node images).
1. Optional Onyx group per connector. Set SMB_SOURCE_<N>_GROUPS (or
"groups" in SMB_SOURCES JSON, or SMB_DEFAULT_GROUP_IDS as a fallback)
to a list of Onyx user-group ids. The connector is then created
PRIVATE and restricted to those groups; empty stays PUBLIC. Applied
only at connector creation, as requested. Needs the Business licence.
2. Standalone deployment. New docker-compose.standalone.yml runs the
connector as its own Compose project next to Onyx (no -f injection),
joining Onyx's network (onyx_default, override via ONYX_NETWORK) to
reach the API by service name. Suits Compose management tools that
cannot handle multiple injected compose files. The legacy injected
compose still works.
Verified: group-id parsing across all three source styles, the
private+groups vs public payload, standalone compose config, and the
full index/sync simulation (still green).
Two client-requested changes:
1. Table of contents per source. On each sync the connector writes one
index document listing every file on the share, grouped by folder, so
the assistant is aware of the full document set even when a search
returns only some files. It re-upserts only when the file set changes,
is excluded from the orphan-delete reconcile (shares the source prefix
but is not a file), and is removed if SMB_WRITE_INDEX is turned off.
2. Shorter citation labels. semantic_identifier is now the file name, not
the full path, so the chat/search citation shows "Angebot.pdf" instead
of a long truncated Z:\... path. The full network path stays in `link`
and metadata; the UI overlay copies it to the clipboard on click, in
both the chat view and the licensed Search view. A DOC_FORMAT_VERSION
bump re-upserts already-synced files once so existing docs get the new
label without waiting for a content change.
Verified with a mock-client simulation: 17 checks covering filename
labels, full-path copy, index create/update/delete, reconcile whitelist,
add/remove sync, and the one-time format-version re-upsert.
Client asked to mount the SMB share in Docker rather than on the host. Added an
opt-in in-container CIFS mount:
- entrypoint.sh mounts each source's share (mount -t cifs) from env
(SMB_SOURCE_<N>_UNC or _SERVER+_SHARE, _USERNAME/_PASSWORD/_DOMAIN/_VERS),
read-only, credentials via a 0600 file (never in the process list), then drops
from root to the unprivileged app user via gosu and execs the sync app;
unmounts cleanly on stop.
- Dockerfile installs cifs-utils + gosu, runs the mount entrypoint.
- docker-compose.smb.yml adds cap_add [SYS_ADMIN, DAC_READ_SEARCH] +
apparmor:unconfined (privileged fallback noted).
- .env.example + README document in-container mode; legacy host-bind-mount mode
still works (omit _UNC/_SERVER for that source).
Entrypoint logic validated (POSIX sh check + mocked dry-run: correct mount args,
guest fallback, creds file, privilege drop). Live CIFS round-trip to be run
against a real SMB server; the sync engine is already E2E-verified.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>