Images come from S3, and private ones need a signed link.
CloudFront serves /images straight from a private bucket, so Lambda is never invoked for an image. Anything under /images/public is open. Everything else needs a link that Lucee signs and that expires.
- Certificate serial
- 1E0EBD1E-2CD4-4F39-945A55A0C64F8D0E
One open, one signed
| Image | Link | Who can load it |
|---|---|---|
| Open | /images/public/open-mark.svg | Anyone, from any site |
| Signed | /images/signed-mark.svg?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlI… | Whoever holds this link, until 2026-11-30 11:01:13 UTC |
| Same image, no signature | /images/signed-mark.svg | Nobody. CloudFront answers 403 |
Signing a link in CFML
new Images().signed( "/images/report.png", 300 ) returns the path with a signature that lasts 300 seconds. The link is relative and the signature covers any host name, so it keeps working when a custom domain replaces the CloudFront address.