Your lightweight open-source personal agent.
Python agent-frameworkai-agentai-agentschatbotchatopsdiscord-botllm-agentsllmslocal-llmmcpmodel-context-protocolmulti-agentopenai-compatibleopenclawpersonal-ai-assistantpythonself-hostedtelegram-bot-ai-assistantwebuiworkflow-automation
security: deny by default in is_allowed for all channels
chengyongrud447be5ca22c
diff --git a/nanobot/channels/base.py b/nanobot/channels/base.pyindex f7959312d..d73d34c84 100644--- a/nanobot/channels/base.py+++ b/nanobot/channels/base.py@@ -70,9 +70,16 @@ class BaseChannel(ABC):"""allow_list = getattr(self.config, "allow_from", [])- # If no allow list, allow everyone+ # Security fix: If no allow list, deny everyone by default+ # This prevents unauthorized access when allow_from is not configuredif not allow_list:- return True+ logger.warning(+ "Channel {} has no allow_from configured - "+ "blocking all access by default for security. "+ "Add allowed senders to config to enable access.",+ self.name,+ )+ return Falsesender_str = str(sender_id)if sender_str in allow_list: