-
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
server: v2 database apis should check for public connect privilege #134431
Labels
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
T-observability
Comments
xinhaoz
added
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
T-observability
labels
Nov 6, 2024
Hi @xinhaoz, please add branch-* labels to identify which branch(es) this C-bug affects. 🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf. |
xinhaoz
added a commit
to xinhaoz/cockroach
that referenced
this issue
Nov 6, 2024
- Gate status server grpc UpdateTableMetadataCache on ADMIN This should only be accessed via the api v2 http handler, which performs finer privilege checks on if the user has CONNECT privs on a database. - When filtering dbs and tables to return in the apis, permit dbs and tables that have CONNECT on the public role. - Move TestUpdateTableMetadataCacheJobRunsOnRPCTrigger test to status_test.go. This test is more well-suited to live here since it tests functionality in the status server. Epic: CRDB-37558 Fixes: cockroachdb#134431 Fixes: cockroachdb#130245 Release note (ui change): Users may access DB Console's db pages (db overview, tables overview, table details) if they have CONNECT privilege on the database.
xinhaoz
added a commit
to xinhaoz/cockroach
that referenced
this issue
Nov 6, 2024
- Gate status server grpc UpdateTableMetadataCache on ADMIN This should only be accessed via the api v2 http handler, which performs finer privilege checks on if the user has CONNECT privs on a database. - When filtering dbs and tables to return in the apis, permit dbs and tables that have CONNECT on the public role. - Move TestUpdateTableMetadataCacheJobRunsOnRPCTrigger test to status_test.go. This test is more well-suited to live here since it tests functionality in the status server. Epic: CRDB-37558 Fixes: cockroachdb#134431 Fixes: cockroachdb#130245 Release note (ui change): Users may access DB Console's db pages (db overview, tables overview, table details) if they have CONNECT privilege on the database.
xinhaoz
added a commit
to xinhaoz/cockroach
that referenced
this issue
Nov 6, 2024
- Gate status server grpc UpdateTableMetadataCache on ADMIN This should only be accessed via the api v2 http handler, which performs finer privilege checks on if the user has CONNECT privs on a database. - When filtering dbs and tables to return in the apis, permit dbs and tables that have CONNECT on the public role. - Move TestUpdateTableMetadataCacheJobRunsOnRPCTrigger test to status_test.go. This test is more well-suited to live here since it tests functionality in the status server. Epic: CRDB-37558 Fixes: cockroachdb#134431 Fixes: cockroachdb#130245 Release note (ui change): Users may access DB Console's db pages (db overview, tables overview, table details) if they have CONNECT privilege on the database.
xinhaoz
added a commit
to xinhaoz/cockroach
that referenced
this issue
Nov 6, 2024
- Gate status server grpc UpdateTableMetadataCache on ADMIN This should only be accessed via the api v2 http handler, which performs finer privilege checks on if the user has CONNECT privs on a database. - When filtering dbs and tables to return in the apis, permit dbs and tables that have CONNECT on the public role. - Move TestUpdateTableMetadataCacheJobRunsOnRPCTrigger test to status_test.go. This test is more well-suited to live here since it tests functionality in the status server. Epic: CRDB-37558 Fixes: cockroachdb#134431 Fixes: cockroachdb#130245 Release note (ui change): Users may access DB Console's db pages (db overview, tables overview, table details) if they have CONNECT privilege on the database.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
T-observability
Currently the v2 db apis only return dbs and tables for which the user has CONNECT privilege on the db. We should also check if the db has granted CONNECT to the public role (this is true by default) since all users have the public role.
Jira issue: CRDB-44079
The text was updated successfully, but these errors were encountered: