secubox-openwrt/package/secubox/luci-app-secubox-p2p/root/usr/share/rpcd/acl.d/luci-app-secubox-p2p.json
CyberMind-FR 874185951b fix(p2p): Add ACL permissions for Gitea and backup RPCD methods
Add missing ACL permissions for new RPCD methods:

Read permissions:
- get_gitea_config
- list_gitea_repos
- get_gitea_commits
- list_local_backups

Write permissions:
- set_gitea_config
- create_gitea_repo
- push_gitea_backup
- pull_gitea_backup
- create_local_backup
- restore_local_backup

Fixes: RPC call failed with error -32002: Access denied

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 12:22:04 +01:00

51 lines
1.0 KiB
JSON

{
"luci-app-secubox-p2p": {
"description": "SecuBox P2P Hub",
"read": {
"ubus": {
"luci.secubox-p2p": [
"get_peers",
"get_settings",
"get_services",
"get_shared_services",
"discover",
"get_dns_config",
"get_wireguard_config",
"get_haproxy_config",
"get_registry",
"health_check",
"get_gitea_config",
"list_gitea_repos",
"get_gitea_commits",
"list_local_backups"
],
"uci": ["get", "state"]
},
"uci": ["secubox-p2p"]
},
"write": {
"ubus": {
"luci.secubox-p2p": [
"add_peer",
"remove_peer",
"set_settings",
"sync_catalog",
"broadcast_command",
"set_dns_config",
"set_wireguard_config",
"set_haproxy_config",
"register_url",
"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-p2p"]
}
}
}