feat(rbac): RBAC v2 UI prototype
Draft
AC
3d ago+5197+5197+0123456789012345678901234567890123456789-95-95-01234567890123456789
Summary
Clickable prototype of RBAC v2 to compare the roadmap stages. Mock data only, nothing is saved. Not meant to be merged as is.
- Floating switch at the bottom of the settings pages: MVP · Next · Target, and With IdP / Without IdP, each with an (i) description.
- MVP: multi-role assignment on today's role permissions. Members can hold several roles (direct, or from the IdP mapping), at least one role each. The Roles page is today's production page.
- Next: Qovery Tags (separate from Kubernetes labels and annotations) and roles made of permissions by target: on Clusters, Projects or Environments & services, matching selected resources (in projects, running on clusters, specific environments or services) and tags, with explicit capabilities (presets only fill them). Organization settings are one section per role. Environment permissions imply visibility of their project and cluster. A migrated v1 role ("Developer") shows each v1 rule and the permission it became. Demo 403 page.
- Target: groups, identity provider set up in the console (replaces the
enterprise-connectionCLI), delegations and access requests, service accounts and agents (replace API tokens), guardrails with resource limit rules. - Without IdP, the Members page pushes to connect one.
Spec: RBAC v2 Notion page, "Solution and MVP (Scope)" section.
Screenshots / Recordings
To add.
Testing
- Changes tested locally in the relevant Console's pages and Storybooks
-
yarn testoryarn test -u(if you need to regenerate snapshots) -
yarn format -
yarn lint
PR Checklist
- I followed naming, styling, and TypeScript rules (see .cursor/rules)
- I performed a self-review (diff inspected, dead code removed)
- I titled the PR using Conventional Commits with a scope when possible (e.g.
feat(service): add new Terraform service) - required for semantic-release - I only kept necessary comments, written in English (watch for useless AI comments)
- I involved a designer to validate UI changes if I am not a designer
- I covered new business logic with tests (unit)
- I confirmed CI is green (Codecov red can be accepted)
- I reviewed and executed locally any AI-assisted code
Summary by cubic
Adds a clickable RBAC v2 prototype on mock data to compare the roadmap stages; nothing is saved, so it is not meant to be merged as is.
- A floating switch at the bottom of the settings pages toggles between MVP, Next, and Target stages, and between With IdP / Without IdP.
- MVP shows multi-role assignment on today's role permissions.
- Next merges labels and tags on their own page with optional propagation to Kubernetes and cloud, adds roles with permission targets for clusters, projects, environments, and services, and builds filters with an Add filter menu that cascade from broad to narrow (presets only fill explicit capability checkboxes). Includes a demo 403 page.
- Target adds groups, in-console identity provider setup, delegations and access requests, service accounts, and guardrails.
- Without IdP, the Members page prompts to connect one.