OpenRun console - RBAC scenario walkthrough
Generated by TestRBACScenarioFlow on 2026-11-02 16:32: builtin auth users in eng/finance/ops groups, scoped RBAC grants configured through the console, per-team postgres services, derived bindings and todo apps, per-user visibility and access checks, and a dynamic grant change (engdev1 loaned to finance, then revoked). Each step is a light/dark screenshot pair; this page picks per your OS theme (`prefers-color-scheme`). Each caption notes the state at that point.
0101-admin-rbac-initial
Admin on /console_admin (system auth). RBAC is always on; a fresh install has no groups or roles and a single default grant giving every authenticated principal app access and read on all apps, so management calls are admin-only.
0202-admin-rbac-staged
Default grant removed and all team grants staged, still a draft: team devs get openrun-developer scoped to their team paths, domains, services and binding namespace; the *user3 accounts get openrun-user on the team apps; group:ops gets openrun-operator on all; everyone gets openrun-user on /console so they can open the console itself.
0303-admin-rbac-published
Draft published: the scoped grants are live server-wide, effective immediately. The admin console keeps working (admin bypasses grants); every other identity is now limited to its grants.
0404-ops-service-shared
operatoruser1 on /console (builtin auth): created postgres/shared. As the first postgres service it becomes the type default.
0505-ops-services-all
All services: postgres/shared (default) plus one per team, each on its own database. The operator sees every service (all-target grant).
0606-engdev1-create-denied
engdev1 tried to create /todo1 - outside the team scope. The create form is reachable (the dev holds app:create somewhere) but the server denies the specific path: per-resource enforcement happens at action time.
0707-engdev1-apps
engdev1 created /eng/todo1 (todo example, python-fasthtml spec, builtin auth, bound to postgres/eng). No approval step: the container spec permissions are pre-allowed and binding attach is authorized by service:bind on the team service.
0808-engdev1-derive-binding
engdev1 derives the read-only /eng-data/view binding from the /eng-data/admin base (read:* table grants, per the todo_derived example). Deriving needs binding:use on the base - held through the binding: grant target.
0909-engdev1-view-app
engdev1 created /eng/todoview on the derived read-only binding, picked from the dropdown's Existing bindings group. The dropdown lists only services and bindings the caller can read - other teams' /..-data/ paths never appear.
1010-engdev2-apps
engdev2 created todo2.eng.localhost:/ - authorized through the *.eng.localhost:** domain glob target - bound to the shared service. Both team apps are visible to the team devs.
1111-financedev1-view-app
financedev1 created /finance/todoview on the derived read-only binding, picked from the dropdown's Existing bindings group. The dropdown lists only services and bindings the caller can read - other teams' /..-data/ paths never appear.
1212-engdev1-bindings
engdev1's bindings page: the scoped lists return the eng + shared services, the /eng-data base and derived bindings and the app auto bindings; every finance entry is filtered out server-side.
1313-enguser3-apps
enguser3 (openrun-user on the eng targets): sees the eng apps but the New app button is disabled with a 'requires app:create' tooltip. Overview stays enabled and omits every tile except Apps and Replication; the remaining area nav items are disabled because this user has no service, binding, sync or container permission.
1414-enguser3-app-detail
enguser3 opens /eng/todo1: app:read shows the basic app info only (path, version, auth, updated). The Config, Compare and Files tabs, the source row and the per-environment panel need app:read_detail, which openrun-user does not hold; openrun-developer, -operator and -monitor do.
1515-operator-bindings
operatoruser1 (openrun-operator, all targets): every app, service and binding is visible; the operator also holds approve/promote and the config pages.
1616-engdev1-binding-denied
Scoped write denials for engdev1: creating a service (service:create only covers the team's services), a binding outside /eng-data/** (binding:create) and a binding sourced from the finance service (service:bind) are each denied per resource, with the form re-rendered in place.
1717-engdev1-promoted
engdev1 staged a param update on /eng/todo1 (updates always apply to staging first) and promoted it to prod. enguser3 saw the pending-promotion row but a disabled Promote action - app:promote is not part of openrun-user.
1818-operator-loan-published
operatoruser1 added and published the 'eng loan to finance' grant: engdev1 now also holds openrun-developer on the finance targets. Live on the next request.
1919-engdev1-loaned
engdev1 after the loan: the finance apps appear in the apps list, the finance service and bindings in the binding dropdown, and the finance apps serve. No leakage the other way - financeuser3 still cannot reach the eng apps.
2020-engdev1-revoked
Loan grant deleted and published: engdev1 is back to the eng baseline - the finance apps are gone from the list and their URLs 403 again. The eng-side access is untouched.