secubox-openwrt/package/secubox/luci-app-wireguard-dashboard/root/usr/share/rpcd/acl.d/luci-app-wireguard-dashboard.json
CyberMind-FR 02126aa7d3 feat(wireguard-dashboard): Persist server endpoints in UCI for reuse across views
Server endpoints were stored only in browser sessionStorage, lost on tab
close/refresh. Now endpoints are saved in a dedicated UCI config file
(wireguard_dashboard) with RPCD methods to manage them. The wizard
auto-saves the endpoint after tunnel creation, and peers/QR views use a
dropdown of saved endpoints instead of requiring manual re-entry.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 18:32:36 +01:00

48 lines
1006 B
JSON

{
"luci-app-wireguard-dashboard": {
"description": "Grant access to LuCI WireGuard Dashboard",
"read": {
"ubus": {
"luci.wireguard-dashboard": [
"status",
"interfaces",
"peers",
"config",
"traffic",
"peer_descriptions",
"bandwidth_rates",
"bandwidth_history",
"endpoint_info",
"get_endpoints"
],
"system": [ "info", "board" ],
"file": [ "read", "stat", "exec" ]
},
"uci": [ "network", "wireguard_dashboard" ],
"file": {
"/etc/config/network": [ "read" ],
"/etc/config/wireguard_dashboard": [ "read" ],
"/usr/bin/wg": [ "exec" ]
}
},
"write": {
"ubus": {
"luci.wireguard-dashboard": [
"generate_keys",
"create_interface",
"add_peer",
"remove_peer",
"generate_config",
"generate_qr",
"interface_control",
"ping_peer",
"set_endpoint",
"set_default_endpoint",
"delete_endpoint"
]
},
"uci": [ "wireguard_dashboard", "network" ]
}
}
}