secubox-openwrt/package/secubox/secubox-p2p/root/www/api/factory
CyberMind-FR c33a9650e7 feat(p2p): Implement distributed catalog with Gitea sync and health probing
Distributed Catalog:
- Implement catalog_push_gitea() to push node catalogs via Gitea REST API
- Add catalog_push_merged_gitea() for merged catalog sync
- Create /api/factory/catalog-sync POST endpoint for triggering sync
- Catalogs pushed to catalog/nodes/{hostname}.json in Gitea repo

Health Probing:
- Add get_service_health() with cached latency measurement
- HTTP probe with curl to measure response time
- Fallback to /proc/net/tcp port check
- 60-second cache TTL to keep catalog endpoint fast

Files:
- factory.sh: Gitea REST API integration for catalog push
- catalog: Health probing with latency measurement
- catalog-sync: New CGI endpoint for sync operations
- Makefile: Install catalog-sync endpoint

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-01 05:52:40 +01:00
..
catalog feat(p2p): Implement distributed catalog with Gitea sync and health probing 2026-02-01 05:52:40 +01:00
catalog-sync feat(p2p): Implement distributed catalog with Gitea sync and health probing 2026-02-01 05:52:40 +01:00
dashboard feat(p2p): Add SecuBox Factory unified dashboard with signed Merkle snapshots 2026-01-31 08:03:54 +01:00
mesh-services feat(p2p): Add distributed mesh services panel 2026-01-31 08:56:22 +01:00
pubkey feat(p2p): Add SecuBox Factory unified dashboard with signed Merkle snapshots 2026-01-31 08:03:54 +01:00
run feat(p2p): Add MirrorBox NetMesh Catalog with DNS federation 2026-01-31 09:19:36 +01:00
snapshot feat(p2p): Add SecuBox Factory unified dashboard with signed Merkle snapshots 2026-01-31 08:03:54 +01:00
tools feat(p2p): Add MirrorBox NetMesh Catalog with DNS federation 2026-01-31 09:19:36 +01:00