[PR #1005] [MERGED] RSA-Signing on server<->collector communication via API #3552

Closed
opened 2026-02-22 18:34:01 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/1005
Author: @timothycarambat
Created: 4/1/2024
Status: Merged
Merged: 4/1/2024
Merged by: @timothycarambat

Base: masterHead: integrity-request-between-process


📝 Commits (3)

  • 0d3e6d4 WIP integrity check between processes
  • 0b20040 Merge branch 'master' of github.com:Mintplex-Labs/anything-llm into integrity-request-between-process
  • 9b5d96d Implement integrity checking on document processor payloads

📊 Changes

11 files changed (+278 additions, -72 deletions)

View changed files

📝 .vscode/settings.json (+2 -1)
📝 collector/extensions/index.js (+4 -3)
📝 collector/index.js (+73 -60)
collector/middleware/verifyIntegrity.js (+21 -0)
📝 collector/processSingleFile/index.js (+17 -2)
collector/utils/comKey/index.js (+42 -0)
📝 collector/utils/files/index.js (+23 -0)
📝 server/.gitignore (+1 -0)
📝 server/utils/boot/index.js (+3 -0)
📝 server/utils/collectorApi/index.js (+17 -6)
server/utils/comKey/index.js (+75 -0)

📄 Description

Pull Request Type

  • feat
  • 🐛 fix
  • ♻️ refactor
  • 💄 style
  • 🔨 chore
  • 📝 docs

What is in this change?

Implements an RSA-signed payload to each request for the document processor to protect against loopback responses or requests that are directly sent to the document processor due to the user setting up an insecure instance.

Additional Information

Added additional path validations on uploads.

Developer Validations

  • I ran yarn lint from the root of the repo & committed changes
  • Relevant documentation has been updated
  • I have tested my code functionality
  • Docker build succeeds locally

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Mintplex-Labs/anything-llm/pull/1005 **Author:** [@timothycarambat](https://github.com/timothycarambat) **Created:** 4/1/2024 **Status:** ✅ Merged **Merged:** 4/1/2024 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `integrity-request-between-process` --- ### 📝 Commits (3) - [`0d3e6d4`](https://github.com/Mintplex-Labs/anything-llm/commit/0d3e6d474d3a56aecc0efc2be2d74a4d47ce91e5) WIP integrity check between processes - [`0b20040`](https://github.com/Mintplex-Labs/anything-llm/commit/0b20040540ba7cad30606c6b10ce23523ee70167) Merge branch 'master' of github.com:Mintplex-Labs/anything-llm into integrity-request-between-process - [`9b5d96d`](https://github.com/Mintplex-Labs/anything-llm/commit/9b5d96d49b49ed106f17e9678668f35cfb2023eb) Implement integrity checking on document processor payloads ### 📊 Changes **11 files changed** (+278 additions, -72 deletions) <details> <summary>View changed files</summary> 📝 `.vscode/settings.json` (+2 -1) 📝 `collector/extensions/index.js` (+4 -3) 📝 `collector/index.js` (+73 -60) ➕ `collector/middleware/verifyIntegrity.js` (+21 -0) 📝 `collector/processSingleFile/index.js` (+17 -2) ➕ `collector/utils/comKey/index.js` (+42 -0) 📝 `collector/utils/files/index.js` (+23 -0) 📝 `server/.gitignore` (+1 -0) 📝 `server/utils/boot/index.js` (+3 -0) 📝 `server/utils/collectorApi/index.js` (+17 -6) ➕ `server/utils/comKey/index.js` (+75 -0) </details> ### 📄 Description ### Pull Request Type <!-- For change type, change [ ] to [x]. --> - [ ] ✨ feat - [x] 🐛 fix - [ ] ♻️ refactor - [ ] 💄 style - [ ] 🔨 chore - [ ] 📝 docs ### What is in this change? Implements an RSA-signed payload to each request for the document processor to protect against loopback responses or requests that are directly sent to the document processor due to the user setting up an insecure instance. ### Additional Information Added additional path validations on uploads. ### Developer Validations <!-- All of the applicable items should be checked. --> - [x] I ran `yarn lint` from the root of the repo & committed changes - [x] Relevant documentation has been updated - [x] I have tested my code functionality - [x] Docker build succeeds locally --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-22 18:34:01 -05:00
yindo closed this issue 2026-02-22 18:34:01 -05:00
yindo changed title from [PR #1005] RSA-Signing on server<->collector communication via API to [PR #1005] [MERGED] RSA-Signing on server<->collector communication via API 2026-06-05 15:14:01 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#3552