Recipe
Signed URLs for Secure CDN Delivery
Generate time-limited, cryptographically signed download URLs so only paying customers can access your payloads.
Overview
Meridian signs every CDN URL with an Ed25519 keypair. The loader verifies the signature before fetching the payload. Expired or tampered URLs are rejected at the edge — no request ever reaches your origin.
URL Structure
https://cdn.getnimbus.net/d/payload.bin ?exp=1717200000 &sig=8a7f3c9d2e1b...exp — Unix timestamp expiration. sig — Ed25519 signature over the full URL path + exp.
Verification Flow
- Loader receives signed URL from license server.
- Extracts path, exp, and sig components.
- Checks current time against exp — rejects if expired.
- Recomputes Ed25519 signature using embedded public key — rejects on mismatch.
- Proceeds with download only if all checks pass.
Key Rotation
Rotate signing keys by embedding multiple public keys in the loader. Each signed URL includes a kid parameter so the loader knows which key to use. Revoke a compromised key by removing it from the next loader update.
Next: Anti-Tamper Bundling →