Repository navigation
feat: edit API connections; chat-only knowledge spaces - #487
Merged
Merged
Conversation
The pencil on an API connection only renamed it, although
PATCH /import/sources/{id} already accepts base URL, auth type, username,
credential and api_config. A broken connection could only be deleted and
set up again.
- ApiSetupDialog takes an optional `source` and then edits that connection:
prefilled from the stored settings, PATCH instead of POST, tested right
after saving. An empty credential keeps the stored one; a changed auth
type needs a new one. The preset's details of the other auth types are
filled in, so switching starts from them.
- Only admins send allow_private_target. When the backend drops the
private-target release (a non-admin retargeted the connection), the
dialog says so and shows the saved state.
- No closing while the save request runs; a late test result of a closed
dialog no longer closes another connection's dialog.
- The connections tab opens the dialog instead of the inline rename.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Employees may see internal content in the Weave chat, but an external service provider using the search API, the OpenAI-compatible API, MCP or the tool REST API must not receive it. Instead of a separate space per audience, a space can now be marked chat-only by its owner. - collections.chat_only (ingest migration 0066, knowledge migration 0010), synced to retrieval; switch in the knowledge-space settings. - Retrieval's GET /collections leaves chat-only spaces out unless the caller asks with include_chat_only=true. Only chat paths do that: the runtime for chat users, the API service's chat surfaces and the tools service's delegation-token re-check. - Search API, OpenAI-compatible API, MCP and tool REST never see them; technical identities lose them at introspection, even when assigned (effective after TECHNICAL_IDENTITY_CACHE_SECONDS). - Contracts (chunk-store, technical-identities, openapi.json) updated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…kens "Nur im Chat" spaces were still reachable outside the browser chat: - Ingest portal API: a request with a non-admin personal API token (Bearer pd_...) now gets no role on chat-only spaces (collection_role and member_collection_filter), so it cannot list them or read, download or upload their documents. Admin tokens keep full control. - Webhooks: jobs in chat-only spaces create and send no deliveries, and the review-due fan-out skips such spaces. - Weave-API: only the browser session cookie counts as the chat. Bearer tokens get no chat-only spaces via /v1/chat, /v1/chat/stream, the space list, cited passages or release images. Chat-UI users who sign in with a personal token instead of SSO therefore no longer see them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two independent changes, plus a follow-up that closes the remaining chat-only gaps.
1. Edit API connections (8b85588)
The pencil on an API connection only renamed it, although
PATCH /import/sources/{id}already accepts base URL, auth type, username, credential andapi_config. A broken connection (e.g. wrong base URL) could only be deleted and set up again.ApiSetupDialogtakes an optionalsourceand edits that connection: prefilled, PATCH instead of POST, tested right after saving.allow_private_target; if the backend drops the private-target release (non-admin retargeted the connection), the dialog says so.2. Chat-only knowledge spaces – „Nur im Chat“ (8be754a)
Employees may see internal content in the Weave chat; an external service provider using the search API, OpenAI-compatible API, MCP or tool REST must not.
collections.chat_only(ingest migration0066, knowledge migration0010), synced to retrieval; switch in the space settings.GET /collectionsomits chat-only spaces unlessinclude_chat_only=true, which only chat paths send (runtime for chat users, API chat surfaces, tools delegation-token re-check).chunk-store.md,technical-identities.md,openapi.json) updated.3. Chat-only: close the remaining gaps (8f76ded)
Bearer pd_...) gets no role on chat-only spaces (collection_role/member_collection_filter). It cannot list them or read, download or upload their documents. Admin tokens keep full control (admins can switch the flag; Knowledge's sync account is an admin)./v1/chat,/v1/chat/stream,/v1/collections, cited passages or release images.Tests
api-setup-dialog.test.tsx.test_api_tokens_never_reach_chat_only_spaces(verified to fail without the guard),test_dispatch_job_event_never_leaves_a_chat_only_space,tests/test_chat_only_channel.py.🤖 Generated with Claude Code