Skip to content

Fix: enforce tenant authorization on document download endpoint (#14618) - #14625

Merged
wangq8 merged 2 commits into
infiniflow:mainfrom
Lobster-0429:fix/14618-document-get-tenant-authorization
May 8, 2026
Merged

wangq8 merged 2 commits into
infiniflow:mainfrom
Lobster-0429:fix/14618-document-get-tenant-authorization

Conversation

@Lobster-0429

@Lobster-0429 Lobster-0429 commented May 7, 2026 •

Copy link
Copy Markdown
Contributor

What problem does this PR solve?

Closes #14618.

The GET /v1/document/get/<doc_id> endpoint in api/apps/document_app.py was protected only by @login_required and called DocumentService.get_by_id(doc_id) without verifying that the document's knowledge base belonged to the requesting user's tenant. Any authenticated user who knew (or guessed) a document ID could download files belonging to any other tenant — a cross-tenant IDOR.

This PR adds a DocumentService.accessible(doc_id, current_user.id) check before serving the file. The helper already exists and joins Document → Knowledgebase → UserTenant to verify the requesting user belongs to the tenant that owns the document's KB. The same pattern is already used by api/apps/restful_apis/document_api.py and mirrors the tenant scoping in the SDK route at api/apps/sdk/doc.py.

The check returns the existing "Document not found!" error for both non-existent and inaccessible documents, so attackers cannot use the response to enumerate valid doc IDs across tenants.

Type of change

  • Bug Fix (non-breaking change which fixes an issue)
  • Other (please describe): Security fix (cross-tenant IDOR / authorization bypass)

@dosubot dosubot Bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label May 7, 2026
@coderabbitai

coderabbitai Bot commented May 7, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

This PR adds tenant authorization enforcement to the document preview endpoint to prevent cross-tenant access, imports the current user context, updates the download handler for backward compatibility with attachment_id, and extends unit tests to cover both denied and allowed access paths.

Changes

Document access guard

Layer / File(s) Summary
Dependencies
api/apps/restful_apis/document_api.py
Import current_user from api.apps to enable user-based authorization checks.
Authorization check in preview handler
api/apps/restful_apis/document_api.py
Add early call to DocumentService.accessible(doc_id, current_user.id) in /documents/<doc_id>/preview route; return generic "Document not found!" error when access is denied, before document fetch or storage read.
Preview handler existing flow
api/apps/restful_apis/document_api.py
Existing document fetch, storage read, content-type inference, and safe header application remain unchanged after the authorization gate.
Download handler backward compatibility
api/apps/restful_apis/document_api.py
Update /documents/<doc_id>/download to remap doc_id = doc_id or attachment_id for backward compatibility; preserve response behavior for content type and safe headers.
Unit tests: access denial and existing paths
test/testcases/test_web_api/test_document_app/test_document_metadata.py
Add test branch that monkeypatches DocumentService.accessible to deny access, asserts DATA_ERROR with "Document not found!", verifies call arguments, then restores access True for original not-found and success assertions.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Suggested labels

🧪 test, 🐖api

Suggested reviewers

  • Magicbook1108
  • xugangqiang

Poem

🐰 A rabbit hops through tenant gates,
Cross-tenant access now abates!
Authorization guards the way,
Backward compat saves the day.
Security and function play! 🔐

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately and specifically describes the main change: enforcing tenant authorization on the document download endpoint to fix issue #14618.
Description check ✅ Passed The description covers the required sections: it clearly explains the problem (cross-tenant IDOR vulnerability), identifies the solution (adding DocumentService.accessible check), and marks it as a bug/security fix.
Linked Issues check ✅ Passed The PR implements the core requirement from #14618: adding a DocumentService.accessible(doc_id, current_user.id) authorization check before serving files. The changes align with the suggested fix and prevent cross-tenant document access.
Out of Scope Changes check ✅ Passed The changes are directly scoped to the linked issue: adding authorization to the document download endpoint. The test modification validates the new access control, and backward compatibility support in the download handler is reasonable scope.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

Tip

💬 Introducing Slack Agent: The best way for teams to turn conversations into code.

Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.

  • Generate code and open pull requests
  • Plan features and break down work
  • Investigate incidents and troubleshoot customer tickets together
  • Automate recurring tasks and respond to alerts with triggers
  • Summarize progress and report instantly

Built for teams:

  • Shared memory across your entire org—no repeating context
  • Per-thread sandboxes to safely plan and execute work
  • Governance built-in—scoped access, auditability, and budget controls

One agent for your entire SDLC. Right inside Slack.

👉 Get started


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 and usage tips.

@dosubot dosubot Bot added the 🐞 bug Something isn't working, pull request that fix bug. label May 7, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@api/apps/document_app.py`:
- Around line 37-38: Add a structured audit log before the early return in the
authorization-denied branch: when DocumentService.accessible(doc_id,
current_user.id) is false, emit a logger.warning or logger.info with a
structured payload including user_id=current_user.id, doc_id=doc_id and
outcome="denied" (and any request id if available) and then return
get_data_error_result(...); update the branch where DocumentService.accessible
is checked to call the module/app logger (e.g., logger) with those fields
immediately prior to returning so the denied access is recorded for
traceability.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: b4ad041a-f694-43b3-9716-c7cad0833e0f

📥 Commits

Reviewing files that changed from the base of the PR and between 078ea3b and 3c57601.

📒 Files selected for processing (1)
  • api/apps/document_app.py

Comment thread api/apps/document_app.py Outdated
Comment on lines +37 to +38
if not DocumentService.accessible(doc_id, current_user.id):
return get_data_error_result(message="Document not found!")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion | 🟠 Major | ⚡ Quick win

Add an audit log on the new authorization-denied branch.

The new early-return flow (Line 37–Line 38) should emit a structured warning/info log (e.g., user_id, doc_id, outcome=denied) for traceability and incident response.

Proposed change
+import logging
+
+logger = logging.getLogger(__name__)
...
        if not DocumentService.accessible(doc_id, current_user.id):
+            logger.warning(
+                "document_get_denied",
+                extra={"user_id": current_user.id, "doc_id": doc_id},
+            )
            return get_data_error_result(message="Document not found!")

As per coding guidelines, **/*.py: Add logging for new flows.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@api/apps/document_app.py` around lines 37 - 38, Add a structured audit log
before the early return in the authorization-denied branch: when
DocumentService.accessible(doc_id, current_user.id) is false, emit a
logger.warning or logger.info with a structured payload including
user_id=current_user.id, doc_id=doc_id and outcome="denied" (and any request id
if available) and then return get_data_error_result(...); update the branch
where DocumentService.accessible is checked to call the module/app logger (e.g.,
logger) with those fields immediately prior to returning so the denied access is
recorded for traceability.

@yingfeng
yingfeng requested a review from wangq8 May 7, 2026 09:32
@yingfeng yingfeng added the ci Continue Integration label May 7, 2026
@yingfeng
yingfeng marked this pull request as draft May 7, 2026 09:33
@yingfeng
yingfeng marked this pull request as ready for review May 7, 2026 09:33
@codecov

codecov Bot commented May 7, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.16%. Comparing base (f703169) to head (8f40ce9).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #14625   +/-   ##
=======================================
  Coverage   94.16%   94.16%           
=======================================
  Files          10       10           
  Lines         703      703           
  Branches      112      112           
=======================================
  Hits          662      662           
  Misses         25       25           
  Partials       16       16           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@test/testcases/test_web_api/test_document_app/test_document_metadata.py`:
- Around line 347-355: The test currently calls module.get("doc1") while only
stubbing DocumentService.accessible, which can yield a false positive if
get_by_id returns None; before invoking module.get in the denial-path branch,
stub DocumentService.get_by_id to return a valid document object (matching
expected shape) and ensure DocumentService.accessible is monkeypatched to return
False, then call module.get("doc1") and assert the response is
RetCode.DATA_ERROR with "Document not found!" and that
DocumentService.accessible was invoked (e.g. via a spy or side-effect) to prove
the denial path exercised the auth check rather than a missing document.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: ecc4efce-bf5b-4b19-a180-dd170a519c0e

📥 Commits

Reviewing files that changed from the base of the PR and between d7b2633 and 56eaaef.

📒 Files selected for processing (1)
  • test/testcases/test_web_api/test_document_app/test_document_metadata.py

@Lobster-0429

Copy link
Copy Markdown
Contributor Author

Hi, @wangq8 ,
Could you please review my PR?

@wangq8

wangq8 commented May 8, 2026

Copy link
Copy Markdown
Collaborator

@web-dev0521 this API have been moved to new place, please raise PR to new location.

The /documents/<doc_id>/preview route in api/apps/restful_apis/document_api.py
called DocumentService.get_by_id without verifying that the document's
knowledge base belonged to the requesting user's tenant. Any authenticated
user could download files from other tenants by knowing a doc id.

Add a DocumentService.accessible(doc_id, current_user.id) check before serving
the file. The denial response reuses the existing 'Document not found!' error
so the endpoint cannot be used to enumerate doc ids across tenants.

Tests: pin the new behaviour in the existing unit test by stubbing get_by_id
to a valid document inside the denial sub-scenario and asserting that
accessible() was actually invoked with (doc_id, current_user.id) - this
prevents future regressions from passing for the wrong reason.
@dosubot dosubot Bot added size:S This PR changes 10-29 lines, ignoring generated files. and removed size:XS This PR changes 0-9 lines, ignoring generated files. labels May 8, 2026
@Lobster-0429

Copy link
Copy Markdown
Contributor Author

Hi, @wangq8 ,
Thanks for your attention.
I've just moved the API and resolve the conflicts.
Could you please review again?

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (1)
api/apps/restful_apis/document_api.py (1)

1892-1909: ⚡ Quick win

/documents/<doc_id>/download lacks a document ownership check.

The preview endpoint (/documents/<doc_id>/preview) now enforces DocumentService.accessible before touching storage, but this sibling endpoint goes directly to settings.STORAGE_IMPL.get(tenant_id, doc_id) without any DB lookup or authorization gate. Because tenant_id is the caller's own tenant bucket, cross-tenant IDOR is prevented, but any authenticated member of a shared tenant can fetch arbitrary storage objects within that bucket by guessing or enumerating keys (e.g., doc_ids of other members' private documents).

The PR objectives explicitly request auditing adjacent @login_required routes with this pattern. Consider adding the same guard for consistency:

🛡️ Suggested authorization gate
 async def download_attachment(tenant_id=None, doc_id=None, attachment_id=None):
     try:
         doc_id = doc_id or attachment_id
+        if not DocumentService.accessible(doc_id, current_user.id):
+            logging.warning("download_attachment: access denied for doc_id=%s user_id=%s", doc_id, current_user.id)
+            return get_data_error_result(message="Document not found!")
         ext = request.args.get("ext", "markdown")
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@api/apps/restful_apis/document_api.py` around lines 1892 - 1909,
download_attachment calls settings.STORAGE_IMPL.get directly and must enforce
the same authorization as the preview route; before calling
thread_pool_exec(settings.STORAGE_IMPL.get, tenant_id, doc_id) invoke
DocumentService.accessible(tenant_id=tenant_id, doc_id=doc_id,
user=current_user) (or the equivalent accessible check used by the preview
endpoint) and return a 403/appropriate error if it denies access, then proceed
to fetch storage and build the response (keep existing ext handling and
apply_safe_file_response_headers). Ensure you reference the download_attachment
handler, DocumentService.accessible, settings.STORAGE_IMPL.get, thread_pool_exec
and apply_safe_file_response_headers so the guard mirrors the preview endpoint.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@api/apps/restful_apis/document_api.py`:
- Around line 1869-1870: The authorization denial path using
DocumentService.accessible(...) lacks any logging; add a log call before
returning get_data_error_result to record the denial, including doc_id and
current_user.id (and any available tenant or request id) and use the module
logger (e.g., logger.warning or logger.info per project convention) so blocked
cross-tenant access attempts are traceable; update the block around
DocumentService.accessible to log the denial with a clear message and contextual
fields, then return get_data_error_result as before.

---

Nitpick comments:
In `@api/apps/restful_apis/document_api.py`:
- Around line 1892-1909: download_attachment calls settings.STORAGE_IMPL.get
directly and must enforce the same authorization as the preview route; before
calling thread_pool_exec(settings.STORAGE_IMPL.get, tenant_id, doc_id) invoke
DocumentService.accessible(tenant_id=tenant_id, doc_id=doc_id,
user=current_user) (or the equivalent accessible check used by the preview
endpoint) and return a 403/appropriate error if it denies access, then proceed
to fetch storage and build the response (keep existing ext handling and
apply_safe_file_response_headers). Ensure you reference the download_attachment
handler, DocumentService.accessible, settings.STORAGE_IMPL.get, thread_pool_exec
and apply_safe_file_response_headers so the guard mirrors the preview endpoint.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: e3dfe8c5-20c6-49ef-a311-fd04691e4908

📥 Commits

Reviewing files that changed from the base of the PR and between 924ecde and e1903ed.

📒 Files selected for processing (2)
  • api/apps/restful_apis/document_api.py
  • test/testcases/test_web_api/test_document_app/test_document_metadata.py
🚧 Files skipped from review as they are similar to previous changes (1)
  • test/testcases/test_web_api/test_document_app/test_document_metadata.py

Comment on lines +1869 to +1870
if not DocumentService.accessible(doc_id, current_user.id):
return get_data_error_result(message="Document not found!")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Add a log entry on the authorization denial path.

The new auth gate is silent when it blocks access. Per the coding guidelines, new flows must be logged, and a missing log entry here will make it impossible to distinguish legitimate 404s from blocked cross-tenant access attempts during incident investigation.

     if not DocumentService.accessible(doc_id, current_user.id):
+        logging.warning("get_document_preview: access denied for doc_id=%s user_id=%s", doc_id, current_user.id)
         return get_data_error_result(message="Document not found!")

As per coding guidelines: "Add logging for new flows."

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@api/apps/restful_apis/document_api.py` around lines 1869 - 1870, The
authorization denial path using DocumentService.accessible(...) lacks any
logging; add a log call before returning get_data_error_result to record the
denial, including doc_id and current_user.id (and any available tenant or
request id) and use the module logger (e.g., logger.warning or logger.info per
project convention) so blocked cross-tenant access attempts are traceable;
update the block around DocumentService.accessible to log the denial with a
clear message and contextual fields, then return get_data_error_result as
before.

@wangq8

wangq8 commented May 8, 2026

Copy link
Copy Markdown
Collaborator

@web-dev0521 should you add to both preview and download endpoints?

Per review feedback (#14625): the /preview endpoint and the /download
endpoint share the same trust boundary - both serve a document's bytes
to a logged-in user inside a tenant - so they must share the same
authorization rule.

The post-#14633 refactor switched the download route's storage key from
current_user.id to tenant_id, which means any user in the tenant can now
fetch any doc_id under that tenant if the storage layer happens to find
it. Add the same DocumentService.accessible(doc_id, current_user.id)
check used by the preview route so the endpoint enforces per-document
authorization explicitly and stays consistent with /preview.

Tests: cover the denial path on download_attachment with the same
'stub get_by_id valid + accessible False + assert accessible_calls'
pattern used for the preview test, so a regression cannot pass for
the wrong reason.
@Lobster-0429

Lobster-0429 commented May 8, 2026 •

Copy link
Copy Markdown
Contributor Author

Good catch, thanks @wangq8 🙏

You're right - /preview and /download are basically the same surface from a security standpoint, so they should share the same check. I just pushed 8f40ce9 which adds the same DocumentService.accessible(doc_id, current_user.id) guard to the download handler, and I also extended the unit test to cover the denial path the same way I did for preview.

Let me know if you'd like me to tweak anything - happy to iterate.

@wangq8

wangq8 commented May 8, 2026

Copy link
Copy Markdown
Collaborator

@web-dev0521 looks good to me.

@Lobster-0429

Lobster-0429 commented May 8, 2026 •

Copy link
Copy Markdown
Contributor Author

HI, @wangq8 ,
All tests were passed.

@wangq8
wangq8 merged commit d51fb88 into infiniflow:main May 8, 2026
1 check passed
pekar9781 pushed a commit to pekar9781/ragflow that referenced this pull request May 8, 2026
…niflow#14618) (infiniflow#14625)

### What problem does this PR solve?

Closes infiniflow#14618.

The `GET /v1/document/get/<doc_id>` endpoint in
`api/apps/document_app.py` was protected only by `@login_required` and
called `DocumentService.get_by_id(doc_id)` without verifying that the
document's knowledge base belonged to the requesting user's tenant. Any
authenticated user who knew (or guessed) a document ID could download
files belonging to any other tenant — a cross-tenant IDOR.

This PR adds a `DocumentService.accessible(doc_id, current_user.id)`
check before serving the file. The helper already exists and joins
`Document` → `Knowledgebase` → `UserTenant` to verify the requesting
user belongs to the tenant that owns the document's KB. The same pattern
is already used by `api/apps/restful_apis/document_api.py` and mirrors
the tenant scoping in the SDK route at `api/apps/sdk/doc.py`.

The check returns the existing `"Document not found!"` error for both
non-existent and inaccessible documents, so attackers cannot use the
response to enumerate valid doc IDs across tenants.

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
- [x] Other (please describe): Security fix (cross-tenant IDOR /
authorization bypass)
JinHai-CN added a commit that referenced this pull request May 29, 2026
… (#15270)

## Summary

Closes #15268.

The `UpdateMetadataSetting` handler at `internal/handler/kb.go:126`
retrieved the authenticated user via `GetUser(c)` but discarded the user
object (`_, errorCode, errorMessage := GetUser(c)`), then forwarded the
caller-supplied `kb_id` straight to the service layer with no ownership
check. Any authenticated user could mutate the `parser_config` /
metadata of any knowledge base in the system by guessing or harvesting a
`kb_id` — a classic IDOR (CWE-284, OWASP A01).

This is the only handler in `internal/handler/kb.go` missing the check;
every sibling (`ListTags`, `ListTagsFromKbs`, `RenameTag`,
`KnowledgeGraph`, `DeleteKnowledgeGraph`, `GetMeta`, `GetBasicInfo`)
already calls `h.kbService.Accessible(kbID, user.ID)`. The same
defensive check on the document preview endpoint was added in PR #14625
— this PR closes the matching gap on the KB metadata endpoint.

---------

Co-authored-by: Jin Hai <[email protected]>
Ricardo-M-L pushed a commit to Ricardo-M-L/ragflow that referenced this pull request Aug 17, 2026
…niflow#14618) (infiniflow#14625)

### What problem does this PR solve?

Closes infiniflow#14618.

The `GET /v1/document/get/<doc_id>` endpoint in
`api/apps/document_app.py` was protected only by `@login_required` and
called `DocumentService.get_by_id(doc_id)` without verifying that the
document's knowledge base belonged to the requesting user's tenant. Any
authenticated user who knew (or guessed) a document ID could download
files belonging to any other tenant — a cross-tenant IDOR.

This PR adds a `DocumentService.accessible(doc_id, current_user.id)`
check before serving the file. The helper already exists and joins
`Document` → `Knowledgebase` → `UserTenant` to verify the requesting
user belongs to the tenant that owns the document's KB. The same pattern
is already used by `api/apps/restful_apis/document_api.py` and mirrors
the tenant scoping in the SDK route at `api/apps/sdk/doc.py`.

The check returns the existing `"Document not found!"` error for both
non-existent and inaccessible documents, so attackers cannot use the
response to enumerate valid doc IDs across tenants.

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
- [x] Other (please describe): Security fix (cross-tenant IDOR /
authorization bypass)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐞 bug Something isn't working, pull request that fix bug. ci Continue Integration size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Cross-tenant document download via GET /v1/document/get/<doc_id> (missing tenant authorization)

3 participants