The Simplest Way to Make Backstage and Cloud Storage Work Like They Should
Teams pair backstage and cloud storage to host tech docs and build artifacts in one portal. The portal reads and writes files in buckets while keeping team permissions in sync. This setup gives engineers one place to find service catalogs, specs, and static assets. Instead of hunting through raw buckets, teams read docs right inside the portal view. How backstage and cloud storage share roles and data In a standard setup, the portal backend needs permission to talk to object buckets. When 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 cloud storage to host tech docs and build artifacts in one portal. The portal reads and writes files in buckets while keeping team permissions in sync.
This setup gives engineers one place to find service catalogs, specs, and static assets. Instead of hunting through raw buckets, teams read docs right inside the portal view.
How backstage and cloud storage share roles and data
In a standard setup, the portal backend needs permission to talk to object buckets. When a build finishes, a pipeline pushes generated doc files into a central bucket. When an engineer opens a page, the portal fetches those files from the bucket.
To make this work, teams assign an identity role to the portal backend host. Cloud providers let workloads trade a local host token for a temporary cloud key. The backend uses that key to read or write objects in the target bucket.
User login happens at the portal front door through an identity provider. After a user logs in, the portal checks which team owns the service page. Then the backend pulls the matching files from the storage bucket for that user.
Data flows in two clear paths during daily work. First, build jobs write static files and catalog updates to the bucket. Second, the portal backend reads those objects and renders them in the browser.
Common failure modes and how to scope permissions
Many teams start by putting one static cloud key into the portal config file. That single key often has broad read and write permissions across many buckets. If that key leaks, an attacker can read or delete data across the cloud account.
Shared service accounts also ruin audit logs in cloud storage. Every read and write request shows up under the same portal service name. Security teams cannot tell which engineer triggered a file download or a template action.
End-to-End Encryption + Backstage Security Plugins: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
Broad network paths create another big risk for storage buckets. If buckets allow public reads or wide network traffic, sensitive specs can leak out. Unlogged queries to storage also leave blind spots during security reviews.
To fix this, split read roles from write roles right away. Give the portal backend a read-only role scoped to the exact docs bucket prefix. Give the build pipeline a separate write role that only pushes to that path.
Never store long-lived keys in config files or repo secrets. Use workload identity roles bound to the exact compute nodes running the portal. Restrict bucket network rules so only the portal subnet and build runners can reach them.
Keeping sensitive data safe in stored artifacts
Developer portals often pull sample payloads, API logs, and test exports from cloud buckets. Sometimes these files contain real customer data from test runs or debug dumps. Storing raw emails, phone numbers, or card numbers in doc buckets creates compliance trouble.
Teams should scan and clean files before build jobs upload them to storage. At runtime, data masking can also rewrite matched fields like national IDs in results. This keeps debug views useful while keeping raw personal data out of the browser.
Turn on bucket access logs for every path tied to the developer portal. Send those logs to a central security tool so teams can track file activity. Review role permissions every quarter and drop unused bucket paths from the portal role.
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
Should the portal backend use static keys for cloud buckets?
No, static keys are hard to rotate and easy to leak in config files. Use workload identity roles so the cloud provider issues short-lived tokens to the host.
How do we separate tech docs from build artifacts in storage?
Place tech docs and build outputs in separate buckets or distinct folder prefixes. Assign a read-only role to the portal and a write role to the build runner.
How can we track which user read a file through the portal?
Correlate portal user login logs with cloud bucket read logs using request timestamps. You can also pass user identity tags in backend requests to record the caller.
Related guides
In this post