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
observability: ui regression introduced by fixing #42567 #44033
the release note mentions the following:
the trick here is that when you run
but the UI endpoint executes
Currently, on a non-enterprise enabled cluster only the root user has the admin role. which means that this page will never be accessible as the root user can not log in to the UI.
this fallout is also documented here cockroachdb/docs#6321
A related issue is #43870
WORKAROUND (FOR USERS)
Use an admin user to log in to the UI and view the information.
Core users without a license can create a non-root admin users as follows:
A patch revision will be issued for the affected release to correct this limitation.
rework the ui query to match the sql query issued from
big thanks to @knz for explaining this to me and detailing the proposals in the above PR and issue.
note from knz:
It's not exactly as I had imagined
func (s *adminServer) TableDetails(...) func (s *adminServer) DatabaseDetails(...) func (s *adminServer) Databases(...)
These do use the regular SHOW commands but using the credentials of the logged-in user. I think (Cursory look at internal.go) their "current db" as per internalExecFixedUserSession is "system" but I am not sure.
so the problem in database details is
which eventually calls
to which the user does not have access to
fwiw, the error in this case is