You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 11, 2026. It is now read-only.
Full-online R2-only news portal mode must fail safely when Cloudflare R2 is not configured correctly. Image delivery must use a trusted R2 public base URL or custom domain, and local filesystem/image paths must not be used.
Objective
Add configuration validation, production readiness checks, and security readiness gates for Cloudflare R2-only news image delivery.
Depends on: #631, #632, #633, #634
Context
Full-online R2-only news portal mode must fail safely when Cloudflare R2 is not configured correctly. Image delivery must use a trusted R2 public base URL or custom domain, and local filesystem/image paths must not be used.
Objective
Add configuration validation, production readiness checks, and security readiness gates for Cloudflare R2-only news image delivery.
Scope
Add or extend readiness/config checks for:
Failure conditions:
NEWS_IMAGE_STORAGE_POLICY != r2_only.FILE_STORAGE_DRIVER != cloudflare_r2.LOCAL_FILE_UPLOADS_ENABLED=true.LOCAL_MEDIA_STORAGE_ENABLED=true.r2.devinstead of a custom domain, unless explicitly allowed for non-production only.Out of scope
Acceptance criteria
bun run config:validatefails on incomplete R2 news image configuration.bun run security:readinessfails when local media storage is enabled for full-online R2-only mode.bun run production:preflightfails when production uses unsafe public base URL or missing custom domain..env.exampledocuments required variables.bun run checkpasses.Security notes
R2_SECRET_ACCESS_KEY.