RealComposer

Cloudinary Safe & Unsafe Practices

Direct Answer

Your Cloudinary cloud name and API key appear in URLs and are not secret, but the API secret signs uploads and admin calls and must stay server-side. Prefer signed uploads generated by your server over open unsigned presets.

Credentials & Where They Belong

Client safe
Cloud name and API key

Identify your account in delivery URLs and signed requests.

Server only
API secret

Signs upload and Admin API requests.

Safe Practices

  • Generate upload signatures server-side

    Sign only the parameters you allow, such as folder and resource type, with a short timestamp window.

  • Restrict unsigned presets if you must use them

    Limit formats, file size, and folder, and apply moderation.

Unsafe Practices

  • Embedding the API secret in a client

    Attackers can upload, overwrite, or delete any asset in your account.

  • Leaving an unrestricted unsigned preset open

    Anyone can use your storage and bandwidth quota to host arbitrary files.

The RealComposer Pattern

Store CLOUDINARY_API_SECRET in the vault and expose a signing or Admin API pipeline that returns only the fields the uploader needs.

START BUILDING FREE

Frequently Asked Questions

Q:Can I use Cloudinary unsigned uploads in production?

Only with a tightly restricted preset. Signed uploads are safer because your server controls every parameter.

Cloudinary Recipes

Security & Secret Vault

Call cloudinary api from vue spa without secret key

Upload and transform URLs signed at the edge with API secret in Vault. For "call cloudinary api from vue spa without secret key", store CLOUDINARY_BASIC_AUTH in Secret Vault, call https://api.cloudinary.com/v1_1/{{secrets.CLOUDINARY_CLOUD_NAME}}/resources/image from a Worker, and let Vue / SPA hit only https://realcomposer.com/v1/workspace/call-cloudinary-from-vue-securely with an rc_live_ client token.

Sub-10ms edgeView Recipe

Merge cloudinary assets with contentful entries

Resolve Contentful asset references with Cloudinary transformation metadata. For "merge cloudinary assets with contentful entries", store CLOUDINARY_BASIC_AUTH, CONTENTFUL_ACCESS_TOKEN in Secret Vault, call https://api.cloudinary.com/v1_1/{{secrets.CLOUDINARY_CLOUD_NAME}}/resources/image from a Worker, and let Next.js / React hit only https://realcomposer.com/v1/workspace/merge-cloudinary-with-contentful-entries with an rc_live_ client token.

Sub-10ms edgeView Recipe
Security & Secret Vault

Cloudinary upload api proxy for framer website

Framer components hit RealComposer for signed upload parameters. For "cloudinary upload api proxy for framer website", store CLOUDINARY_BASIC_AUTH in Secret Vault, call https://api.cloudinary.com/v1_1/{{secrets.CLOUDINARY_CLOUD_NAME}}/image/upload from a Worker, and let Framer hit only https://realcomposer.com/v1/workspace/cloudinary-upload-proxy-framer with an rc_live_ client token. POST upstream calls are not stored in caches.default; clients must send JSON bodies and headers forward unchanged.

Sub-10ms edgeView Recipe
Multi-API Aggregation

Merge cloudinary with shopify product images

Shopify product media plus Cloudinary derived URLs in one feed. For "merge cloudinary with shopify product images", store CLOUDINARY_BASIC_AUTH, SHOPIFY_ACCESS_TOKEN in Secret Vault, call https://api.cloudinary.com/v1_1/{{secrets.CLOUDINARY_CLOUD_NAME}}/resources/image from a Worker, and let React hit only https://realcomposer.com/v1/workspace/merge-cloudinary-with-shopify-images with an rc_live_ client token.

Sub-10ms edgeView Recipe
Edge Caching & Rate Limits

Cache cloudinary transformation api at edge

Cache transformation metadata responses per public_id. For "cache cloudinary transformation api at edge", store CLOUDINARY_BASIC_AUTH in Secret Vault, call https://api.cloudinary.com/v1_1/{{secrets.CLOUDINARY_CLOUD_NAME}}/resources/image from a Worker, and let Vue / SPA hit only https://realcomposer.com/v1/workspace/cache-cloudinary-transformations-edge with an rc_live_ client token. Enable 300s GET cache only when query params identify the resource.

Sub-10ms edgeView Recipe
Platforms & Frameworks

React native api gateway for cloudinary uploads

Sign Cloudinary uploads at the edge instead of shipping API secrets in the app bundle. For "react native api gateway for cloudinary uploads", store CLOUDINARY_BASIC_AUTH in Secret Vault, call https://api.cloudinary.com/v1_1/{{secrets.CLOUDINARY_CLOUD_NAME}}/resources/image from a Worker, and let React Native hit only https://realcomposer.com/v1/workspace/best-api-gateway-cloudinary-react-native with an rc_live_ client token.

Sub-10ms edgeView Recipe

Related Concepts