How to Configure Backstage RBAC Plugin

Published
Length
3 min read

Luis Felipe Dias

All posts

The backstage rbac plugin controls who can read, write, or delete items in your portal. You set it up by linking your login groups to clear role rules. Internal developer portals hold many tools, docs, and templates in one place. Without good rules, any logged-in user can change or delete critical team assets. Role rules stop bad changes and keep your portal safe for everyone. How the backstage rbac plugin works Backstage uses a base rule system to check what users can do. By default, a fres

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.

The backstage rbac plugin controls who can read, write, or delete items in your portal. You set it up by linking your login groups to clear role rules.

Internal developer portals hold many tools, docs, and templates in one place. Without good rules, any logged-in user can change or delete critical team assets. Role rules stop bad changes and keep your portal safe for everyone.

How the backstage rbac plugin works

Backstage uses a base rule system to check what users can do. By default, a fresh portal lets anyone see and edit everything inside it. The backstage rbac plugin adds a visual way to manage these rules. It links user identities and team groups to specific actions in the app.

First, your portal must know who is logging in. You link an identity tool so the app can read user and group names. Next, you turn on the permission system in your main backend setup. Then you install the plugin modules for both the backend and the frontend.

Admins get a dedicated page inside the portal to manage roles. You can also load base rules from a flat file stored in code. Keeping base rules in git helps teams track changes through pull requests. UI edits then help admins handle quick role updates without a full deploy.

This setup affects two main types of users in your company. Human engineers log in to read catalog items and run software templates. Automated scripts and bots also call the portal API to update service data. Both humans and bots must pass the same permission checks before acting.

Setting safe default rules for your teams

Always start with a deny-all mindset when you design portal roles. If a user has no role, they should have zero edit rights. Create a base reader role for all staff who log in. This base role lets people view the catalog and read tech docs.

Next, build specific roles for each engineering team in your company. Map these roles to the groups from your main login provider. Give each team write access only to the catalog items they own. Nobody should edit another team's service records or delete their templates.

Backstage Security Plugins + Azure RBAC: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Keep your admin role very small and tie it to a dedicated group. Admins can assign roles and change portal rules for everyone else. Review this admin group every month to remove people who changed jobs.

Checking rules and seeing what static roles miss

After you set up your roles, you must test them right away. Log in with a test account that belongs to a normal team group. Try to delete a catalog item owned by a different team. The portal should block the action and show a clear error message.

You should also check your backend logs to track permission decisions. Good logs show who asked for an action and which rule matched. Auditors need these records to prove that portal rules work as planned. Set up alerts for repeated denied actions, which may show a bad script.

Still, portal role checks only guard the front door of your catalog. Once a user runs a template or opens a tool, static roles stop working. The portal plugin does not watch what happens inside a live database session. It cannot rewrite sensitive fields like emails, phone numbers, or card numbers in query results.

Portal roles also do not control direct CLI sessions to cloud servers or clusters. If an engineer has raw keys on their laptop, they bypass the portal. To secure live work, you must govern actual commands and data queries at runtime.

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

What is the difference between Backstage permissions and the RBAC plugin?

The core permission framework requires developers to write custom code for every rule. The RBAC plugin sits on top of that framework and adds role management. It lets admins set rules through files or a web screen without coding.

Can I manage backstage rbac plugin rules as code?

Yes, you can define roles and group links inside a policy file. You store this file in version control and load it when the app starts. This keeps your role setup clean, repeatable, and easy to review with your team.

Does the backstage rbac plugin secure direct database or Kubernetes sessions?

No, the plugin only controls actions inside the portal interface and its API. It does not inspect live database queries or kubectl commands run by engineers. You need runtime session controls to check commands and mask sensitive data fields.

The query runs. The emails stay hidden.