Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sql/copy: validate RLS policies for COPY FROM #143066

Conversation

spilchen
Copy link
Contributor

COPY FROM goes through the optbuilder, applying any applicable row-level security (RLS) policies. This commit adds tests to ensure that RLS policies are correctly enforced for COPY FROM.

Additionally, a stale comment in logic.go has been removed. The COPY FROM tests originally resided in logic tests before being moved to the sql/copy package.

Closes #136807

Epic: CRDB-45203
Release note: none

COPY FROM goes through the optbuilder, applying any applicable row-level
security (RLS) policies. This commit adds tests to ensure that RLS
policies are correctly enforced for COPY FROM.

Additionally, a stale comment in logic.go has been removed. The COPY
FROM tests originally resided in logic tests before being moved to the
sql/copy package.

Closes cockroachdb#136807

Epic: CRDB-45203
Release note: none
@spilchen spilchen self-assigned this Mar 18, 2025
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@spilchen spilchen requested a review from a team March 18, 2025 14:32
@spilchen spilchen marked this pull request as ready for review March 18, 2025 14:32
@spilchen
Copy link
Contributor Author

TFTR!

bors r+

@craig craig bot merged commit 4f514e3 into cockroachdb:master Mar 20, 2025
24 checks passed
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.

sql: Block IMPORT statements for RLS tables
3 participants