Project documentation

A publishing gate for licensed Cloudinary media.

This project prevents Strapi from publishing an article when its Cloudinary image is expired, not yet licensed, restricted in the target region, or missing required approvals.

How the gate works

Cloudinary is the source of truth for media rights. Strapi checks that evidence at the moment of publication.

  1. Step 1
    Strapi requests publication
    A Document Service middleware intercepts an article before its draft can go live.
  2. Step 2
    Cloudinary supplies evidence
    The gate reads the current structured metadata from the referenced Cloudinary asset.
  3. Step 3
    The policy decides
    License dates, territory, model release, and creative approval are evaluated together.
  4. Step 4
    Strapi allows or blocks
    Only an allowed decision continues publication; uncertainty fails closed.
Cloudinary rights metadata
Seven reusable structured metadata fields travel with each governed asset.
External IDPurpose
drm_rights_ownerWho controls the media rights
drm_license_referenceContract or license identifier
drm_license_startFirst licensed calendar date
drm_license_expirationFinal licensed calendar date
drm_allowed_regionsMarkets where publication is permitted
drm_model_release_statusWhether depicted people are cleared
drm_creative_approval_statusWhether the creative is approved
Fail-closed rules
Publication proceeds only when every required check passes.
  • Required rights metadata is missing or malformed
  • The license has not started or has already expired
  • The article's target region is not licensed
  • The model release or creative approval is not cleared
  • Cloudinary cannot be reached or the delivery window cannot be applied
Try it yourself

Verify the policy in four steps

  1. 1Run the pre-publish check for Kenya and today.
  2. 2Switch the date to after license expiration.
  3. 3Load the four seeded CMS test drafts.
  4. 4Open Strapi and try publishing each draft.

This is a technical governance demonstration, not legal advice or a complete digital rights management system. Previously downloaded media cannot be recalled, so production systems still need contracts, identity controls, audit retention, and an asset-removal process.