[PR #4219] [MERGED] feat: Add SSL certificate bypass support for self-hosted Confluence instances #4561

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

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/4219
Author: @nehaaprasad
Created: 7/30/2025
Status: Merged
Merged: 11/25/2025
Merged by: @timothycarambat

Base: masterHead: feat/confluence-ssl-bypass-option


📝 Commits (10+)

  • 2268851 Added bypassSSL parameter to constructor and implemented SSL bypass logic in fetchConfluenceData method
  • a166f71 Updated generateChunkSource function to include bypassSSL in the encrypted payload
  • 9cbd07a Updated the request body to include bypassSSL in the JSON payload sent to the backend
  • 5e943a4 Updated form submission to include bypassSSL parameter from the checkbox
  • 2994fe9 Added bypass_ssl: "Bypass SSL Certificate Validation" translation
  • dc04bf9 passed these parameters to fetchconfluencepage function for proper resync functionality
  • 33e331c Merge branch 'master' into feat/confluence-ssl-bypass-option
  • afb7157 Merge branch 'master' into feat/confluence-ssl-bypass-option
  • e4b19b6 Merge branch 'master' into feat/confluence-ssl-bypass-option
  • 415b1fd allow ignore of SSL cert for Confluence

📊 Changes

27 files changed (+115 additions, -9 deletions)

View changed files

📝 collector/extensions/resync/index.js (+2 -0)
📝 collector/utils/extensions/Confluence/ConfluenceLoader/index.js (+23 -7)
📝 collector/utils/extensions/Confluence/index.js (+15 -2)
📝 frontend/src/components/Modals/ManageWorkspace/DataConnectors/Connectors/Confluence/index.jsx (+28 -0)
📝 frontend/src/locales/ar/common.js (+2 -0)
📝 frontend/src/locales/da/common.js (+2 -0)
📝 frontend/src/locales/de/common.js (+2 -0)
📝 frontend/src/locales/en/common.js (+3 -0)
📝 frontend/src/locales/es/common.js (+2 -0)
📝 frontend/src/locales/et/common.js (+2 -0)
📝 frontend/src/locales/fa/common.js (+2 -0)
📝 frontend/src/locales/fr/common.js (+2 -0)
📝 frontend/src/locales/he/common.js (+2 -0)
📝 frontend/src/locales/it/common.js (+2 -0)
📝 frontend/src/locales/ja/common.js (+2 -0)
📝 frontend/src/locales/ko/common.js (+2 -0)
📝 frontend/src/locales/lv/common.js (+2 -0)
📝 frontend/src/locales/nl/common.js (+2 -0)
📝 frontend/src/locales/pl/common.js (+2 -0)
📝 frontend/src/locales/pt_BR/common.js (+2 -0)

...and 7 more files

📄 Description

  • feat

Relevant Issues

resolves #4217

What is in this change?

This PR adds SSL certificate bypass support for self-hosted Confluence instances. Users can now enable a checkbox to bypass SSL certificate validation when connecting to self-hosted Confluence instances with self-signed certificates.

Key Changes:

  • Added bypassSSL parameter throughout the Confluence connector system
  • Implemented SSL bypass logic in ConfluencePagesLoader that sets NODE_TLS_REJECT_UNAUTHORIZED='0' when enabled
  • Added conditional UI checkbox that only appears for self-hosted Confluence instances
  • Updated resync functionality to preserve SSL bypass settings
  • Added English translations for the new feature

Files Modified:

  • collector/utils/extensions/Confluence/ConfluenceLoader/index.js - Core SSL bypass logic
  • collector/utils/extensions/Confluence/index.js - Parameter passing and chunk source generation
  • frontend/src/models/dataConnector.js - API integration
  • frontend/src/components/Modals/ManageWorkspace/DataConnectors/Connectors/Confluence/index.jsx - UI implementation
  • frontend/src/locales/en/common.js - Translations
  • collector/extensions/resync/index.js - Resync support

Additional Information

This feature addresses the common issue where self-hosted Confluence instances use self-signed SSL certificates that cause connection failures. The implementation properly manages the NODE_TLS_REJECT_UNAUTHORIZED environment variable, setting it to '0' during requests and resetting it to '1' afterward to maintain security for other connections.


🔄 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/4219 **Author:** [@nehaaprasad](https://github.com/nehaaprasad) **Created:** 7/30/2025 **Status:** ✅ Merged **Merged:** 11/25/2025 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `feat/confluence-ssl-bypass-option` --- ### 📝 Commits (10+) - [`2268851`](https://github.com/Mintplex-Labs/anything-llm/commit/2268851efff75b120751e601d0e537366538a4fb) Added bypassSSL parameter to constructor and implemented SSL bypass logic in fetchConfluenceData method - [`a166f71`](https://github.com/Mintplex-Labs/anything-llm/commit/a166f71c5811cd5e6b11ba793526c6638bae19b4) Updated generateChunkSource function to include bypassSSL in the encrypted payload - [`9cbd07a`](https://github.com/Mintplex-Labs/anything-llm/commit/9cbd07a9f8b6d2233e5abebbdb0bf256653727cb) Updated the request body to include bypassSSL in the JSON payload sent to the backend - [`5e943a4`](https://github.com/Mintplex-Labs/anything-llm/commit/5e943a4dfa0287e71578ff4d63fcf74c31e392b1) Updated form submission to include bypassSSL parameter from the checkbox - [`2994fe9`](https://github.com/Mintplex-Labs/anything-llm/commit/2994fe961c7d594d63e6ea82d9fc03338014e193) Added bypass_ssl: "Bypass SSL Certificate Validation" translation - [`dc04bf9`](https://github.com/Mintplex-Labs/anything-llm/commit/dc04bf9742222d4cbea6de27caf21fa8c63c07a6) passed these parameters to fetchconfluencepage function for proper resync functionality - [`33e331c`](https://github.com/Mintplex-Labs/anything-llm/commit/33e331c84bf43e36b0c9cc72bb14ed65e54d6df6) Merge branch 'master' into feat/confluence-ssl-bypass-option - [`afb7157`](https://github.com/Mintplex-Labs/anything-llm/commit/afb715717ad90990f874c358f3327a32ae467bf8) Merge branch 'master' into feat/confluence-ssl-bypass-option - [`e4b19b6`](https://github.com/Mintplex-Labs/anything-llm/commit/e4b19b66eb961870b59a7cd17c3f3ef3941af576) Merge branch 'master' into feat/confluence-ssl-bypass-option - [`415b1fd`](https://github.com/Mintplex-Labs/anything-llm/commit/415b1fd4a35550c946f9dc7373abc6b6dab44810) allow ignore of SSL cert for Confluence ### 📊 Changes **27 files changed** (+115 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `collector/extensions/resync/index.js` (+2 -0) 📝 `collector/utils/extensions/Confluence/ConfluenceLoader/index.js` (+23 -7) 📝 `collector/utils/extensions/Confluence/index.js` (+15 -2) 📝 `frontend/src/components/Modals/ManageWorkspace/DataConnectors/Connectors/Confluence/index.jsx` (+28 -0) 📝 `frontend/src/locales/ar/common.js` (+2 -0) 📝 `frontend/src/locales/da/common.js` (+2 -0) 📝 `frontend/src/locales/de/common.js` (+2 -0) 📝 `frontend/src/locales/en/common.js` (+3 -0) 📝 `frontend/src/locales/es/common.js` (+2 -0) 📝 `frontend/src/locales/et/common.js` (+2 -0) 📝 `frontend/src/locales/fa/common.js` (+2 -0) 📝 `frontend/src/locales/fr/common.js` (+2 -0) 📝 `frontend/src/locales/he/common.js` (+2 -0) 📝 `frontend/src/locales/it/common.js` (+2 -0) 📝 `frontend/src/locales/ja/common.js` (+2 -0) 📝 `frontend/src/locales/ko/common.js` (+2 -0) 📝 `frontend/src/locales/lv/common.js` (+2 -0) 📝 `frontend/src/locales/nl/common.js` (+2 -0) 📝 `frontend/src/locales/pl/common.js` (+2 -0) 📝 `frontend/src/locales/pt_BR/common.js` (+2 -0) _...and 7 more files_ </details> ### 📄 Description - [x] ✨ feat ### Relevant Issues <!-- Use "resolves #xxx" to auto resolve on merge. Otherwise, please use "connect #xxx" --> resolves #4217 ### What is in this change? <!-- Describe the changes in this PR that are impactful to the repo. --> This PR adds SSL certificate bypass support for self-hosted Confluence instances. Users can now enable a checkbox to bypass SSL certificate validation when connecting to self-hosted Confluence instances with self-signed certificates. **Key Changes:** - Added `bypassSSL` parameter throughout the Confluence connector system - Implemented SSL bypass logic in `ConfluencePagesLoader` that sets `NODE_TLS_REJECT_UNAUTHORIZED='0'` when enabled - Added conditional UI checkbox that only appears for self-hosted Confluence instances - Updated resync functionality to preserve SSL bypass settings - Added English translations for the new feature **Files Modified:** - `collector/utils/extensions/Confluence/ConfluenceLoader/index.js` - Core SSL bypass logic - `collector/utils/extensions/Confluence/index.js` - Parameter passing and chunk source generation - `frontend/src/models/dataConnector.js` - API integration - `frontend/src/components/Modals/ManageWorkspace/DataConnectors/Connectors/Confluence/index.jsx` - UI implementation - `frontend/src/locales/en/common.js` - Translations - `collector/extensions/resync/index.js` - Resync support ### Additional Information <!-- Add any other context about the Pull Request here that was not captured above. --> This feature addresses the common issue where self-hosted Confluence instances use self-signed SSL certificates that cause connection failures. The implementation properly manages the `NODE_TLS_REJECT_UNAUTHORIZED` environment variable, setting it to '0' during requests and resetting it to '1' afterward to maintain security for other connections. --- <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:36:04 -05:00
yindo closed this issue 2026-02-22 18:36:05 -05:00
yindo changed title from [PR #4219] feat: Add SSL certificate bypass support for self-hosted Confluence instances to [PR #4219] [MERGED] feat: Add SSL certificate bypass support for self-hosted Confluence instances 2026-06-05 15:19:12 -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#4561