RealComposer
Client PlatformsOfficial Retool docs

Retool Safe & Unsafe Practices

Direct Answer

Retool resources store credentials on the Retool backend, so queries against them do not expose secrets. JavaScript queries, transformers, and temporary state run in the browser, so keys placed there are visible to every user of the app.

Credentials & Where They Belong

Server only
Resource credentials

Stored and used by the Retool backend.

Client safe
Values in JS queries or state

Visible in the browser. Never use for secrets.

Safe Practices

  • Store credentials in resources

    Use REST or database resources so secrets stay server-side.

  • Use least-privilege database users

    Read-only users for dashboards limit damage from mistakes.

  • Apply permission groups per app

    Restrict who can edit apps and use write queries.

Unsafe Practices

  • Putting API keys in JavaScript queries

    They run in the browser and appear in network traffic.

  • Connecting with an admin database user

    Any app editor can run destructive queries.

The RealComposer Pattern

Add a RealComposer pipeline as a REST resource so Retool apps get merged, slimmed data without holding upstream secrets.

START BUILDING FREE

Frequently Asked Questions

Q:Can Retool users see resource credentials?

No. Credentials stay on the Retool backend. Values in JS code or state are visible.

Security & Secret Vault

Call zendesk api from retool without exposing api token

Internal tools query tickets without embedding subdomain API tokens in queries. For "call zendesk api from retool without exposing api token", store ZENDESK_API_TOKEN in Secret Vault, call https://{{secrets.ZENDESK_SUBDOMAIN}}.zendesk.com/api/v2/tickets.json from a Worker, and let Retool hit only https://realcomposer.com/v1/workspace/call-zendesk-from-retool-securely with an rc_live_ client token.

Sub-10ms edgeView Recipe
Multi-API Aggregation

Merge zendesk with stripe customer support view

Zendesk requester and Stripe customer charges for support macros. For "merge zendesk with stripe customer support view", store ZENDESK_API_TOKEN, STRIPE_SECRET_KEY in Secret Vault, call https://{{secrets.ZENDESK_SUBDOMAIN}}.zendesk.com/api/v2/tickets.json from a Worker, and let Retool hit only https://realcomposer.com/v1/workspace/merge-zendesk-with-stripe-support with an rc_live_ client token.

Sub-10ms edgeView Recipe
Platforms & Frameworks

Retool connect paddle refunds securely

Retool queries RealComposer for Paddle write operations. For "retool connect paddle refunds securely", store PADDLE_API_KEY in Secret Vault, call https://api.paddle.com/adjustments?action=refund&per_page=20 from a Worker, and let Retool hit only https://realcomposer.com/v1/workspace/retool-paddle-refunds-secure-proxy with an rc_live_ client token.

Sub-10ms edgeView Recipe

Related Concepts