The Simplest Way to Make Backstage and Cloudflare Workers Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

Teams pair backstage and cloudflare workers to manage edge apps from one central developer portal. Backstage catalogs the services and owners, while Cloudflare Workers runs the code near users. This setup lets developers view deploy status, check logs, and scaffold new edge functions fast. Without a clear plan, teams end up sharing broad API keys across many projects. A good setup keeps keys scoped and tracks every action back to a single user. How backstage and cloudflare workers share ident

Your coding agents run with your access.

Claude Code reaches prod with a developer's credentials, and approval prompts get clicked through. hoop.dev checks every query, masks sensitive data, and holds risky changes for a human.

Teams pair backstage and cloudflare workers to manage edge apps from one central developer portal. Backstage catalogs the services and owners, while Cloudflare Workers runs the code near users.

This setup lets developers view deploy status, check logs, and scaffold new edge functions fast. Without a clear plan, teams end up sharing broad API keys across many projects. A good setup keeps keys scoped and tracks every action back to a single user.

How backstage and cloudflare workers share identity and data

Backstage acts as the central directory for all your services, APIs, and team owners. Cloudflare Workers runs serverless scripts at the network edge to handle user web traffic. To work together, the portal needs to read worker status and trigger new builds.

Data flows between the two tools over standard web APIs. A backend plugin in the portal sends requests to the Cloudflare API. These requests fetch worker routes, KV store names, and recent deploy status for each app.

The portal can also start new worker projects through software templates. When a developer fills out a form, the portal creates a code repo. Then a build pipeline deploys the script to the edge network. The portal records the new worker in its catalog and assigns an owner.

Identity is the hardest part of this flow. A developer logs into the portal with their single sign-on account. Still, the portal backend often talks to the edge API using one shared token. You must map portal team roles to specific edge account permissions.

Common failure modes and how to scope permissions

The biggest risk in this setup is an overprivileged API token. Many teams create one global Cloudflare token and put it in the portal config. If that token leaks, an attacker can change DNS records or delete production workers.

Shared service accounts also ruin your audit logs. When ten developers trigger actions through the portal, the edge log shows one bot account. You cannot tell which person changed a route or updated an edge variable.

End-to-End Encryption + Backstage Security Plugins: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Unlogged reads are another blind spot for security teams. Workers often hold sensitive settings or connect to backend databases with private data. If a portal plugin pulls worker data without logging, you lose track of who saw what. When systems mask data, they rewrite matched fields like emails, phone numbers, or card numbers.

To fix these issues, break apart your API tokens by team and task. Create read-only tokens for catalog sync plugins that only list worker names and routes. Use separate, narrow tokens for templates that create new resources in dev accounts.

Scope every token to specific zones and account IDs. Never let the portal hold a key that can edit account billing or global security rules. Keep production changes inside your Git build pipeline instead of running them from the portal UI.

Keeping edge operations safe as teams grow

As your company adds more edge scripts, manual token management breaks down. Platform teams spend too much time rotating keys and updating portal config files. Developers get stuck waiting for someone to grant rights to a new edge namespace.

Start by setting strict naming rules in your software templates. Tie every worker name to a specific team group in your identity provider. This makes it easy to check if a user owns the worker they want to view.

Next, review your portal plugins every quarter. Remove unused integrations and revoke old API keys right away. Check that every call from the portal to the edge API leaves a clear log entry. Record the user identity, the target worker name, and the time of the request.

Check database and API queries on the wire

Identity tools, roles, and network rules decide who opens a session. Setup alone cannot check what each query does or mask sensitive values in a response once a session starts. When workflows touch Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, or internal HTTP APIs, hoop.dev runs beside those services as an open-source proxy, a sidecar for your Postgres or API. It inspects requests coming in and results going back on the wire.

Your login details and client tools stay as they are while hoop.dev guardrails refuse bad deletes or drops before they run. On responses, hoop.dev data masking rewrites matched sensitive values in memory. Furthermore, hoop.dev holds SOC 2 Type II, is MIT licensed, and writes every query and decision to an audit trail that generates evidence for HIPAA, GDPR, and PCI DSS. See the source on GitHub.

Frequently asked questions

How should Backstage read Cloudflare Workers status safely?

Use a dedicated backend plugin with a read-only API token scoped to one account. Never send edge API tokens to the user browser or frontend code.

Should developers deploy Cloudflare Workers directly from Backstage?

No, let Backstage create the code repo and trigger your standard CI pipeline instead. The CI runner should hold the deploy key and run checks before pushing code live.

How do we stop teams from editing another team's workers?

Split your edge resources into separate accounts or namespaces for each product group. Give each group its own scoped token and link access to your portal team roles.

The query runs. The emails stay hidden.