Milestone 3: the hub

lunehub serves accounts, invites, pairing codes, memberships, devices
and vaults as plain bare repos (SPEC §8), checks device key and role on
every Git request, refuses secrets in a pre-receive hook (P3) and logs
every access change. Ships as one container (Dockerfile, compose.yaml).

lunesync gains join, login, pair, vault new/upload, invite, grant,
members and hub log; `run` picks up new vaults and roles from the hub.
Read members' edits stay local.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-29 00:47:54 +07:00
parent 62bc3db416
commit 2b4ca84a6b
23 changed files with 2578 additions and 58 deletions

16
compose.yaml Normal file
View File

@@ -0,0 +1,16 @@
services:
hub:
build: .
restart: unless-stopped
ports:
- "8080:8080"
environment:
# The address people and devices use to reach the hub (behind your TLS proxy).
LUNE_HUB_URL: https://hub.example.com
# Name of the team owner; their one-time join link is printed in the log on first start.
LUNE_OWNER_NAME: Sen
volumes:
- hub-data:/data
volumes:
hub-data: