Skip to content

Commit

Permalink
rpc: allow CombinedStatementStats RPC endpoint for tenant
Browse files Browse the repository at this point in the history
Previously, /CombinedStatementStats endpoint is disabled for tenant.
This commit allows that RPC endpoint.

Release note (api change): CombinedStatementStats RPC is now allowed for
tenant.
  • Loading branch information
Azhng committed Oct 1, 2021
1 parent 0ae364c commit e486222
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/rpc/auth_tenant.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ func (a tenantAuthorizer) authorize(
case "/cockroach.server.serverpb.Status/Statements":
return a.authTenant(tenID)

case "/cockroach.server.serverpb.Status/CombinedStatementStats":
return a.authTenant(tenID)

case "/cockroach.server.serverpb.Status/ResetSQLStats":
return a.authTenant(tenID)

Expand Down

0 comments on commit e486222

Please sign in to comment.