Add get_settings to read permissions and save_settings to write permissions to fix RPC access denied error (-32002) on the settings page. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
69 lines
1.5 KiB
JSON
69 lines
1.5 KiB
JSON
{
|
|
"luci-app-crowdsec-dashboard": {
|
|
"description": "Grant access to LuCI CrowdSec Dashboard",
|
|
"read": {
|
|
"ubus": {
|
|
"luci.crowdsec-dashboard": [
|
|
"get_overview",
|
|
"decisions",
|
|
"alerts",
|
|
"metrics",
|
|
"bouncers",
|
|
"machines",
|
|
"hub",
|
|
"status",
|
|
"stats",
|
|
"secubox_logs",
|
|
"waf_status",
|
|
"metrics_config",
|
|
"collections",
|
|
"firewall_bouncer_status",
|
|
"firewall_bouncer_config",
|
|
"nftables_stats",
|
|
"check_wizard_needed",
|
|
"wizard_state",
|
|
"console_status",
|
|
"acquisition_config",
|
|
"acquisition_metrics",
|
|
"health_check",
|
|
"capi_metrics",
|
|
"hub_available",
|
|
"get_settings"
|
|
],
|
|
"uci": [ "get", "state", "configs" ],
|
|
"file": [ "read", "stat", "exec" ]
|
|
},
|
|
"uci": [ "crowdsec", "crowdsec-dashboard" ]
|
|
},
|
|
"write": {
|
|
"ubus": {
|
|
"luci.crowdsec-dashboard": [
|
|
"ban",
|
|
"unban",
|
|
"collect_debug",
|
|
"configure_metrics",
|
|
"install_collection",
|
|
"remove_collection",
|
|
"update_hub",
|
|
"register_bouncer",
|
|
"delete_bouncer",
|
|
"control_firewall_bouncer",
|
|
"update_firewall_bouncer_config",
|
|
"repair_lapi",
|
|
"console_enroll",
|
|
"console_disable",
|
|
"service_control",
|
|
"configure_acquisition",
|
|
"reset_wizard",
|
|
"install_hub_item",
|
|
"remove_hub_item",
|
|
"save_settings"
|
|
],
|
|
"uci": [ "set", "add", "delete", "rename", "order", "commit", "apply", "confirm", "rollback" ],
|
|
"file": [ "exec" ]
|
|
},
|
|
"uci": [ "crowdsec", "crowdsec-dashboard" ]
|
|
}
|
|
}
|
|
}
|