RealComposer
WebflowFirebaseSecurity & Secret Vault

Firebase rest api proxy for webflow site

Firestore-backed Webflow dynamic content

Direct Answer & Architecture Summary

Firestore REST reads via edge with service token vault injection. For "firebase rest api proxy for webflow site", store FIREBASE_ACCESS_TOKEN in Secret Vault, call https://firestore.googleapis.com/v1/projects/{{query.projectId}}/databases/(default)/documents/{{query.collection}}/{{query.docId}} from a Worker, and let Webflow hit only https://realcomposer.com/v1/workspace/firebase-rest-proxy-webflow with an rc_live_ client token.

Security LevelAES-256-GCM Vault
Edge LatencySub-10ms Response
InfrastructureZero Server Maintenance
The Problem Solved

Firebase keys in Webflow network tabs

Webflow ships code or scripts to end-user devices. Any Firebase bearer token in those bundles can be copied from DevTools, proxies, or repackaged apps.

Critical Security & Operational Risks:
  • Shared Webflow projects revealing Firebase tokens
  • Sudden Firebase quota burn from scripted abuse
  • Inability to rotate keys without redeploying clients
Architecture & Step-by-Step Implementation

How RealComposer Solves This at the Edge

1

Add vault secrets for this pipeline

Create FIREBASE_ACCESS_TOKEN vault entries, then bind them to this pipeline step headers with {{secrets.NAME}} placeholders.

2

Target the real upstream URL

Point step firebase at https://firestore.googleapis.com/v1/projects/{{query.projectId}}/databases/(default)/documents/{{query.collection}}/{{query.docId}} with GET. Add output mapping fields that mirror the JSON contract your screen already expects. Leave cache TTL at 0 when each response is user-specific (include userId or record id in query params before enabling cache).

3

Call from Webflow custom code

Call https://realcomposer.com/v1/workspace/firebase-rest-proxy-webflow with a restricted rc_live_ client token. Webflow never sends upstream secrets.

                    fetch('https://realcomposer.com/v1/workspace/firebase-rest-proxy-webflow', {
  headers: { Authorization: 'Bearer rc_live_your_token' }
}).then(r => r.json());
                  
Payload Slimming Comparison
85% Bandwidth Reduction
Raw Upstream Response246 B
              {
  "requestId": "req_firebase",
  "upstreamLatencyMs": 142,
  "audit": {
    "region": "edge",
    "trace": "firebase-rest-proxy-webflow"
  },
  "payload": {
    "id": "sample_id",
    "status": "active",
    "nested": {
      "tags": [
        "demo"
      ],
      "internal": true
    },
    "unused_blob": {
      "foo": "bar",
      "bar": "baz"
    }
  }
}
            
RealComposer Slimmed Edge Payload38 B
              {
  "docName": "sample",
  "fields": "sample"
}
            

Recipe Specs

HTTP method
GET
Upstream calls
1
Edge cache TTL
No caching
Client auth
Restricted client token
Mapped output fields
2
Payload
246 B to 38 B (-85%)
Call from Terminal or Client
curl -X GET "https://realcomposer.com/v1/workspace/firebase-rest-proxy-webflow" \
  -H "Authorization: Bearer rc_live_client_token"
Frequently Asked Questions

Developer Questions & Troubleshooting

Which Firebase credential belongs in the vault for this pipeline?

Store FIREBASE_ACCESS_TOKEN for firebase-rest-proxy-webflow. Webflow never sees decrypted values.

Does POST traffic get cached?

firebase-rest-proxy-webflow vault headers attach server-side, but Anthropic or OpenAI model and messages must come from the client body.

Can I restrict which domains call this pipeline?

Upstream steps in firebase-rest-proxy-webflow honor timeoutMs and optional fallback JSON without leaking secrets.

Sources & Definitions Used in This Answer

Instant Deployment

Deploy this Webflow + Firebase Recipe

Clone this pre-configured pipeline into your RealComposer workspace in one click. We pre-populate upstream URLs, headers, and mapping rules.

CLONE THIS RECIPE
Related Architecture Recipes