No description
  • C# 87.7%
  • Astro 7.1%
  • PowerShell 2.4%
  • TypeScript 2.2%
  • CSS 0.4%
  • Other 0.2%
Find a file
Michael Davis 21ef7a258d Add Paddle license Worker (webhook adapter + Ed25519 token minting)
Implements the narrow license-only backend from updates-and-licensing.md
§A8 (sequencing step 5, partial). New license-worker/ Cloudflare Worker:

- POST /v1/paddle/webhook: verify Paddle HMAC-SHA256 signature -> upsert
  license in D1, idempotent by event_id (no timestamp-age rejection so
  Paddle retries aren't dropped).
- POST /v1/license/refresh: license id -> current status + a freshly
  minted Ed25519 JWS entitlement token (serves activation + re-check).
- GET /v1/pubkey + /health.

The token is the anti-lock-in core: signed with a Worker-held private key,
verified OFFLINE by the app against a baked-in public key, so swapping the
Merchant-of-Record only rewrites the webhook event-mapping. No project data
ever touches the service.

Validated: tsc clean; 5 unit tests green (token mint->offline-verify
roundtrip + Paddle signature accept/reject/tamper cases); keygen works.
Not yet deployed (D1/secrets/live webhook unprovisioned).

Also records the MoR decision (Paddle) and licensing handoff notes in
updates-and-licensing.md.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-28 08:12:34 -07:00
docs Add Azure Trusted Signing branch to installer/Velopack signing seam 2026-06-28 07:46:18 -07:00
eng Add Azure Trusted Signing branch to installer/Velopack signing seam 2026-06-28 07:46:18 -07:00
installer Add Velopack auto-update + dual-format Windows packaging 2026-06-28 07:23:26 -07:00
license-worker Add Paddle license Worker (webhook adapter + Ed25519 token minting) 2026-06-28 08:12:34 -07:00
spikes/TimelineSpike Build native Director prototype with OpenAI logging 2026-06-07 21:15:23 -07:00
src Add Velopack auto-update + dual-format Windows packaging 2026-06-28 07:23:26 -07:00
tests/Volarra.Tests Make the project chooser the top level of the app 2026-06-22 19:42:14 -07:00
website website: add Concepts & Glossary page + concepts reference doc 2026-06-25 08:20:38 -07:00
.gitignore Add Velopack auto-update + dual-format Windows packaging 2026-06-28 07:23:26 -07:00
gemini-feedback.md Add storyboard frame generation 2026-06-09 20:25:15 -07:00
notes.md Add Azure Trusted Signing branch to installer/Velopack signing seam 2026-06-28 07:46:18 -07:00
NuGet.Config Build native Director prototype with OpenAI logging 2026-06-07 21:15:23 -07:00
prd.md Add shared generation queue with bounded parallelism 2026-06-19 11:46:03 -07:00
updates-and-licensing.md Add Paddle license Worker (webhook adapter + Ed25519 token minting) 2026-06-28 08:12:34 -07:00
Volarra.slnx Build native Director prototype with OpenAI logging 2026-06-07 21:15:23 -07:00