Skip to content

Conversation

KeithCh
Copy link
Contributor

@KeithCh KeithCh commented Sep 11, 2025

This will allow users to be ALTER DEFAULT privileges on all databases.
The intent of this commit is to allow DEFAULT grants on changefeeds
specifically i.e.
ALTER DEFAULT PRIVILEGES GRANT CHANGEFEED ON DATABASES to foo;
but I don't know how to do that without allowing other database
privileges to be granted on all databases.

Resolves: #152196
Release note: Users can now perform ALTER DEFAULT PRIVILEGES on DATABASES

@KeithCh KeithCh requested a review from log-head September 11, 2025 21:10
@KeithCh KeithCh requested review from a team as code owners September 11, 2025 21:10
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@KeithCh KeithCh force-pushed the db-level-changefeed-default-privilege branch 2 times, most recently from 10c9407 to 11b358f Compare September 11, 2025 21:13
@KeithCh KeithCh changed the title changefeedccl: support ALTER DEFAULT PRIVILEGES for databases sql: support ALTER DEFAULT PRIVILEGES for databases Sep 11, 2025
@KeithCh KeithCh force-pushed the db-level-changefeed-default-privilege branch from 11b358f to 4addf35 Compare September 11, 2025 21:14
This will allow users to be ALTER DEFAULT privileges on all databases.
The intent of this commit is to allow DEFAULT grants on changefeeds
specifically i.e.
ALTER DEFAULT PRIVILEGES GRANT CHANGEFEED ON DATABASES to foo;
but I don't know how to do that without allowing other database
privileges to be granted on all databases.

Resolves: cockroachdb#152196
Release note: Users can now perform ALTER DEFAULT PRIVILEGES on DATABASES
@KeithCh KeithCh force-pushed the db-level-changefeed-default-privilege branch from 4addf35 to c71fec0 Compare September 11, 2025 21:21
@KeithCh KeithCh marked this pull request as draft September 12, 2025 19:07
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.

changefeedccl: Db-level changefeed: implement ALTER DEFAULT PRIVILEGES GRANT CHANGEFEED on DATABASES
2 participants