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

Published
Length
3 min read

Luis Felipe Dias

All posts

Teams use backstage and minio to store tech docs, software templates, and build files. Backstage acts as the team portal, while Minio stores the raw files in buckets. This setup keeps all portal data inside your own private network. Developers can read docs and run templates without sending files to public cloud storage. Platform teams get a fast portal backed by simple object storage. Still, linking these two tools takes careful work with keys and bucket rules. How backstage and minio share

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 use backstage and minio to store tech docs, software templates, and build files. Backstage acts as the team portal, while Minio stores the raw files in buckets.

This setup keeps all portal data inside your own private network. Developers can read docs and run templates without sending files to public cloud storage. Platform teams get a fast portal backed by simple object storage. Still, linking these two tools takes careful work with keys and bucket rules.

How backstage and minio share keys and data

Backstage needs a way to read and write files inside your Minio buckets. In most setups, the portal uses an S3 client to talk to Minio. You set up an endpoint URL and give the portal an access key. You also pass a secret key so the storage server trusts the portal.

Data flows between the two apps in a few clear ways. First, a build pipeline creates static HTML files from markdown docs in your code repos. Next, that pipeline uploads the finished files to a set Minio bucket. When a developer opens a doc page, Backstage reads those files from the bucket. It then shows the page right inside the web portal.

Software templates also move files through this same storage path. When a user runs a template, the portal fetches base files from Minio. This flow works well when network rules and storage roles stay tight. If you skip role design, your storage buckets can expose private data.

Common failure modes with shared keys and broad roles

Many teams make the mistake of using one admin key for everything. They put the root Minio key into the main Backstage settings file. This gives the portal full control over every bucket on the storage server. If an attacker steals that key, they can delete backups or read secret files.

Broad access tokens also create big blind spots in your audit logs. When the portal and all build jobs share one account, logs lose their value. You see that the shared account deleted a file, but not which person did it. Unlogged file reads also make it hard to track who viewed sensitive docs.

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 this, split your storage access into small, single-task service accounts. Create one role that only reads files from the tech docs bucket. Give that read-only role to the Backstage web app for daily use. Next, create a second role that can write files to that same bucket. Give that write role only to the build runner that publishes new docs.

You should also lock down the network path between the two tools. Put both apps on a private network and block public web traffic to Minio. Require TLS for all data transfers so keys never travel in plain text. Rotate your storage keys on a set schedule to limit the risk of leaks.

Scoping bucket rules for teams and build jobs

As your portal grows, different teams will want their own storage areas. Do not put all team files into one big bucket with open read rules. Group your buckets by team name or by data risk level instead. For example, keep internal API docs separate from sensitive finance system files.

Map each build job to the exact bucket path it needs to update. A payment team job should only write to the payment folder in the bucket. It should never have rights to overwrite files owned by the core platform team. Check your bucket policies every month to remove old accounts and unused keys.

Govern statements and responses across databases and APIs

Good config and scoped roles are needed setup. They do not check single queries in flight or mask sensitive fields in returned rows. Across Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, and internal HTTP endpoints, hoop.dev runs beside each supported service as an open-source proxy, a sidecar for your database or API.

First, hoop.dev guardrails block banned queries before they run. Then hoop.dev data masking rewrites matched sensitive values in responses in memory. The audit trail records every statement and verdict per resource. Furthermore, hoop.dev holds SOC 2 Type II and is open source on GitHub.

Frequently asked questions

How does Backstage talk to a Minio server?

Backstage uses its built-in S3 storage client to talk to the Minio server. You point the portal settings to your custom Minio URL and bucket name.

Should Backstage have write access to tech doc buckets?

No, the portal only needs read access when your CI pipeline builds the docs. Give write permissions only to the build runner that uploads the static files.

How do we stop leaks from shared Minio service accounts?

Replace root keys with scoped service accounts that only touch one bucket path. Rotate those keys often and log every read and write call on the server.

The query runs. The emails stay hidden.