Sites deployer 0.1.0 #1

Merged
oliver.maklott merged 1 commit from deployer-v1 into main 2026-11-20 11:24:01 +01:00

Phase 6 of the Sites plan: the deployer daemon (spec S8/S9).

  • Long-poll of the target's desired state, Ed25519 verification (keys pinned by keyId), strictly increasing serial.
  • Validation against configuration injection (hosts, basic-auth users, bcrypt hashes, capabilities, audiences, manifest paths); objects and manifests hash- and size-checked.
  • Releases from hardlinks (temp + rename), library catalog under lib/, host files per serial, access.json for the gate; on a failed reload every link goes back; takedown, state and GC only after success.
  • Golden vectors shared with the Sites pack; golden host files validated in CI with a pinned Caddy 2.10.2.
  • Deviation from the spec: the main Caddyfile imports sites.d/<target>/*.caddy once per target, because Caddy allows one wildcard per import.

Tests: bad signature, old serial, unknown key, .. paths, malicious user names and hashes change nothing; a failed reload keeps the old state; a fresh directory rebuilds completely; takedown in one reload; GC keeps 3 releases per host.

🤖 Generated with Claude Code

Phase 6 of the Sites plan: the deployer daemon (spec S8/S9). - Long-poll of the target's desired state, Ed25519 verification (keys pinned by `keyId`), strictly increasing serial. - Validation against configuration injection (hosts, basic-auth users, bcrypt hashes, capabilities, audiences, manifest paths); objects and manifests hash- and size-checked. - Releases from hardlinks (temp + rename), library catalog under `lib/`, host files per serial, `access.json` for the gate; on a failed reload every link goes back; takedown, state and GC only after success. - Golden vectors shared with the Sites pack; golden host files validated in CI with a pinned Caddy 2.10.2. - Deviation from the spec: the main Caddyfile imports `sites.d/<target>/*.caddy` once per target, because Caddy allows one wildcard per `import`. Tests: bad signature, old serial, unknown key, `..` paths, malicious user names and hashes change nothing; a failed reload keeps the old state; a fresh directory rebuilds completely; takedown in one reload; GC keeps 3 releases per host. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sites deployer 0.1.0: pull, verify, materialize, render, reload.
All checks were successful
Test / test (pull_request) Successful in 8s
d50d221610
- Long-poll of the target's desired state (bearer token), Ed25519 signature over the canonical payload with keys pinned by keyId, strictly increasing serial, target id.
- Validation against configuration injection: hosts, basic-auth users and bcrypt hashes, capabilities, audiences, manifest paths (relative, no dot segments, depth ≤ 8, no file/dir clash); objects and manifests hash- and size-checked.
- Releases from hardlinks into objects/ (temp + rename), library catalog under lib/, host files per serial outside sites.d, access.json for the gate; links swapped, Caddy reloaded, everything back on a failed reload; takedown, state and GC only after success.
- Header profile and canonical JSON with the Sites pack's golden vectors; golden host files validated by CI with a pinned Caddy 2.10.2.
- Main Caddyfile imports sites.d/<target>/*.caddy per target: Caddy allows one wildcard per import, so the spec's sites.d/*/*.caddy does not load.
- systemd unit, example config, static info and 404 pages, status socket.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
limedoc/limedoc-sites-deployer!1
No description provided.