Skip to content

feat: 2/7 add role membership read contract#25522

Open
tabVersion wants to merge 1 commit intoralph/rbac-split-01-parser-surfacefrom
ralph/rbac-split-02-role-membership-read-contract
Open

feat: 2/7 add role membership read contract#25522
tabVersion wants to merge 1 commit intoralph/rbac-split-01-parser-surfacefrom
ralph/rbac-split-02-role-membership-read-contract

Conversation

@tabVersion
Copy link
Copy Markdown
Contributor

Stack: 2/7 for splitting ralph/rbac-postgres-final-alignment onto origin/main.

Base: ralph/rbac-split-01-parser-surface
Next: ralph/rbac-split-03-meta-grant-authority

Scope

  • Add the mostly read/data role membership contract: RoleMembership, ListRoleMemberships, migrations/entity, backup/restore parity, and client/service list passthrough.
  • Add compile/default-semantic slices forced by UserInfo.can_inherit / UpdateField::INHERIT, including default can_inherit = true for created users/fixtures.

Out of scope

  • GrantRole and RevokeRole RPCs and behavior.
  • Frontend role dispatch and pg_catalog compatibility.

Tests

  • cargo fmt --check
  • cargo check -p risingwave_meta -p risingwave_rpc_client -p risingwave_frontend

This PR adds the storage and read API contract needed before role grant and revoke behavior can become authoritative. It keeps grant and revoke RPCs out of the contract layer while adding the compile-coupled inherit flag and list membership surfaces.\n\nConstraint: Generated service traits require every added RPC to compile through meta service, RPC client, frontend client, and mocks.\nRejected: Add GrantRole and RevokeRole RPCs in this contract PR | would require behavior stubs before the authoritative controller implementation lands.\nConfidence: high\nScope-risk: moderate\nDirective: Keep write behavior out of this PR; grant and revoke RPCs belong with their meta implementations.\nTested: cargo fmt; cargo fmt --check; cargo check -p risingwave_meta -p risingwave_rpc_client -p risingwave_frontend\nNot-tested: Runtime migration/restore path against a live cluster
@tabVersion tabVersion changed the title rbac: add role membership read contract feat: 2/7 add role membership read contract Apr 28, 2026
@github-actions github-actions Bot added type/feature Type: New feature. and removed Invalid PR Title labels Apr 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant