mirror of
https://github.com/harivansh-afk/betterNAS.git
synced 2026-04-15 05:02:07 +00:00
Split node enrollment from export sync and issue Finder-compatible DAV credentials so the stack proves the real backend seam before any web UI consumes it.
978 B
978 B
betterNAS Control Plane
Go service that owns the product control plane.
It is intentionally small for now:
GET /healthGET /versionPOST /api/v1/nodes/registerPOST /api/v1/nodes/{nodeId}/heartbeatPUT /api/v1/nodes/{nodeId}/exportsGET /api/v1/exportsPOST /api/v1/mount-profiles/issuePOST /api/v1/cloud-profiles/issue
The request and response shapes must follow the contracts in
packages/contracts.
/api/v1/* endpoints require bearer auth. New nodes register with
BETTERNAS_CONTROL_PLANE_NODE_BOOTSTRAP_TOKEN, client flows use
BETTERNAS_CONTROL_PLANE_CLIENT_TOKEN, and node registration returns an
X-BetterNAS-Node-Token header for subsequent node-scoped register and
heartbeat and export sync calls. Mount profiles now return standard WebDAV
username and password credentials, and multi-export sync should send an
explicit mountPath per export so mount profiles can stay stable across
runtimes.