The Simplest Way to Make Backstage and GCP Secret Manager Work Like They Should
You can pair backstage and gcp secret manager to pull cloud keys into your portal. This setup lets teams run templates and build new apps without plain text keys. Platform teams use a central portal to catalog software and trigger cloud builds. Cloud storage holds the private keys and tokens that those builds need. When both tools link up, the portal reads keys at run time. Developers do not have to copy or paste sensitive strings into files. This keeps private data out of source control and sp
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.
You can pair backstage and gcp secret manager to pull cloud keys into your portal. This setup lets teams run templates and build new apps without plain text keys.
Platform teams use a central portal to catalog software and trigger cloud builds. Cloud storage holds the private keys and tokens that those builds need. When both tools link up, the portal reads keys at run time. Developers do not have to copy or paste sensitive strings into files. This keeps private data out of source control and speeds up daily work.
How backstage and gcp secret manager share keys and roles
The developer portal needs a valid cloud identity to read stored keys. Teams set up a cloud service account for the portal backend. When the portal starts, it logs in to Google Cloud with this identity. You can use workload identity federation if your portal runs in Kubernetes. This method links a Kubernetes account right to a Google Cloud role. You do not need to save a static key file on disk.
Once logged in, the portal requests specific keys over the cloud API. Google Cloud checks the role attached to the portal identity before sending data. If the role allows read rights, the cloud sends the secret value back. The portal keeps this value in memory to talk to Git providers or clouds. You can also reference cloud secrets inside your portal setup files. When a key rotates in the cloud, the portal pulls the fresh value.
Common failure modes and how to scope permissions
Many teams give the portal one broad service account with project-wide secret rights. This mistake lets any template or plugin read every key in the project. If a bad plugin runs, it can pull database passwords or admin tokens. Shared accounts also ruin your cloud audit logs during a security review. Every secret read shows up under the same generic portal account name. You cannot tell which user or template triggered the secret read.
To fix this, split your secrets by use case and assign tight roles. Grant the portal core identity access only to the keys it needs on startup. Keep app and database keys in separate cloud projects or folders. Use strict resource labels and IAM rules to limit what the portal reads. Turn on data access audit logs in Google Cloud for all secret reads. Restrict network traffic so only your portal nodes can call the cloud API. Review your cloud roles every month and drop unused permissions right away.
GCP Secret Manager + End-to-End Encryption: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
Managing human and task access past the portal
Storing portal keys in the cloud only solves part of the access problem. Engineers still use the portal to find databases, clusters, and internal servers. Soon after, they need to run queries or check logs on those systems. Handing out raw database passwords from your secret store creates huge security risks. Even when masking rewrites matched fields in results like emails, raw keys remain unsafe.
Instead of sharing stored passwords with users, tie system access to user identity. Let your portal show the catalog while a dedicated layer handles live sessions. This keeps static secrets inside the cloud and away from engineer laptops. Every command or query maps back to a real person in your logs.
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 the portal log in to Google Cloud without static keys?
Use workload identity federation when you run the portal on cloud clusters. This links your app identity to a Google Cloud role without key files.
Can software templates read keys from the cloud secret store?
Yes, backend actions in your templates can fetch keys during a run. Scope those template roles so they only read keys meant for scaffolding.
How do we handle secret rotation for the developer portal?
Store your keys as new versions inside the cloud secret store. Set up the portal or deployment pods to pull the latest version on restart.
Related guides
In this post