The Simplest Way to Make Backstage and Firestore Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

Teams pair backstage and firestore to track cloud data inside one developer portal. This setup lets devs spin up document stores and check database states from one screen. Platform teams build templates in the portal to create new cloud projects. Devs fill out a form, and the portal sets up the document store right away. Once the store runs, custom plugins read collection data and show it on the team dashboard. How backstage and firestore share identity and data The developer portal needs a

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 firestore to track cloud data inside one developer portal. This setup lets devs spin up document stores and check database states from one screen.

Platform teams build templates in the portal to create new cloud projects. Devs fill out a form, and the portal sets up the document store right away. Once the store runs, custom plugins read collection data and show it on the team dashboard.

How backstage and firestore share identity and data

The developer portal needs a cloud identity to talk to the document database. Most teams use a cloud service account for this job. The portal holds a key or uses workload identity to log in to the cloud provider.

When a dev opens a catalog page, the portal backend sends a read call to the database. The cloud provider checks the role attached to the portal service account. If the role allows read calls, the database sends the document fields back to the portal.

Software templates work the same way for write calls. A dev runs a template to create a new app with a backing database. The portal uses its cloud role to set up the database and write initial records. The portal then registers the new database component in the software catalog.

Common permission traps with shared service accounts

A big problem starts when teams give the portal one huge admin role. If the portal can read and write every database, any bug can ruin production data. Every user who logs in to the portal shares that same broad cloud key.

Shared keys also ruin audit logs in the cloud console. When ten devs run database checks through the portal, the cloud log shows one service account. Security teams cannot tell which human read a production record or changed a document.

Unlogged reads also create risk when documents hold user emails, phone numbers, or card numbers. If a plugin pulls raw documents onto a portal page, sensitive fields sit in plain view. Data masking can rewrite matched fields like emails or national IDs in query results.

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

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

To fix role bloat, split read roles from write roles. Give catalog plugins a tiny role that only reads non-sensitive metadata. Run software templates under separate worker accounts scoped to specific dev projects.

Scoping network paths and database rules

Good cloud setups lock down network paths between the portal and the document store. The portal backend should run inside a private cloud network. Use private cloud routing so database traffic is masked in responses before reaching the public internet.

Teams must also set strict database security rules alongside cloud roles. Cloud roles control project level actions, while database rules guard specific collections and documents. Always deny reads and writes by default in your base rule file.

Next, map each portal plugin to a single project and collection path. Do not let a staging portal read from a production document store. Keep keys for dev and prod stores in separate secret stores with strict rotation rules.

Review your cloud audit logs each week to spot strange query spikes from the portal. Turn on data read logs in the cloud console so every read leaves a trail. Clear role limits and tight network paths keep your portal and database safe.

Add runtime guardrails and masking beside your databases and APIs

Login rules, role grants, and CI checks govern who connects to your stack. Yet any allowed script, engineer, or AI agent still runs commands with the full scope of its role. For workloads on Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes, SSH, or internal HTTP services, hoop.dev sits beside the service as an open-source proxy, a sidecar for your database or API.

Before a query runs, hoop.dev guardrails check the statement against your rules. An AI Analyzer you configure can score intent or hold risky calls for human review. Next, hoop.dev data masking rewrites sensitive fields in responses, and each verdict is logged per listener. Explore the MIT-licensed project on GitHub.

Frequently asked questions

Can Backstage use Firestore as its primary catalog database?

No, the core catalog requires a relational database like PostgreSQL to store entities. Teams connect the portal to the document store through plugins to view or manage app data.

How should the portal log in to Google Cloud?

Use workload identity when the portal runs on cloud Kubernetes clusters. This method avoids long-lived JSON keys and rotates short tokens for the portal pod.

How do we stop portal plugins from leaking sensitive document fields?

Give the plugin service account a read role on safe collections only. You can also apply data masking to rewrite emails, phone numbers, and card numbers in results.

The query runs. The emails stay hidden.