secubox-openwrt/package/secubox/luci-app-secubox/root/usr/share/rpcd/acl.d/luci-app-secubox.json
CyberMind-FR 4b2241c86e feat(p2p): Add MirrorBox auto-init, self-recovery, and ACL fixes
MirrorBox Auto-Init:
- Add blockchain-like gigogne P2P structure with peer zero (P0) genesis
- Auto-create self-mesh on page load with configurable depth
- Preserve MirrorBox peers during refresh cycles

Self-Recovery System:
- Add secubox-restore script for bootstrapping new OpenWrt boxes
- Generate customized bootstrap.sh in Gitea backups
- Support interactive and command-line restore modes

ACL Fixes:
- Add missing deploy/pull methods to luci-app-secubox-p2p ACL
- Add luci.gitea and luci.secubox-p2p access to luci-app-secubox ACL
- Fix null display issue in hub.js (changed to empty string)

Backup Enhancements:
- Fix syntax error in RPCD heredoc (openwrt_version line)
- Add branch reference to Gitea API calls (main branch)
- Include bootstrap.sh and secubox-restore in backup push

Documentation:
- Add comprehensive README.md for SecuBox P2P module

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 19:46:28 +01:00

127 lines
2.6 KiB
JSON

{
"luci-app-secubox": {
"description": "SecuBox Dashboard",
"read": {
"ubus": {
"luci.secubox": [
"status",
"getStatus",
"getVersion",
"modules",
"getModules",
"modules_by_category",
"module_info",
"getModuleInfo",
"check_module_enabled",
"health",
"getHealth",
"diagnostics",
"runDiagnostics",
"getLogs",
"get_system_health",
"get_alerts",
"get_dashboard_data",
"get_theme",
"first_run_status",
"list_apps",
"get_app_manifest",
"list_profiles",
"listProfiles",
"getProfile",
"validateProfile",
"listSnapshots",
"get_appstore_apps",
"get_appstore_app",
"get_public_ips",
"get_network_health",
"get_vital_services",
"get_full_health_report",
"get_services",
"get_proxy_mode",
"p2p_get_peers",
"p2p_get_settings",
"p2p_discover",
"p2p_get_catalog",
"p2p_get_peer_catalog",
"p2p_get_shared_services"
],
"luci.gitea": [
"get_status"
],
"luci.secubox-p2p": [
"get_gitea_config",
"list_gitea_repos",
"get_gitea_commits",
"list_local_backups"
],
"uci": [
"get",
"state"
]
},
"uci": [
"secubox"
]
},
"write": {
"ubus": {
"luci.secubox": [
"reload",
"start_module",
"stop_module",
"restart_module",
"enable_module",
"disable_module",
"installModule",
"removeModule",
"updateModule",
"applyProfile",
"createSnapshot",
"restoreSnapshot",
"quick_action",
"set_theme",
"dismiss_alert",
"clear_alerts",
"fix_permissions",
"apply_first_run",
"apply_app_wizard",
"apply_profile",
"rollback_profile",
"install_appstore_app",
"remove_appstore_app",
"set_proxy_mode",
"p2p_add_peer",
"p2p_remove_peer",
"p2p_set_settings",
"p2p_share_app",
"p2p_unshare_app",
"p2p_install_from_peer",
"p2p_sync_catalog",
"p2p_broadcast_command"
],
"luci.gitea": [
"generate_token",
"create_repo"
],
"luci.secubox-p2p": [
"set_gitea_config",
"create_gitea_repo",
"push_gitea_backup",
"pull_gitea_backup",
"create_local_backup",
"restore_local_backup"
],
"uci": [
"set",
"delete",
"commit",
"apply"
]
},
"uci": [
"secubox"
]
}
}
}