From 88e6d04f4ed8f75594e87b103ee0716aa3a1e534 Mon Sep 17 00:00:00 2001 From: CyberMind-FR Date: Sat, 31 Jan 2026 18:40:46 +0100 Subject: [PATCH] fix(mitmproxy): Add missing RPC methods to ACL permissions The alerts, threat_stats, clear_alerts, haproxy_enable, haproxy_disable, and sync_routes methods were not in the ACL file, causing permission denied errors when calling them from LuCI. Co-Authored-By: Claude Opus 4.5 --- .../root/usr/share/rpcd/acl.d/luci-app-mitmproxy.json | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/package/secubox/luci-app-mitmproxy/root/usr/share/rpcd/acl.d/luci-app-mitmproxy.json b/package/secubox/luci-app-mitmproxy/root/usr/share/rpcd/acl.d/luci-app-mitmproxy.json index 37ba6681..265e99ca 100644 --- a/package/secubox/luci-app-mitmproxy/root/usr/share/rpcd/acl.d/luci-app-mitmproxy.json +++ b/package/secubox/luci-app-mitmproxy/root/usr/share/rpcd/acl.d/luci-app-mitmproxy.json @@ -3,7 +3,7 @@ "description": "Grant access to mitmproxy", "read": { "ubus": { - "luci.mitmproxy": ["status", "settings"] + "luci.mitmproxy": ["status", "settings", "alerts", "threat_stats"] }, "uci": ["mitmproxy"] }, @@ -17,7 +17,11 @@ "save_settings", "set_mode", "setup_firewall", - "clear_firewall" + "clear_firewall", + "clear_alerts", + "haproxy_enable", + "haproxy_disable", + "sync_routes" ] }, "uci": ["mitmproxy"]