-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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: add VIEWSYSTEMTABLE system privilege #109474
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 4 of 4 files at r1, all commit messages.
Reviewable status: complete! 0 of 0 LGTMs obtained (waiting on @andyyang890 and @rafiss)
pkg/sql/authorization.go
line 274 at r1 (raw file):
// Special case for system tables. The VIEWSYSTEMTABLE system privilege is // equivalent to having SELECT on all system tables. This is because it is not // possible to dybamically grant SELECT privileges system tables, but in the
nit: dynamically
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 2 of 4 files at r1, all commit messages.
Reviewable status: complete! 1 of 0 LGTMs obtained (waiting on @rafiss)
This privilege is useful for support situations, where an engineer needs to be able to view system tables without having full admin access. Release note (sql change): Added the VIEWSYSTEMTABLE system privilege. Users with this privilege have SELECT privileges for all tables in the system database.
081ff6a
to
a029f65
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tftr!
bors r+
Reviewable status: complete! 0 of 0 LGTMs obtained (and 1 stale) (waiting on @andyyang890 and @annrpom)
pkg/sql/authorization.go
line 274 at r1 (raw file):
Previously, annrpom (annie pompa) wrote…
nit: dynamically
done!
Build succeeded: |
This privilege is useful for support situations, where an engineer needs to be able to view system tables without having full admin access.
informs #95756
Release note (sql change): Added the VIEWSYSTEMTABLE system privilege. Users with this privilege have SELECT privileges for all tables in the system database.