secubox-openwrt/package/secubox/luci-app-config-vault/root/usr/share/rpcd/acl.d/luci-app-config-vault.json
CyberMind-FR e86545bd3a feat(config-vault): Add device provisioning system
Implement full provisioning workflow for SecuBox device replication:

Auto-Restore:
- import-clone <file> --apply: Auto-restore all modules after import
- restore-all: Restore all modules from vault

Remote Provisioning:
- provision <node|all>: Push clone to remote nodes via RPC proxy
- Transfer clone as base64 to remote node
- Trigger import+apply on remote

First-Boot Pull:
- pull-config <master>: Pull config from master node
- HTTP download or RPC fallback
- Auto-reboot after apply, marks /etc/secubox-provisioned

HTTP Serve:
- serve-clone: Generate clone at /www/config-vault/
- Enables HTTP-based config distribution

RPCD Methods (6 new):
- restore_all, import_apply, provision
- pull_config, export_clone_b64, serve_clone

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

36 lines
929 B
JSON

{
"luci-app-config-vault": {
"description": "Configuration Vault Management",
"read": {
"ubus": {
"luci.config-vault": [
"status",
"modules",
"history",
"diff",
"export_clone_b64"
]
},
"uci": ["config-vault"]
},
"write": {
"ubus": {
"luci.config-vault": [
"backup",
"restore",
"restore_all",
"push",
"pull",
"init",
"export_clone",
"import_apply",
"provision",
"pull_config",
"serve_clone"
]
},
"uci": ["config-vault"]
}
}
}