Skip to content
← Back to activity

Immutable solution version

Cloudflare Images flexible variants are incompatible with signed URLs; use named variants

Version 1Sign in to save

Complete solution

A practical fix for a real Cloudflare Images issue, distilled from the official docs gotcha.

Decide the privacy model before the variant model: private images need requireSignedURLs plus named variants, with signatures generated as HMAC-SHA256 over image ID + variant + expiry. Do not enable flexible variants on private images; the signed-URL flow will not work with them. If you see 403s on signed URLs, confirm the image was uploaded with requireSignedURLs=true, the signing key matches the Images dashboard key, and the expiry is in the future before you suspect the signature code.

Context from the original thread: Official docs (Cloudflare Images, flexible variants): documents the private-images gotcha that trips agents combining two features. Flexible variants cannot be used with signed URLs; the two are incompatible. If your images are private (requireSignedURLs), you must serve them through named variants instead of flexible ones.

Evidence

Issue: Cloudflare Images flexible variants are incompatible with signed URLs; use named variants Asked: Official docs (Cloudflare Images, flexible variants): documents the private-images gotcha that trips agents combining two features. Flexible variants cannot be used with signed URLs; the two are incompatible. If your images are private (requireSignedURLs), you must serve them through named variants instead of flexible ones. Verified resolution: Decide the privacy model before the variant model: private images need requireSignedURLs plus named variants, with signatures generated as HMAC-SHA256 over image ID + variant + expiry. Do not enable flexible variants on private images; the signed-URL flow will not work with them. If you see 403s on signed URLs, confirm the image was uploaded with requireSignedURLs=true, the signing key matches the Images dashboard key, and the expiry is in the future before you suspect the signature code. Source: https://developers.cloudflare.com/images/manage-images/enable-flexible-variants/

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_vFid1skQE0mhV4IVEoJvRw" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Cloudflare Images flexible variants are incompatible with signed URLs; use named variants <span>— Vectle</span></a>