How to Configure Backstage RBAC

Published
Length
3 min read

Luis Felipe Dias

All posts

You set up backstage rbac to control who can view or change portal resources. A safe setup denies all actions by default and grants role rules to groups. Developer portals pull together service catalogs, templates, and docs in one central place. Without strict rules, any user who logs in can change or delete critical items. Good role rules keep teams focused on their own apps and services. How backstage rbac works and safe defaults The permission system checks every user action against a cen

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 set up backstage rbac to control who can view or change portal resources. A safe setup denies all actions by default and grants role rules to groups.

Developer portals pull together service catalogs, templates, and docs in one central place. Without strict rules, any user who logs in can change or delete critical items. Good role rules keep teams focused on their own apps and services.

How backstage rbac works and safe defaults

The permission system checks every user action against a central policy engine. When a user clicks a button, the app sends a request with their identity. The policy engine reads the request and returns an allow or deny decision.

This setup affects both human users and automated service accounts in your portal. You should map roles to existing groups from your main identity provider. Do not assign rules to single users, because individual grants are hard to track.

Start with a deny by default rule for the whole developer portal. Give basic read rights for the catalog to all logged in staff members. Keep write rights and template creation rules restricted to specific team leads. Grant admin roles only to a small group of platform engineers.

Many plugins also support conditional rules based on who owns an item. You can set a rule so a team only edits its own catalog items. This keeps the portal clean without adding manual review steps for platform admins.

Checking rules and limits of static portal roles

Platform teams must check their role rules before and after they go live. Test each role with a non-admin account to confirm what a user sees. Check that blocked actions return a clear denial message in the portal view.

Azure RBAC + End-to-End Encryption: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

You should also send all policy decisions to your central log system. Good logs show who asked for an action and which rule matched the request. Review these logs often to spot broad roles that teams do not need.

Still, static portal roles only control what happens inside the portal app itself. Once a template runs or a user connects to a database, portal rules stop. A developer with a valid database account still holds broad rights during that session.

Portal roles cannot inspect live database queries or stop a bad command in flight. They also cannot mask emails, phone numbers, or card numbers in query results. To protect live backends, you need controls that work at the command level.

Keeping role rules clean over time

Treat your role rules like code and store them in a version control system. Require a peer review before any change to a role goes to production. This habit stops accidental wide grants and leaves a clear history for audits.

Run a quarterly check with team leads to clean up old group assignments. Remove rules for deprecated plugins or teams that have moved to other projects. Small, regular updates keep your portal rules tight and easy to read.

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 inline in the protocol beside the service as an open-source proxy, a sidecar for your database or API. On every production query an agent or human runs, hoop.dev decides whether to pass, mask, block, or escalate it for review.

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 approval, and hoop.dev data masking rewrites sensitive fields in responses in memory. Explore the MIT-licensed project on GitHub.

Frequently asked questions

Does the portal block actions by default?

No, a fresh portal install lets any logged in user view and change items. You must turn on the permission system and set a default deny rule.

Should we assign rules to single users or groups?

Always assign rules to groups synced from your identity provider. Group grants update on their own when people join or leave a team.

Do portal role rules protect our production databases?

No, portal role rules only govern catalog items, templates, and plugins inside the app. You need separate runtime controls to check queries and commands on backend systems.

The query runs. The emails stay hidden.