Skip to content

feat: shared documents ingestion mode for IBM COS connectors hotfix#1955

Open
ricofurtado wants to merge 14 commits into
release-saas-ga-0.6.1from
release-saas-ga-0.6.1-cio
Open

feat: shared documents ingestion mode for IBM COS connectors hotfix#1955
ricofurtado wants to merge 14 commits into
release-saas-ga-0.6.1from
release-saas-ga-0.6.1-cio

Conversation

@ricofurtado

@ricofurtado ricofurtado commented Jun 23, 2026

Copy link
Copy Markdown
Collaborator

This pull request introduces a new permission, knowledge:delete:anonymous, to enable deletion of ownerless (shared) knowledge documents, and updates both backend and frontend to support shared documents and their management. The changes ensure that only users with the correct permission (typically admins) can delete shared documents, and add UI options for making documents available to all users in the instance (for IBM COS ingestion). The permission logic and API endpoints are refactored to handle these new capabilities.

Backend: Permissions and Deletion Logic

  • Added a new permission, knowledge:delete:anonymous, via Alembic migration, and granted it to the admin role. This enables deletion of ownerless shared documents without affecting the existing knowledge:delete:any permission.
  • Refactored document deletion endpoints and core logic to check for both knowledge:delete:own and knowledge:delete:anonymous permissions, using the appropriate OpenSearch queries and clients depending on the user's permissions. [1] [2] [3] [4] [5] [6] [7] [8]
  • Updated batch and dropdown actions in the frontend to use the new permission for deletion. [1] [2]

Backend: Shared Document Ingestion

  • Added a shared flag to connector sync APIs (only supported for IBM COS), allowing ingestion of documents without an owner so they are visible to all users. The backend enforces that this flag is only valid for the ibm_cos connector. [1] [2] [3] [4] [5]

Frontend: Shared Document Support

  • Added a shared property to ingestion settings and UI components, allowing users to mark documents as shared during ingestion (IBM COS only). [1] [2] [3] [4] [5] [6] [7] [8] [9]
  • The ingest settings UI now conditionally shows a toggle to make documents available to all users, and this setting is passed through to the backend when syncing connectors. [1] [2] [3] [4] [5] [6]

These changes collectively enable secure creation, visibility, and deletion of shared documents in OpenRAG, with appropriate permission checks and user interface support.

edwinjosechittilappilly and others added 14 commits June 23, 2026 18:54
* Update connector.py

* update env in settings

* fix webhook url of sharepoint
…bscriptions, change discovery) (#1867)

* fix: alias legacy /connectors/google/webhook to google_drive and reload connections store on webhook channel lookup miss

* Fix Sharepoint and Google Drive

* fix: propagate deleted items from SharePoint/OneDrive webhook delta query

Main's delete-event coverage (#1852) expects handle_webhook to return
deleted file ids so sync_specific_files can run its deleted-at-source
cleanup (get_file_content -> 404 -> delete indexed chunks). The delta
implementation skipped deleted items; now deleted files propagate and
deleted folders stay excluded.

* use logging _config

* Update test_webhook_type_alias.py
…nRAG-API-JWT header (#1874)

* use fallback header

* Notes on new header

* raises http exception for missing jwt
Improving error return

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
@coderabbitai

coderabbitai Bot commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 676a0797-5fc6-4e12-b50d-05bbb01a759b

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch release-saas-ga-0.6.1-cio

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot added frontend 🟨 Issues related to the UI/UX backend 🔷 Issues related to backend services (OpenSearch, Langflow, APIs) tests labels Jun 23, 2026
@github-actions github-actions Bot added the style label Jun 23, 2026
@ricofurtado ricofurtado changed the title style: ruff autofix (auto)feat: shared documents ingestion mode for IBM COS connectors hotfix feat: shared documents ingestion mode for IBM COS connectors hotfix Jun 23, 2026
@github-actions github-actions Bot added enhancement 🔵 New feature or request and removed style labels Jun 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend 🔷 Issues related to backend services (OpenSearch, Langflow, APIs) enhancement 🔵 New feature or request frontend 🟨 Issues related to the UI/UX tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants