Sites pack 0.1.0: targets, setup, preview, publish, approval and access #1

Merged
oliver.maklott merged 5 commits from phase-1 into main 2026-11-20 11:05:53 +01:00

First release of the Sites pack (needs Limedoc 0.85.0).

  • Deployment targets (admin pages: targets JSON, deployer token, signing key; sites overview).
  • Set a folder up as a website (start template, slug rules, per-target publishers).
  • Preview on <siteKey>.site.<preview-domain> (one-time link, host cookie, same transform and headers as live).
  • Publish: checks with line numbers, info notice transform, content-addressed objects and canonical manifests, history.
  • Approval in school targets: person release with consent, approve/reject/freeze/take down/roll back, review diff and snapshot preview, approvals dashboard widget.
  • Access per site (public, basic with bcrypt credentials, oidc school/course), capabilities, noindex.

Desired state + deployer API follow in the next release.

🤖 Generated with Claude Code

First release of the Sites pack (needs Limedoc 0.85.0). - Deployment targets (admin pages: targets JSON, deployer token, signing key; sites overview). - Set a folder up as a website (start template, slug rules, per-target publishers). - Preview on `<siteKey>.site.<preview-domain>` (one-time link, host cookie, same transform and headers as live). - Publish: checks with line numbers, info notice transform, content-addressed objects and canonical manifests, history. - Approval in school targets: person release with consent, approve/reject/freeze/take down/roll back, review diff and snapshot preview, approvals dashboard widget. - Access per site (public, basic with bcrypt credentials, oidc school/course), capabilities, noindex. Desired state + deployer API follow in the next release. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
- Targets in data/config/sites-targets.json: context school/general, publishers/approvers by role or claim, access modes, capabilities, limits, slug blocklist; deployer token (hash only, shown once) and Ed25519 signing key per target.
- Setup: edit on the folder + selectable target; folder marker and files listing, starter index.html/style.css/script.js and images folder (never overwriting); slug rules, anonymous slug suggestion for school targets, per-target uniqueness under a plugin mutex.
- Site records in the durable pack store, indexed by folder id and preview key.
- Folder panel (folder action) and admin pages (targets, overview).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Host route serving the folder's draft at the host root: same header profile as the live site (CSP, Permissions-Policy from fixed building blocks, golden vectors), info notice inject-info@1, X-Robots-Tag noindex and no-store always; other hosts 404.
- One-time link token (HMAC, 2 min, nonce marked used under a pack mutex) → __Host-preview cookie (2 h) bound to the site's preview host; sessions hold sub, roles and admin flags only; every request re-checks read on the folder and on the file.
- preview/ask for Caddy on_demand_tls; setting previewDomain (reloads on save, refreshed every 30 s).
- Targets gain noindex policy, injectInfo, infoUrl, infoText and an optional oidc client.
- "Preview" button in the folder panel.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Phase 3: publish — checks, info notice, content-addressed snapshots, canonical manifests.
All checks were successful
Publish / dev-image (pull_request) Successful in 1s
Publish / test (pull_request) Successful in 57s
Publish / pack-and-publish (pull_request) Has been skipped
ef85aa43d9
- Collect every file below the folder as the publisher may read it (documents noted, never published); limits per target with per-site override.
- Checks with file and line: blocking errors (no index.html, extension allowlist, limits, unsafe paths, _lib/ folder, unreadable files) and warnings (missing and case-mismatched references, external resources, unknown /_lib/ entries, form actions, camera/WebAssembly/WebRTC without capability), messages in de/en.
- inject-info@1 on HTML of targets with the info notice; objects by SHA-256 in the pack store (deduplicated); manifest per spec, hash = SHA-256 of its canonical JSON; sources never written.
- Approval rules: school first publish, address change, wider access, added capability and changes of a frozen site go to pending; other content changes and general targets go live; the same content twice is "unchanged".
- Entity and pack audit records; in-process served-change notification for the desired-state builder.
- Folder panel: Check and Publish with the findings list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Phase 4: approval, person releases, access and capabilities.
All checks were successful
Publish / dev-image (pull_request) Successful in 1s
Publish / test (pull_request) Successful in 48s
Publish / pack-and-publish (pull_request) Has been skipped
e81b4b6f8c
- Person release per school target with confirmed guardian consent, one person at a time; an unreleased pupil's publish files a request; revoking takes the person's sites in the target offline.
- Approver actions (approvers of the target who read the folder, app admins): approve / reject with a message, freeze / unfreeze, take offline, roll back; owners of general sites roll back too. Entity audit with subject, site and manifest; served-change notification.
- Review of a pending version: reasons, file diff, preview of exactly that snapshot.
- Access per site within the target (public, basic, oidc with school/course audience), capabilities, noindex; basic credentials (at most 5, bcrypt cost 12 from vendored bcryptjs 3.0.2, ≥ 10 characters, three-word suggestion, shown once).
- Approvals dashboard widget (requests with consent checkbox, pending sites, recent changes); folder panel sections for settings, credentials and approver tools; owner notices.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
oliver.maklott changed title from Sites pack 0.1.0: targets, setup, preview, publish to Sites pack 0.1.0: targets, setup, preview, publish, approval and access 2026-11-20 11:05:52 +01:00
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-plugins/sites!1
No description provided.