Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
release-2.1: server,sql: allow admin UI to view table details for non-admins #44194
Backport 1/1 commits from #44167.
Release note (admin ui change, security update, bug fix): We previously
* Added `crdb_internal.get_zone_config` and `crdb_internal.get_namespace_id`, which executes queries to system tables and checks permissions afterwards. This is needed for speedy point lookups for the admin UI. * Modified the EvalContext with a PrivilegedAccessor, containing any accessors that requires privileged access to view data. * Modified the admin UI to use the new crdb_internal queries. Release note (admin ui change, security update, bug fix): We previously introduced a fix on the admin UI to prevent non-admin users from executing queries - however, this accidentally made certain pages requiring table details not to display. This PR allows the table details to be displayed in its former glory.