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

Related Concepts