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: crdb_internal.leases should be placed behind VIEWCLUSTERMETADATA #120014

Merged
merged 1 commit into from Mar 12, 2024

Conversation

fqazi
Copy link
Collaborator

@fqazi fqazi commented Mar 6, 2024

Previously, all users could access the internal table crdb_internal.leases. This was unnecessary, as the table's intensive locking requirements can potentially cause heavy overhead. Limiting user access to the VIEWCLUSTERMETADATA privilege is a more sensible approach. This patch will place crdb_internal.leases behind the VIEWCLUSTERMETADATA privilege, which would also help mitigate previous issues (#119253).

Fixes: #119440
Release note (sql change): crdb_internal.leases is now behind the VIEWCLUSTERMETADATA privilege.

Previously, all users could access the internal table
crdb_internal.leases. This was unnecessary, as the table's intensive
locking requirements can potentially cause heavy overhead. Limiting user
access to the VIEWCLUSTERMETADATA privilege is a more sensible approach.
This patch will place crdb_internal.leases behind the
VIEWCLUSTERMETADATA privilege, which would also help mitigate previous
issues (cockroachdb#119253).

Fixes: cockroachdb#119440
Release note (sql change): crdb_internal.leases is now behind the
VIEWCLUSTERMETADATA privilege.
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@fqazi fqazi marked this pull request as ready for review March 7, 2024 00:43
@fqazi fqazi requested a review from a team as a code owner March 7, 2024 00:43
Copy link
Contributor

@annrpom annrpom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this lgtm

@fqazi
Copy link
Collaborator Author

fqazi commented Mar 11, 2024

@annrpom TFTR!

bors r+

@craig
Copy link
Contributor

craig bot commented Mar 12, 2024

Build succeeded:

@craig craig bot merged commit 67ba65c into cockroachdb:master Mar 12, 2024
17 of 18 checks passed
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.

sql: crdb_internal.leases should be placed behind VIEWCLUSTERMETADATA
3 participants