Skip to content

Enforce subject-scoped user-table reads#245

Merged
jamals86 merged 1 commit into
mainfrom
029-datafusion-modernization
May 1, 2026
Merged

Enforce subject-scoped user-table reads#245
jamals86 merged 1 commit into
mainfrom
029-datafusion-modernization

Conversation

@jamals86
Copy link
Copy Markdown
Member

@jamals86 jamals86 commented May 1, 2026

Prevent implicit RLS bypass for user tables by making can_read_all_users always return false and clarifying docs that cross-user access requires explicit impersonation. Update can_access_user_table docs and add unit tests verifying user-table reads never bypass subject scoping. In provider tests, refactor session helper to accept a role, reintroduce session_with_user wrapper, import StringArray, and add integration tests ensuring DBA sessions only see their own rows and deletes produce tombstones scoped to the subject.

Prevent implicit RLS bypass for user tables by making can_read_all_users always return false and clarifying docs that cross-user access requires explicit impersonation. Update can_access_user_table docs and add unit tests verifying user-table reads never bypass subject scoping. In provider tests, refactor session helper to accept a role, reintroduce session_with_user wrapper, import StringArray, and add integration tests ensuring DBA sessions only see their own rows and deletes produce tombstones scoped to the subject.
@jamals86 jamals86 merged commit 99de15d into main May 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant