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 <noreply@anthropic.com>
This commit is contained in:
parent
d3b7b8ba9b
commit
88e6d04f4e
@ -3,7 +3,7 @@
|
|||||||
"description": "Grant access to mitmproxy",
|
"description": "Grant access to mitmproxy",
|
||||||
"read": {
|
"read": {
|
||||||
"ubus": {
|
"ubus": {
|
||||||
"luci.mitmproxy": ["status", "settings"]
|
"luci.mitmproxy": ["status", "settings", "alerts", "threat_stats"]
|
||||||
},
|
},
|
||||||
"uci": ["mitmproxy"]
|
"uci": ["mitmproxy"]
|
||||||
},
|
},
|
||||||
@ -17,7 +17,11 @@
|
|||||||
"save_settings",
|
"save_settings",
|
||||||
"set_mode",
|
"set_mode",
|
||||||
"setup_firewall",
|
"setup_firewall",
|
||||||
"clear_firewall"
|
"clear_firewall",
|
||||||
|
"clear_alerts",
|
||||||
|
"haproxy_enable",
|
||||||
|
"haproxy_disable",
|
||||||
|
"sync_routes"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"uci": ["mitmproxy"]
|
"uci": ["mitmproxy"]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user