fix: Update ACL files to use proper luci.* ubus object naming
Updated ACL permissions for 4 modules to use correct ubus object names with the mandatory 'luci.' prefix: - luci-app-auth-guardian: auth-guardian → luci.auth-guardian - luci-app-netifyd-dashboard: netifyd → luci.netifyd-dashboard - luci-app-network-modes: network-modes → luci.network-modes - luci-app-wireguard-dashboard: wireguard-dashboard → luci.wireguard-dashboard Also updated method names and UCI config references to match current RPCD backend implementations. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
0759c748dd
commit
1122f84e58
@ -3,15 +3,28 @@
|
|||||||
"description": "Auth Guardian",
|
"description": "Auth Guardian",
|
||||||
"read": {
|
"read": {
|
||||||
"ubus": {
|
"ubus": {
|
||||||
"luci.auth-guardian": ["status", "sessions", "vouchers", "oauth_providers", "bypass_list"]
|
"luci.auth-guardian": [
|
||||||
|
"status",
|
||||||
|
"list_providers",
|
||||||
|
"list_vouchers",
|
||||||
|
"list_sessions",
|
||||||
|
"get_logs"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"uci": ["authguard"]
|
"uci": ["auth_guardian"]
|
||||||
},
|
},
|
||||||
"write": {
|
"write": {
|
||||||
"ubus": {
|
"ubus": {
|
||||||
"luci.auth-guardian": ["generate_voucher"]
|
"luci.auth-guardian": [
|
||||||
|
"set_provider",
|
||||||
|
"delete_provider",
|
||||||
|
"create_voucher",
|
||||||
|
"delete_voucher",
|
||||||
|
"validate_voucher",
|
||||||
|
"revoke_session"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"uci": ["authguard"]
|
"uci": ["auth_guardian"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -3,9 +3,19 @@
|
|||||||
"description": "Grant access to LuCI Netifyd Dashboard",
|
"description": "Grant access to LuCI Netifyd Dashboard",
|
||||||
"read": {
|
"read": {
|
||||||
"ubus": {
|
"ubus": {
|
||||||
"netifyd": [ "status", "flows", "applications", "protocols", "devices", "stats" ],
|
"luci.netifyd-dashboard": [
|
||||||
|
"status",
|
||||||
|
"flows",
|
||||||
|
"applications",
|
||||||
|
"protocols",
|
||||||
|
"devices",
|
||||||
|
"stats",
|
||||||
|
"risks",
|
||||||
|
"category_bandwidth",
|
||||||
|
"top_talkers",
|
||||||
|
"dns_queries"
|
||||||
|
],
|
||||||
"system": [ "info", "board" ],
|
"system": [ "info", "board" ],
|
||||||
"luci-rpc": [ "getNetifydStats" ],
|
|
||||||
"file": [ "read", "stat" ]
|
"file": [ "read", "stat" ]
|
||||||
},
|
},
|
||||||
"uci": [ "netifyd", "netifyd-dashboard" ]
|
"uci": [ "netifyd", "netifyd-dashboard" ]
|
||||||
|
|||||||
@ -3,17 +3,12 @@
|
|||||||
"description": "Grant access to LuCI Network Modes Dashboard",
|
"description": "Grant access to LuCI Network Modes Dashboard",
|
||||||
"read": {
|
"read": {
|
||||||
"ubus": {
|
"ubus": {
|
||||||
"network-modes": [
|
"luci.network-modes": [
|
||||||
"status",
|
"status",
|
||||||
"modes",
|
|
||||||
"get_current_mode",
|
"get_current_mode",
|
||||||
"get_available_modes",
|
"get_available_modes",
|
||||||
"preview_changes",
|
"get_interfaces",
|
||||||
"sniffer_config",
|
"validate_config"
|
||||||
"ap_config",
|
|
||||||
"relay_config",
|
|
||||||
"router_config",
|
|
||||||
"generate_config"
|
|
||||||
],
|
],
|
||||||
"system": [ "info", "board" ],
|
"system": [ "info", "board" ],
|
||||||
"network.interface": [ "status", "dump" ],
|
"network.interface": [ "status", "dump" ],
|
||||||
@ -28,13 +23,8 @@
|
|||||||
},
|
},
|
||||||
"write": {
|
"write": {
|
||||||
"ubus": {
|
"ubus": {
|
||||||
"network-modes": [
|
"luci.network-modes": [
|
||||||
"set_mode",
|
"set_mode"
|
||||||
"apply_mode",
|
|
||||||
"confirm_mode",
|
|
||||||
"rollback",
|
|
||||||
"update_settings",
|
|
||||||
"add_vhost"
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"uci": [ "network", "wireless", "firewall", "dhcp", "network-modes" ]
|
"uci": [ "network", "wireless", "firewall", "dhcp", "network-modes" ]
|
||||||
|
|||||||
@ -3,7 +3,13 @@
|
|||||||
"description": "Grant access to LuCI WireGuard Dashboard",
|
"description": "Grant access to LuCI WireGuard Dashboard",
|
||||||
"read": {
|
"read": {
|
||||||
"ubus": {
|
"ubus": {
|
||||||
"wireguard-dashboard": [ "status", "interfaces", "peers", "traffic", "config" ],
|
"luci.wireguard-dashboard": [
|
||||||
|
"status",
|
||||||
|
"get_interfaces",
|
||||||
|
"get_peers",
|
||||||
|
"config",
|
||||||
|
"traffic"
|
||||||
|
],
|
||||||
"system": [ "info", "board" ],
|
"system": [ "info", "board" ],
|
||||||
"file": [ "read", "stat", "exec" ]
|
"file": [ "read", "stat", "exec" ]
|
||||||
},
|
},
|
||||||
@ -14,6 +20,15 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"write": {
|
"write": {
|
||||||
|
"ubus": {
|
||||||
|
"luci.wireguard-dashboard": [
|
||||||
|
"generate_keys",
|
||||||
|
"add_peer",
|
||||||
|
"remove_peer",
|
||||||
|
"generate_config",
|
||||||
|
"generate_qr"
|
||||||
|
]
|
||||||
|
},
|
||||||
"uci": [ "wireguard-dashboard" ]
|
"uci": [ "wireguard-dashboard" ]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user