Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

fix(notifications): allow signal:// Apprise scheme (#4006) (#4056)

Rahul47d370c45d38
diff --git a/src/local_deep_research/security/notification_validator.py b/src/local_deep_research/security/notification_validator.py
index f5a7dc1101..73409b745e 100644
--- a/src/local_deep_research/security/notification_validator.py
+++ b/src/local_deep_research/security/notification_validator.py
@@ -51,6 +51,7 @@ class NotificationURLValidator:
"pushover", # Pushover notifications
"ntfy", # ntfy.sh notifications (http)
"ntfys", # ntfy.sh notifications (https)
+ "signal", # Signal via signal-api-rest container
"matrix", # Matrix protocol
"mattermost", # Mattermost webhooks
"rocketchat", # Rocket.Chat webhooks
diff --git a/tests/security/test_notification_validator.py b/tests/security/test_notification_validator.py
index fc703544d0..9b106fb78f 100644
--- a/tests/security/test_notification_validator.py
+++ b/tests/security/test_notification_validator.py
@@ -360,6 +360,20 @@ class TestParserDifferentialBypass:
assert is_valid is True
assert error is None
+ def test_apprise_signal_url_accepted(self):
+ """signal:// (Apprise's Signal-API-REST transport) is allowed.
+
+ Regression test for #4006: the validator previously rejected the
+ Signal scheme with "Unsupported protocol". Apprise handles its
+ own host validation for non-http schemes, so private-IP hosts
+ like signal-api-rest containers on the LAN must round-trip.
+ """
+ is_valid, error = NotificationURLValidator.validate_service_url(
+ "signal://192.168.50.20:8739/+15551234567/+15557654321"
+ )
+ assert is_valid is True
+ assert error is None
+
def test_ipv6_unspecified_blocked(self):
"""``::`` (and equivalent forms) routes to local host on Linux."""
is_valid, _ = NotificationURLValidator.validate_service_url(
@@ -514,6 +528,7 @@ class TestClassConstants:
assert "telegram" in allowed
assert "mailto" in allowed
assert "ntfys" in allowed
+ assert "signal" in allowed
def test_private_ip_ranges_exist(self):
"""PRIVATE_IP_RANGES should contain RFC1918 and other private ranges."""