[PR #3652] [MERGED] Enable bypass of ip limitations via ENV in collector processing #4348

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

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/3652
Author: @timothycarambat
Created: 4/15/2025
Status: Merged
Merged: 4/21/2025
Merged by: @timothycarambat

Base: masterHead: 3625-bypass-ip-check


📝 Commits (10+)

  • 75685d4 Enable bypass of ip limitations via ENV in collector startup
  • ce25603 dev build
  • ebf1120 bump dockerx build action
  • f2a53a9 enable runtime setting config of collector requests
  • 2def34f comments and linting for option passing
  • 61bcc45 unset
  • c29c5ab unset
  • 10490c1 update docs link
  • 90ec735 Merge branch 'master' into 3625-bypass-ip-check
  • fa7f12b Merge branch 'master' into 3625-bypass-ip-check

📊 Changes

8 files changed (+173 additions, -6 deletions)

View changed files

📝 .github/workflows/dev-build.yaml (+1 -1)
📝 collector/middleware/verifyIntegrity.js (+7 -2)
collector/utils/runtimeSettings/index.js (+83 -0)
📝 collector/utils/url/index.js (+18 -0)
📝 docker/.env.example (+4 -0)
📝 server/.env.example (+4 -0)
📝 server/utils/collectorApi/index.js (+53 -3)
📝 server/utils/helpers/updateENV.js (+3 -0)

📄 Description

Pull Request Type

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

Relevant Issues

resolves #3625
connect #3626

What is in this change?

  • Enable bypassing for simple IP checks on web-scraping via a collector ENV for those who want to do this
  • Enabled by default
  • Set COLLECTOR_ALLOW_ANY_IP to any value in your env to enable this bypass.

Additional Information

Developer Validations


🔄 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/3652 **Author:** [@timothycarambat](https://github.com/timothycarambat) **Created:** 4/15/2025 **Status:** ✅ Merged **Merged:** 4/21/2025 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `3625-bypass-ip-check` --- ### 📝 Commits (10+) - [`75685d4`](https://github.com/Mintplex-Labs/anything-llm/commit/75685d4fcab9257a7590446540a18ee77a182d5a) Enable bypass of ip limitations via ENV in collector startup - [`ce25603`](https://github.com/Mintplex-Labs/anything-llm/commit/ce25603bccd50da510e4c6f7be3aadd6b8934145) dev build - [`ebf1120`](https://github.com/Mintplex-Labs/anything-llm/commit/ebf112007e0d579af3d2b43569db95bdfc59074b) bump dockerx build action - [`f2a53a9`](https://github.com/Mintplex-Labs/anything-llm/commit/f2a53a9bd213be8708db9ea0529f50745c3291ef) enable runtime setting config of collector requests - [`2def34f`](https://github.com/Mintplex-Labs/anything-llm/commit/2def34fe80c021ef51be4323237569d3ba63f621) comments and linting for option passing - [`61bcc45`](https://github.com/Mintplex-Labs/anything-llm/commit/61bcc45a50406e6cf88f125b060ec34091829e2c) unset - [`c29c5ab`](https://github.com/Mintplex-Labs/anything-llm/commit/c29c5abe7b8f64cca1d52c3fa7b86eb3d1cf6f06) unset - [`10490c1`](https://github.com/Mintplex-Labs/anything-llm/commit/10490c113de1d31a3a90d281edf7e52e597b30b8) update docs link - [`90ec735`](https://github.com/Mintplex-Labs/anything-llm/commit/90ec7355b9aa066d77f35efb55ebf845de819e44) Merge branch 'master' into 3625-bypass-ip-check - [`fa7f12b`](https://github.com/Mintplex-Labs/anything-llm/commit/fa7f12b2e7ba621f73bc6f12c0128415edc3aa46) Merge branch 'master' into 3625-bypass-ip-check ### 📊 Changes **8 files changed** (+173 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/dev-build.yaml` (+1 -1) 📝 `collector/middleware/verifyIntegrity.js` (+7 -2) ➕ `collector/utils/runtimeSettings/index.js` (+83 -0) 📝 `collector/utils/url/index.js` (+18 -0) 📝 `docker/.env.example` (+4 -0) 📝 `server/.env.example` (+4 -0) 📝 `server/utils/collectorApi/index.js` (+53 -3) 📝 `server/utils/helpers/updateENV.js` (+3 -0) </details> ### 📄 Description ### Pull Request Type <!-- For change type, change [ ] to [x]. --> - [x] ✨ feat - [ ] 🐛 fix - [ ] ♻️ refactor - [ ] 💄 style - [ ] 🔨 chore - [ ] 📝 docs ### Relevant Issues <!-- Use "resolves #xxx" to auto resolve on merge. Otherwise, please use "connect #xxx" --> resolves #3625 connect #3626 ### What is in this change? - Enable bypassing for simple IP checks on web-scraping via a collector ENV for those who want to do this - Enabled by default - Set `COLLECTOR_ALLOW_ANY_IP` to any value in your `env` to enable this bypass. <!-- Describe the changes in this PR that are impactful to the repo. --> ### Additional Information <!-- Add any other context about the Pull Request here that was not captured above. --> ### 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](https://docs.anythingllm.com/configuration#local-ip-address-scraping) - [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:35:39 -05:00
yindo closed this issue 2026-02-22 18:35:39 -05:00
yindo changed title from [PR #3652] Enable bypass of ip limitations via ENV in collector processing to [PR #3652] [MERGED] Enable bypass of ip limitations via ENV in collector processing 2026-06-05 15:18:07 -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#4348