Skip to content

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

chore: audit for subscription and project webhook (#21168)

ecmadao04053ce0303f
diff --git a/backend/api/mcp/gen/openapi.yaml b/backend/api/mcp/gen/openapi.yaml
index 923c996512..ec620b7c7c 100644
--- a/backend/api/mcp/gen/openapi.yaml
+++ b/backend/api/mcp/gen/openapi.yaml
@@ -6725,7 +6725,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/google.api.HttpBody'
+ $ref: '#/components/schemas/bytebase.v1.ExportVCSProviderUsersResponse'
/bytebase.v1.SubscriptionService/GetPaymentInfo:
post:
tags:
@@ -11777,6 +11777,15 @@ components:
type: object
title: ExportVCSProviderUsersRequest
additionalProperties: false
+ bytebase.v1.ExportVCSProviderUsersResponse:
+ type: object
+ properties:
+ content:
+ type: string
+ title: content
+ format: byte
+ title: ExportVCSProviderUsersResponse
+ additionalProperties: false
bytebase.v1.ExtensionMetadata:
type: object
properties:
@@ -21455,72 +21464,6 @@ components:
description: Deserialized error detail payload. The 'type' field indicates the schema. This field is for easier debugging and should not be relied upon for application logic.
additionalProperties: true
description: Contains an arbitrary serialized message along with a @type that describes the type of the serialized message, with an additional debug field for ConnectRPC error details.
- google.api.HttpBody:
- type: object
- properties:
- contentType:
- type: string
- title: content_type
- description: The HTTP Content-Type header value specifying the content type of the body.
- data:
- type: string
- title: data
- format: byte
- description: The HTTP request/response body as raw binary.
- extensions:
- type: array
- items:
- $ref: '#/components/schemas/google.protobuf.Any'
- title: extensions
- description: |-
- Application specific response metadata. Must be set in the first response
- for streaming APIs.
- title: HttpBody
- additionalProperties: false
- description: |-
- Message that represents an arbitrary HTTP body. It should only be used for
- payload formats that can't be represented as JSON, such as raw binary or
- an HTML page.
-
-
- This message can be used both in streaming and non-streaming API methods in
- the request as well as the response.
-
- It can be used as a top-level request field, which is convenient if one
- wants to extract parameters from either the URL or HTTP template into the
- request fields and also want access to the raw HTTP body.
-
- Example:
-
- message GetResourceRequest {
- // A unique request id.
- string request_id = 1;
-
- // The raw HTTP body is bound to this field.
- google.api.HttpBody http_body = 2;
-
- }
-
- service ResourceService {
- rpc GetResource(GetResourceRequest)
- returns (google.api.HttpBody);
- rpc UpdateResource(google.api.HttpBody)
- returns (google.protobuf.Empty);
-
- }
-
- Example with streaming methods:
-
- service CaldavService {
- rpc GetCalendar(stream google.api.HttpBody)
- returns (stream google.api.HttpBody);
- rpc UpdateCalendar(stream google.api.HttpBody)
- returns (stream google.api.HttpBody);
-
- }
-
- Use of this type only changes how the request and response bodies are
- handled, all other features will continue to work unchanged.
google.api.expr.v1alpha1.Constant:
type: object
oneOf:
diff --git a/backend/api/v1/audit.go b/backend/api/v1/audit.go
index 88b6649efd..85f84bb177 100644
--- a/backend/api/v1/audit.go
+++ b/backend/api/v1/audit.go
@@ -530,6 +530,8 @@ func getRequestString(request any) (string, error) {
return redactExchangeTokenRequest(r)
case *v1pb.ResetPasswordRequest:
return redactResetPasswordRequest(r)
+ case *v1pb.UploadLicenseRequest:
+ return redactUploadLicenseRequest(r)
case *v1pb.CreateProjectRequest:
r = proto.CloneOf(r)
r.Project = redactProject(r.Project)
@@ -538,6 +540,18 @@ func getRequestString(request any) (string, error) {
r = proto.CloneOf(r)
r.Project = redactProject(r.Project)
return r
+ case *v1pb.AddWebhookRequest:
+ r = proto.CloneOf(r)
+ r.Webhook = redactWebhook(r.Webhook)
+ return r
+ case *v1pb.UpdateWebhookRequest:
+ r = proto.CloneOf(r)
+ r.Webhook = redactWebhook(r.Webhook)
+ return r
+ case *v1pb.RemoveWebhookRequest:
+ r = proto.CloneOf(r)
+ r.Webhook = redactWebhook(r.Webhook)
+ return r
case *v1pb.CreateReleaseRequest:
r = proto.CloneOf(r)
r.Release = redactRelease(r.Release)
@@ -650,6 +664,12 @@ func getResponseString(response any) (string, error) {
return redactRelease(r)
case *v1pb.SavedQuery:
return redactSavedQuery(r)
+ case *v1pb.PurchaseResponse:
+ return redactPurchaseResponse(r)
+ case *v1pb.ExportVCSProviderUsersResponse:
+ return redactExportVCSProviderUsersResponse(r)
+ case *v1pb.ExportAuditLogsResponse:
+ return redactExportAuditLogsResponse(r)
case *v1pb.Sheet:
return redactSheet(r)
case *v1pb.BatchCreateSheetsResponse:
@@ -685,6 +705,34 @@ func redactResetPasswordRequest(r *v1pb.ResetPasswordRequest) *v1pb.ResetPasswor
return cloned
}
+func redactUploadLicenseRequest(r *v1pb.UploadLicenseRequest) *v1pb.UploadLicenseRequest {
+ if r == nil {
+ return nil
+ }
+ return &v1pb.UploadLicenseRequest{License: maskedString}
+}
+
+func redactPurchaseResponse(r *v1pb.PurchaseResponse) *v1pb.PurchaseResponse {
+ if r == nil {
+ return nil
+ }
+ return &v1pb.PurchaseResponse{}
+}
+
+func redactExportVCSProviderUsersResponse(r *v1pb.ExportVCSProviderUsersResponse) *v1pb.ExportVCSProviderUsersResponse {
+ if r == nil {
+ return nil
+ }
+ return &v1pb.ExportVCSProviderUsersResponse{}
+}
+
+func redactExportAuditLogsResponse(r *v1pb.ExportAuditLogsResponse) *v1pb.ExportAuditLogsResponse {
+ if r == nil {
+ return nil
+ }
+ return &v1pb.ExportAuditLogsResponse{NextPageToken: r.NextPageToken}
+}
+
func redactExportRequest(r *v1pb.ExportRequest) *v1pb.ExportRequest {
if r == nil {
return nil
diff --git a/backend/api/v1/audit_redaction_test.go b/backend/api/v1/audit_redaction_test.go
index 743a46483d..f3ead2a2eb 100644
--- a/backend/api/v1/audit_redaction_test.go
+++ b/backend/api/v1/audit_redaction_test.go
@@ -66,6 +66,26 @@ func TestAuditResponseRedactsCredentials(t *testing.T) {
name: "saved query response SQL",
response: &v1pb.SavedQuery{Content: []byte(secretSentinel)},
},
+ {
+ name: "purchase checkout credentials",
+ response: &v1pb.PurchaseResponse{
+ PaymentUrl: secretSentinel,
+ SessionId: secretSentinel,
+ },
+ },
+ {
+ name: "VCS provider user export",
+ response: &v1pb.ExportVCSProviderUsersResponse{
+ Content: []byte(secretSentinel),
+ },
+ },
+ {
+ name: "exported audit log content",
+ response: &v1pb.ExportAuditLogsResponse{
+ Content: []byte(secretSentinel),
+ NextPageToken: "next-page-token",
+ },
+ },
} {
t.Run(tt.name, func(t *testing.T) {
got, err := getResponseString(tt.response)
@@ -140,6 +160,17 @@ func TestAuditRequestRedactsCredentials(t *testing.T) {
Code: secretSentinel,
NewPassword: secretSentinel,
}},
+ {"enterprise license", &v1pb.UploadLicenseRequest{License: secretSentinel}},
+ {"add webhook URL", &v1pb.AddWebhookRequest{
+ Project: "projects/project-a",
+ Webhook: &v1pb.Webhook{Name: "projects/project-a/webhooks/webhook-a", Title: "Webhook A", Url: secretSentinel},
+ }},
+ {"update webhook URL", &v1pb.UpdateWebhookRequest{
+ Webhook: &v1pb.Webhook{Name: "projects/project-a/webhooks/webhook-a", Title: "Webhook A", Url: secretSentinel},
+ }},
+ {"remove webhook URL", &v1pb.RemoveWebhookRequest{
+ Webhook: &v1pb.Webhook{Name: "projects/project-a/webhooks/webhook-a", Title: "Webhook A", Url: secretSentinel},
+ }},
} {
t.Run(tt.name, func(t *testing.T) {
got, err := getRequestString(tt.request)
@@ -153,6 +184,43 @@ func TestAuditRequestRedactsCredentials(t *testing.T) {
}
}
+func TestSensitiveOutboundAuditMetadata(t *testing.T) {
+ for _, tt := range []struct {
+ name string
+ value any
+ response bool
+ want []string
+ }{
+ {
+ name: "webhook request retains identifiers",
+ value: &v1pb.AddWebhookRequest{Project: "projects/project-a", Webhook: &v1pb.Webhook{Name: "projects/project-a/webhooks/webhook-a", Title: "Webhook A", Url: secretSentinel}},
+ want: []string{"projects/project-a", "projects/project-a/webhooks/webhook-a", "Webhook A"},
+ },
+ {
+ name: "audit export retains page token",
+ value: &v1pb.ExportAuditLogsResponse{Content: []byte(secretSentinel), NextPageToken: "next-page-token"},
+ response: true,
+ want: []string{"next-page-token"},
+ },
+ } {
+ t.Run(tt.name, func(t *testing.T) {
+ var (
+ got string
+ err error
+ )
+ if tt.response {
+ got, err = getResponseString(tt.value)
+ } else {
+ got, err = getRequestString(tt.value)
+ }
+ require.NoError(t, err)
+ for _, want := range tt.want {
+ require.Contains(t, got, want)
+ }
+ })
+ }
+}
+
// Redaction must not mutate the caller's message: these run on the live request
// and response objects, so masking in place would corrupt what the handler
// returns to the client or what a later interceptor reads.
@@ -185,6 +253,11 @@ func TestAuditRedactionDoesNotMutateInput(t *testing.T) {
require.NoError(t, err)
require.Equal(t, secretSentinel, string(savedQuery.GetContent()), "redaction mutated the saved query response")
+ auditExport := &v1pb.ExportAuditLogsResponse{Content: []byte(secretSentinel), NextPageToken: "next-page-token"}
+ _, err = getResponseString(auditExport)
+ require.NoError(t, err)
+ require.Equal(t, secretSentinel, string(auditExport.GetContent()), "redaction mutated the audit export response")
+
for _, tt := range []struct {
name string
request any
diff --git a/backend/api/v1/audit_test.go b/backend/api/v1/audit_test.go
index 6389290a1c..faa62d3960 100644
--- a/backend/api/v1/audit_test.go
+++ b/backend/api/v1/audit_test.go
@@ -340,8 +340,10 @@ func TestLifecycleAuditResource(t *testing.T) {
{name: "create review config", request: &v1pb.CreateReviewConfigRequest{ReviewConfig: &v1pb.ReviewConfig{Name: "reviewConfigs/config-a"}}, method: "/bytebase.v1.ReviewConfigService/CreateReviewConfig", want: "reviewConfigs/config-a"},
{name: "update review config", request: &v1pb.UpdateReviewConfigRequest{ReviewConfig: &v1pb.ReviewConfig{Name: "reviewConfigs/config-a"}}, method: "/bytebase.v1.ReviewConfigService/UpdateReviewConfig", want: "reviewConfigs/config-a"},
{name: "delete review config", request: &v1pb.DeleteReviewConfigRequest{Name: "reviewConfigs/config-a"}, method: "/bytebase.v1.ReviewConfigService/DeleteReviewConfig", want: "reviewConfigs/config-a"},
- {name: "test existing identity provider", request: &v1pb.TestIdentityProviderRequest{IdentityProvider: &v1pb.IdentityProvider{Name: "idps/idp-a"}}, method: "/bytebase.v1.IdentityProviderService/TestIdentityProvider", want: "idps/idp-a"},
- {name: "test uncreated identity provider", request: &v1pb.TestIdentityProviderRequest{IdentityProvider: &v1pb.IdentityProvider{}}, method: "/bytebase.v1.IdentityProviderService/TestIdentityProvider", want: ""},
+ {name: "add webhook", request: &v1pb.AddWebhookRequest{Project: "projects/project-a"}, method: v1connect.ProjectServiceAddWebhookProcedure, want: "projects/project-a"},
+ {name: "update webhook", request: &v1pb.UpdateWebhookRequest{Webhook: &v1pb.Webhook{Name: "projects/project-a/webhooks/webhook-a"}}, method: v1connect.ProjectServiceUpdateWebhookProcedure, want: "projects/project-a/webhooks/webhook-a"},
+ {name: "remove webhook", request: &v1pb.RemoveWebhookRequest{Webhook: &v1pb.Webhook{Name: "projects/project-a/webhooks/webhook-a"}}, method: v1connect.ProjectServiceRemoveWebhookProcedure, want: "projects/project-a/webhooks/webhook-a"},
+ {name: "export audit logs", request: &v1pb.ExportAuditLogsRequest{Parent: "projects/project-a"}, method: v1connect.AuditLogServiceExportAuditLogsProcedure, want: "projects/project-a"},
} {
t.Run(test.name, func(t *testing.T) {
require.Equal(t, test.want, getRequestResource(test.request, test.method))
diff --git a/backend/api/v1/project_service.go b/backend/api/v1/project_service.go
index 8328e6b816..4942bf3829 100644
--- a/backend/api/v1/project_service.go
+++ b/backend/api/v1/project_service.go
@@ -823,7 +823,7 @@ func (s *ProjectService) UpdateWebhook(ctx context.Context, req *connect.Request
Webhook: req.Msg.Webhook,
}))
}
- return nil, connect.NewError(connect.CodeNotFound, errors.Errorf("webhook %q not found", req.Msg.Webhook.Url))
+ return nil, connect.NewError(connect.CodeNotFound, errors.Errorf("webhook %q not found", webhookID))
}
// Start with existing webhook payload
@@ -906,7 +906,7 @@ func (s *ProjectService) RemoveWebhook(ctx context.Context, req *connect.Request
return nil, connect.NewError(connect.CodeInternal, err)
}
if webhook == nil {
- return nil, connect.NewError(connect.CodeNotFound, errors.Errorf("webhook %q not found", req.Msg.Webhook.Url))
+ return nil, connect.NewError(connect.CodeNotFound, errors.Errorf("webhook %q not found", webhookID))
}
if err := s.store.DeleteProjectWebhook(ctx, project.ResourceID, webhook.ResourceID); err != nil {
diff --git a/backend/api/v1/subscription_service.go b/backend/api/v1/subscription_service.go
index 9962d35695..311626b5ed 100644
--- a/backend/api/v1/subscription_service.go
+++ b/backend/api/v1/subscription_service.go
@@ -11,7 +11,6 @@ import (
"connectrpc.com/connect"
"github.com/pkg/errors"
- "google.golang.org/genproto/googleapis/api/httpbody"
"github.com/bytebase/bytebase/backend/common"
"github.com/bytebase/bytebase/backend/common/log"
@@ -60,7 +59,7 @@ func (s *SubscriptionService) GetSubscription(ctx context.Context, _ *connect.Re
}
// ExportVCSProviderUsers exports active VCS provider users as CSV.
-func (s *SubscriptionService) ExportVCSProviderUsers(ctx context.Context, _ *connect.Request[v1pb.ExportVCSProviderUsersRequest]) (*connect.Response[httpbody.HttpBody], error) {
+func (s *SubscriptionService) ExportVCSProviderUsers(ctx context.Context, _ *connect.Request[v1pb.ExportVCSProviderUsersRequest]) (*connect.Response[v1pb.ExportVCSProviderUsersResponse], error) {
workspaceID := common.GetWorkspaceIDFromContext(ctx)
users, err := s.store.ListActiveVCSProviderUsers(ctx, workspaceID, vcsProviderUserActiveWindow)
if err != nil {
@@ -88,9 +87,8 @@ func (s *SubscriptionService) ExportVCSProviderUsers(ctx context.Context, _ *con
return nil, connect.NewError(connect.CodeInternal, err)
}
- return connect.NewResponse(&httpbody.HttpBody{
- ContentType: "text/csv; charset=utf-8",
- Data: buf.Bytes(),
+ return connect.NewResponse(&v1pb.ExportVCSProviderUsersResponse{
+ Content: buf.Bytes(),
}), nil
}
diff --git a/backend/generated-go/v1/audit_log_service.pb.go b/backend/generated-go/v1/audit_log_service.pb.go
index 4d95730290..7f0b776461 100644
--- a/backend/generated-go/v1/audit_log_service.pb.go
+++ b/backend/generated-go/v1/audit_log_service.pb.go
@@ -826,10 +826,10 @@ const file_v1_audit_log_service_proto_rawDesc = "" +
"\x05scope\x18\x01 \x01(\tR\x05scope\x12\x1a\n" +
"\bresource\x18\x02 \x01(\tR\bresource\x12\x1b\n" +
"\tclient_id\x18\x03 \x01(\tR\bclientId\x12%\n" +
- "\x0ecorrelation_id\x18\x04 \x01(\tR\rcorrelationId2\xa5\x03\n" +
+ "\x0ecorrelation_id\x18\x04 \x01(\tR\rcorrelationId2\xa9\x03\n" +
"\x0fAuditLogService\x12\xc7\x01\n" +
- "\x0fSearchAuditLogs\x12#.bytebase.v1.SearchAuditLogsRequest\x1a$.bytebase.v1.SearchAuditLogsResponse\"i\x8a\xea0\x13bb.auditLogs.search\x90\xea0\x01\x82\xd3\xe4\x93\x02H:\x01*Z\x19:\x01*\"\x14/v1/auditLogs:search\"(/v1/{parent=projects/*}/auditLogs:search\x12\xc7\x01\n" +
- "\x0fExportAuditLogs\x12#.bytebase.v1.ExportAuditLogsRequest\x1a$.bytebase.v1.ExportAuditLogsResponse\"i\x8a\xea0\x13bb.auditLogs.export\x90\xea0\x01\x82\xd3\xe4\x93\x02H:\x01*Z\x19:\x01*\"\x14/v1/auditLogs:export\"(/v1/{parent=projects/*}/auditLogs:exportB\xaa\x01\n" +
+ "\x0fSearchAuditLogs\x12#.bytebase.v1.SearchAuditLogsRequest\x1a$.bytebase.v1.SearchAuditLogsResponse\"i\x8a\xea0\x13bb.auditLogs.search\x90\xea0\x01\x82\xd3\xe4\x93\x02H:\x01*Z\x19:\x01*\"\x14/v1/auditLogs:search\"(/v1/{parent=projects/*}/auditLogs:search\x12\xcb\x01\n" +
+ "\x0fExportAuditLogs\x12#.bytebase.v1.ExportAuditLogsRequest\x1a$.bytebase.v1.ExportAuditLogsResponse\"m\x8a\xea0\x13bb.auditLogs.export\x90\xea0\x01\x98\xea0\x01\x82\xd3\xe4\x93\x02H:\x01*Z\x19:\x01*\"\x14/v1/auditLogs:export\"(/v1/{parent=projects/*}/auditLogs:exportB\xaa\x01\n" +
"\x0fcom.bytebase.v1B\x14AuditLogServiceProtoP\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/project_service.pb.go b/backend/generated-go/v1/project_service.pb.go
index c5f8d6b131..c69d9647f7 100644
--- a/backend/generated-go/v1/project_service.pb.go
+++ b/backend/generated-go/v1/project_service.pb.go
@@ -1687,7 +1687,7 @@ const file_v1_project_service_proto_rawDesc = "" +
"\x0fISSUE_SENT_BACK\x10\f\x12\x13\n" +
"\x0fPIPELINE_FAILED\x10\r\x12\x16\n" +
"\x12PIPELINE_COMPLETED\x10\x0e\x12\x12\n" +
- "\x0eISSUE_APPROVED\x10\x0f\"\x04\b\x01\x10\t2\x8a\x12\n" +
+ "\x0eISSUE_APPROVED\x10\x0f\"\x04\b\x01\x10\t2\x96\x12\n" +
"\x0eProjectService\x12\x7f\n" +
"\n" +
"GetProject\x12\x1e.bytebase.v1.GetProjectRequest\x1a\x14.bytebase.v1.Project\";\xdaA\x04name\x8a\xea0\x0fbb.projects.get\x90\xea0\x01\x82\xd3\xe4\x93\x02\x17\x12\x15/v1/{name=projects/*}\x12\x95\x01\n" +
@@ -1700,11 +1700,11 @@ const file_v1_project_service_proto_rawDesc = "" +
"\x0fUndeleteProject\x12#.bytebase.v1.UndeleteProjectRequest\x1a\x14.bytebase.v1.Project\"I\x8a\xea0\x14bb.projects.undelete\x90\xea0\x01\x98\xea0\x01\x82\xd3\xe4\x93\x02#:\x01*\"\x1e/v1/{name=projects/*}:undelete\x12\x99\x01\n" +
"\x13BatchDeleteProjects\x12'.bytebase.v1.BatchDeleteProjectsRequest\x1a\x16.google.protobuf.Empty\"A\x8a\xea0\x12bb.projects.delete\x90\xea0\x01\x98\xea0\x01\x82\xd3\xe4\x93\x02\x1d:\x01*\"\x18/v1/projects:batchDelete\x12\x98\x01\n" +
"\fGetIamPolicy\x12 .bytebase.v1.GetIamPolicyRequest\x1a\x16.bytebase.v1.IamPolicy\"N\x8a\xea0\x18bb.projects.getIamPolicy\x90\xea0\x01\x82\xd3\xe4\x93\x02(\x12&/v1/{resource=projects/*}:getIamPolicy\x12\x9f\x01\n" +
- "\fSetIamPolicy\x12 .bytebase.v1.SetIamPolicyRequest\x1a\x16.bytebase.v1.IamPolicy\"U\x8a\xea0\x18bb.projects.setIamPolicy\x90\xea0\x01\x98\xea0\x01\x82\xd3\xe4\x93\x02+:\x01*\"&/v1/{resource=projects/*}:setIamPolicy\x12\x8c\x01\n" +
+ "\fSetIamPolicy\x12 .bytebase.v1.SetIamPolicyRequest\x1a\x16.bytebase.v1.IamPolicy\"U\x8a\xea0\x18bb.projects.setIamPolicy\x90\xea0\x01\x98\xea0\x01\x82\xd3\xe4\x93\x02+:\x01*\"&/v1/{resource=projects/*}:setIamPolicy\x12\x90\x01\n" +
"\n" +
- "AddWebhook\x12\x1e.bytebase.v1.AddWebhookRequest\x1a\x14.bytebase.v1.Project\"H\x8a\xea0\x12bb.projects.update\x90\xea0\x01\x82\xd3\xe4\x93\x02(:\x01*\"#/v1/{project=projects/*}:addWebhook\x12\xc1\x01\n" +
- "\rUpdateWebhook\x12!.bytebase.v1.UpdateWebhookRequest\x1a\x14.bytebase.v1.Project\"w\xdaA\x13webhook,update_mask\x8a\xea0\x12bb.projects.update\x90\xea0\x01\x82\xd3\xe4\x93\x02A:\awebhook26/v1/{webhook.name=projects/*/webhooks/*}:updateWebhook\x12\xa5\x01\n" +
- "\rRemoveWebhook\x12!.bytebase.v1.RemoveWebhookRequest\x1a\x14.bytebase.v1.Project\"[\x8a\xea0\x12bb.projects.update\x90\xea0\x01\x82\xd3\xe4\x93\x02;:\x01*\"6/v1/{webhook.name=projects/*/webhooks/*}:removeWebhook\x12\x9b\x01\n" +
+ "AddWebhook\x12\x1e.bytebase.v1.AddWebhookRequest\x1a\x14.bytebase.v1.Project\"L\x8a\xea0\x12bb.projects.update\x90\xea0\x01\x98\xea0\x01\x82\xd3\xe4\x93\x02(:\x01*\"#/v1/{project=projects/*}:addWebhook\x12\xc5\x01\n" +
+ "\rUpdateWebhook\x12!.bytebase.v1.UpdateWebhookRequest\x1a\x14.bytebase.v1.Project\"{\xdaA\x13webhook,update_mask\x8a\xea0\x12bb.projects.update\x90\xea0\x01\x98\xea0\x01\x82\xd3\xe4\x93\x02A:\awebhook26/v1/{webhook.name=projects/*/webhooks/*}:updateWebhook\x12\xa9\x01\n" +
+ "\rRemoveWebhook\x12!.bytebase.v1.RemoveWebhookRequest\x1a\x14.bytebase.v1.Project\"_\x8a\xea0\x12bb.projects.update\x90\xea0\x01\x98\xea0\x01\x82\xd3\xe4\x93\x02;:\x01*\"6/v1/{webhook.name=projects/*/webhooks/*}:removeWebhook\x12\x9b\x01\n" +
"\vTestWebhook\x12\x1f.bytebase.v1.TestWebhookRequest\x1a .bytebase.v1.TestWebhookResponse\"I\x8a\xea0\x12bb.projects.update\x90\xea0\x01\x82\xd3\xe4\x93\x02):\x01*\"$/v1/{project=projects/*}:testWebhookB\xa9\x01\n" +
"\x0fcom.bytebase.v1B\x13ProjectServiceProtoP\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/subscription_service.pb.go b/backend/generated-go/v1/subscription_service.pb.go
index 6d33f2bd38..f755829804 100644
--- a/backend/generated-go/v1/subscription_service.pb.go
+++ b/backend/generated-go/v1/subscription_service.pb.go
@@ -8,7 +8,6 @@ package v1
import (
_ "google.golang.org/genproto/googleapis/api/annotations"
- httpbody "google.golang.org/genproto/googleapis/api/httpbody"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
@@ -434,7 +433,7 @@ func (x PurchasePlanAdditional_Type) Number() protoreflect.EnumNumber {
// Deprecated: Use PurchasePlanAdditional_Type.Descriptor instead.
func (PurchasePlanAdditional_Type) EnumDescriptor() ([]byte, []int) {
- return file_v1_subscription_service_proto_rawDescGZIP(), []int{12, 0}
+ return file_v1_subscription_service_proto_rawDescGZIP(), []int{13, 0}
}
type PurchaseDiscount_Type int32
@@ -486,7 +485,7 @@ func (x PurchaseDiscount_Type) Number() protoreflect.EnumNumber {
// Deprecated: Use PurchaseDiscount_Type.Descriptor instead.
func (PurchaseDiscount_Type) EnumDescriptor() ([]byte, []int) {
- return file_v1_subscription_service_proto_rawDescGZIP(), []int{14, 0}
+ return file_v1_subscription_service_proto_rawDescGZIP(), []int{15, 0}
}
type GetSubscriptionRequest struct {
@@ -561,6 +560,50 @@ func (*ExportVCSProviderUsersRequest) Descriptor() ([]byte, []int) {
return file_v1_subscription_service_proto_rawDescGZIP(), []int{1}
}
+type ExportVCSProviderUsersResponse struct {
+ state protoimpl.MessageState `protogen:"open.v1"`
+ Content []byte `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
+ unknownFields protoimpl.UnknownFields
+ sizeCache protoimpl.SizeCache
+}
+
+func (x *ExportVCSProviderUsersResponse) Reset() {
+ *x = ExportVCSProviderUsersResponse{}
+ mi := &file_v1_subscription_service_proto_msgTypes[2]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+}
+
+func (x *ExportVCSProviderUsersResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*ExportVCSProviderUsersResponse) ProtoMessage() {}
+
+func (x *ExportVCSProviderUsersResponse) ProtoReflect() protoreflect.Message {
+ mi := &file_v1_subscription_service_proto_msgTypes[2]
+ if x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use ExportVCSProviderUsersResponse.ProtoReflect.Descriptor instead.
+func (*ExportVCSProviderUsersResponse) Descriptor() ([]byte, []int) {
+ return file_v1_subscription_service_proto_rawDescGZIP(), []int{2}
+}
+
+func (x *ExportVCSProviderUsersResponse) GetContent() []byte {
+ if x != nil {
+ return x.Content
+ }
+ return nil
+}
+
type UploadLicenseRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
License string `protobuf:"bytes,1,opt,name=license,proto3" json:"license,omitempty"`
@@ -570,7 +613,7 @@ type UploadLicenseRequest struct {
func (x *UploadLicenseRequest) Reset() {
*x = UploadLicenseRequest{}
- mi := &file_v1_subscription_service_proto_msgTypes[2]
+ mi := &file_v1_subscription_service_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -582,7 +625,7 @@ func (x *UploadLicenseRequest) String() string {
func (*UploadLicenseRequest) ProtoMessage() {}
func (x *UploadLicenseRequest) ProtoReflect() protoreflect.Message {
- mi := &file_v1_subscription_service_proto_msgTypes[2]
+ mi := &file_v1_subscription_service_proto_msgTypes[3]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -595,7 +638,7 @@ func (x *UploadLicenseRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use UploadLicenseRequest.ProtoReflect.Descriptor instead.
func (*UploadLicenseRequest) Descriptor() ([]byte, []int) {
- return file_v1_subscription_service_proto_rawDescGZIP(), []int{2}
+ return file_v1_subscription_service_proto_rawDescGZIP(), []int{3}
}
func (x *UploadLicenseRequest) GetLicense() string {
@@ -616,7 +659,7 @@ type CreatePurchaseRequest struct {
func (x *CreatePurchaseRequest) Reset() {
*x = CreatePurchaseRequest{}
- mi := &file_v1_subscription_service_proto_msgTypes[3]
+ mi := &file_v1_subscription_service_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -628,7 +671,7 @@ func (x *CreatePurchaseRequest) String() string {
func (*CreatePurchaseRequest) ProtoMessage() {}
func (x *CreatePurchaseRequest) ProtoReflect() protoreflect.Message {
- mi := &file_v1_subscription_service_proto_msgTypes[3]
+ mi := &file_v1_subscription_service_proto_msgTypes[4]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -641,7 +684,7 @@ func (x *CreatePurchaseRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use CreatePurchaseRequest.ProtoReflect.Descriptor instead.
func (*CreatePurchaseRequest) Descriptor() ([]byte, []int) {
- return file_v1_subscription_service_proto_rawDescGZIP(), []int{3}
+ return file_v1_subscription_service_proto_rawDescGZIP(), []int{4}
}
func (x *CreatePurchaseRequest) GetPlan() PlanType {
@@ -678,7 +721,7 @@ type PurchaseResponse struct {
func (x *PurchaseResponse) Reset() {
*x = PurchaseResponse{}
- mi := &file_v1_subscription_service_proto_msgTypes[4]
+ mi := &file_v1_subscription_service_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -690,7 +733,7 @@ func (x *PurchaseResponse) String() string {
func (*PurchaseResponse) ProtoMessage() {}
func (x *PurchaseResponse) ProtoReflect() protoreflect.Message {
- mi := &file_v1_subscription_service_proto_msgTypes[4]
+ mi := &file_v1_subscription_service_proto_msgTypes[5]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -703,7 +746,7 @@ func (x *PurchaseResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use PurchaseResponse.ProtoReflect.Descriptor instead.
func (*PurchaseResponse) Descriptor() ([]byte, []int) {
- return file_v1_subscription_service_proto_rawDescGZIP(), []int{4}
+ return file_v1_subscription_service_proto_rawDescGZIP(), []int{5}
}
func (x *PurchaseResponse) GetPaymentUrl() string {
@@ -729,7 +772,7 @@ type VerifyCheckoutSessionRequest struct {
func (x *VerifyCheckoutSessionRequest) Reset() {
*x = VerifyCheckoutSessionRequest{}
- mi := &file_v1_subscription_service_proto_msgTypes[5]
+ mi := &file_v1_subscription_service_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -741,7 +784,7 @@ func (x *VerifyCheckoutSessionRequest) String() string {
func (*VerifyCheckoutSessionRequest) ProtoMessage() {}
func (x *VerifyCheckoutSessionRequest) ProtoReflect() protoreflect.Message {
- mi := &file_v1_subscription_service_proto_msgTypes[5]
+ mi := &file_v1_subscription_service_proto_msgTypes[6]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -754,7 +797,7 @@ func (x *VerifyCheckoutSessionRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use VerifyCheckoutSessionRequest.ProtoReflect.Descriptor instead.
func (*VerifyCheckoutSessionRequest) Descriptor() ([]byte, []int) {
- return file_v1_subscription_service_proto_rawDescGZIP(), []int{5}
+ return file_v1_subscription_service_proto_rawDescGZIP(), []int{6}
}
func (x *VerifyCheckoutSessionRequest) GetSessionId() string {
@@ -774,7 +817,7 @@ type VerifyCheckoutSessionResponse struct {
func (x *VerifyCheckoutSessionResponse) Reset() {
*x = VerifyCheckoutSessionResponse{}
- mi := &file_v1_subscription_service_proto_msgTypes[6]
+ mi := &file_v1_subscription_service_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -786,7 +829,7 @@ func (x *VerifyCheckoutSessionResponse) String() string {
func (*VerifyCheckoutSessionResponse) ProtoMessage() {}
func (x *VerifyCheckoutSessionResponse) ProtoReflect() protoreflect.Message {
- mi := &file_v1_subscription_service_proto_msgTypes[6]
+ mi := &file_v1_subscription_service_proto_msgTypes[7]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -799,7 +842,7 @@ func (x *VerifyCheckoutSessionResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use VerifyCheckoutSessionResponse.ProtoReflect.Descriptor instead.
func (*VerifyCheckoutSessionResponse) Descriptor() ([]byte, []int) {
- return file_v1_subscription_service_proto_rawDescGZIP(), []int{6}
+ return file_v1_subscription_service_proto_rawDescGZIP(), []int{7}
}
func (x *VerifyCheckoutSessionResponse) GetStatus() string {
@@ -821,7 +864,7 @@ type UpdatePurchaseRequest struct {
func (x *UpdatePurchaseRequest) Reset() {
*x = UpdatePurchaseRequest{}
- mi := &file_v1_subscription_service_proto_msgTypes[7]
+ mi := &file_v1_subscription_service_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -833,7 +876,7 @@ func (x *UpdatePurchaseRequest) String() string {
func (*UpdatePurchaseRequest) ProtoMessage() {}
func (x *UpdatePurchaseRequest) ProtoReflect() protoreflect.Message {
- mi := &file_v1_subscription_service_proto_msgTypes[7]
+ mi := &file_v1_subscription_service_proto_msgTypes[8]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -846,7 +889,7 @@ func (x *UpdatePurchaseRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use UpdatePurchaseRequest.ProtoReflect.Descriptor instead.
func (*UpdatePurchaseRequest) Descriptor() ([]byte, []int) {
- return file_v1_subscription_service_proto_rawDescGZIP(), []int{7}
+ return file_v1_subscription_service_proto_rawDescGZIP(), []int{8}
}
func (x *UpdatePurchaseRequest) GetPlan() PlanType {
@@ -892,7 +935,7 @@ type CancelPurchaseRequest struct {
func (x *CancelPurchaseRequest) Reset() {
*x = CancelPurchaseRequest{}
- mi := &file_v1_subscription_service_proto_msgTypes[8]
+ mi := &file_v1_subscription_service_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -904,7 +947,7 @@ func (x *CancelPurchaseRequest) String() string {
func (*CancelPurchaseRequest) ProtoMessage() {}
func (x *CancelPurchaseRequest) ProtoReflect() protoreflect.Message {
- mi := &file_v1_subscription_service_proto_msgTypes[8]
+ mi := &file_v1_subscription_service_proto_msgTypes[9]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -917,7 +960,7 @@ func (x *CancelPurchaseRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use CancelPurchaseRequest.ProtoReflect.Descriptor instead.
func (*CancelPurchaseRequest) Descriptor() ([]byte, []int) {
- return file_v1_subscription_service_proto_rawDescGZIP(), []int{8}
+ return file_v1_subscription_service_proto_rawDescGZIP(), []int{9}
}
func (x *CancelPurchaseRequest) GetFeedback() string {
@@ -942,7 +985,7 @@ type GetPaymentInfoRequest struct {
func (x *GetPaymentInfoRequest) Reset() {
*x = GetPaymentInfoRequest{}
- mi := &file_v1_subscription_service_proto_msgTypes[9]
+ mi := &file_v1_subscription_service_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -954,7 +997,7 @@ func (x *GetPaymentInfoRequest) String() string {
func (*GetPaymentInfoRequest) ProtoMessage() {}
func (x *GetPaymentInfoRequest) ProtoReflect() protoreflect.Message {
- mi := &file_v1_subscription_service_proto_msgTypes[9]
+ mi := &file_v1_subscription_service_proto_msgTypes[10]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -967,7 +1010,7 @@ func (x *GetPaymentInfoRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use GetPaymentInfoRequest.ProtoReflect.Descriptor instead.
func (*GetPaymentInfoRequest) Descriptor() ([]byte, []int) {
- return file_v1_subscription_service_proto_rawDescGZIP(), []int{9}
+ return file_v1_subscription_service_proto_rawDescGZIP(), []int{10}
}
type PaymentInfo struct {
@@ -990,7 +1033,7 @@ type PaymentInfo struct {
func (x *PaymentInfo) Reset() {
*x = PaymentInfo{}
- mi := &file_v1_subscription_service_proto_msgTypes[10]
+ mi := &file_v1_subscription_service_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1002,7 +1045,7 @@ func (x *PaymentInfo) String() string {
func (*PaymentInfo) ProtoMessage() {}
func (x *PaymentInfo) ProtoReflect() protoreflect.Message {
- mi := &file_v1_subscription_service_proto_msgTypes[10]
+ mi := &file_v1_subscription_service_proto_msgTypes[11]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1015,7 +1058,7 @@ func (x *PaymentInfo) ProtoReflect() protoreflect.Message {
// Deprecated: Use PaymentInfo.ProtoReflect.Descriptor instead.
func (*PaymentInfo) Descriptor() ([]byte, []int) {
- return file_v1_subscription_service_proto_rawDescGZIP(), []int{10}
+ return file_v1_subscription_service_proto_rawDescGZIP(), []int{11}
}
func (x *PaymentInfo) GetTotalPrice() string {
@@ -1079,7 +1122,7 @@ type PurchasePlan struct {
func (x *PurchasePlan) Reset() {
*x = PurchasePlan{}
- mi := &file_v1_subscription_service_proto_msgTypes[11]
+ mi := &file_v1_subscription_service_proto_msgTypes[12]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1091,7 +1134,7 @@ func (x *PurchasePlan) String() string {
func (*PurchasePlan) ProtoMessage() {}
func (x *PurchasePlan) ProtoReflect() protoreflect.Message {
- mi := &file_v1_subscription_service_proto_msgTypes[11]
+ mi := &file_v1_subscription_service_proto_msgTypes[12]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1104,7 +1147,7 @@ func (x *PurchasePlan) ProtoReflect() protoreflect.Message {
// Deprecated: Use PurchasePlan.ProtoReflect.Descriptor instead.
func (*PurchasePlan) Descriptor() ([]byte, []int) {
- return file_v1_subscription_service_proto_rawDescGZIP(), []int{11}
+ return file_v1_subscription_service_proto_rawDescGZIP(), []int{12}
}
func (x *PurchasePlan) GetType() PlanType {
@@ -1150,7 +1193,7 @@ type PurchasePlanAdditional struct {
func (x *PurchasePlanAdditional) Reset() {
*x = PurchasePlanAdditional{}
- mi := &file_v1_subscription_service_proto_msgTypes[12]
+ mi := &file_v1_subscription_service_proto_msgTypes[13]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1162,7 +1205,7 @@ func (x *PurchasePlanAdditional) String() string {
func (*PurchasePlanAdditional) ProtoMessage() {}
func (x *PurchasePlanAdditional) ProtoReflect() protoreflect.Message {
- mi := &file_v1_subscription_service_proto_msgTypes[12]
+ mi := &file_v1_subscription_service_proto_msgTypes[13]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1175,7 +1218,7 @@ func (x *PurchasePlanAdditional) ProtoReflect() protoreflect.Message {
// Deprecated: Use PurchasePlanAdditional.ProtoReflect.Descriptor instead.
func (*PurchasePlanAdditional) Descriptor() ([]byte, []int) {
- return file_v1_subscription_service_proto_rawDescGZIP(), []int{12}
+ return file_v1_subscription_service_proto_rawDescGZIP(), []int{13}
}
func (x *PurchasePlanAdditional) GetType() PurchasePlanAdditional_Type {
@@ -1223,7 +1266,7 @@ type PurchaseBillingMethod struct {
func (x *PurchaseBillingMethod) Reset() {
*x = PurchaseBillingMethod{}
- mi := &file_v1_subscription_service_proto_msgTypes[13]
+ mi := &file_v1_subscription_service_proto_msgTypes[14]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1235,7 +1278,7 @@ func (x *PurchaseBillingMethod) String() string {
func (*PurchaseBillingMethod) ProtoMessage() {}
func (x *PurchaseBillingMethod) ProtoReflect() protoreflect.Message {
- mi := &file_v1_subscription_service_proto_msgTypes[13]
+ mi := &file_v1_subscription_service_proto_msgTypes[14]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1248,7 +1291,7 @@ func (x *PurchaseBillingMethod) ProtoReflect() protoreflect.Message {
// Deprecated: Use PurchaseBillingMethod.ProtoReflect.Descriptor instead.
func (*PurchaseBillingMethod) Descriptor() ([]byte, []int) {
- return file_v1_subscription_service_proto_rawDescGZIP(), []int{13}
+ return file_v1_subscription_service_proto_rawDescGZIP(), []int{14}
}
func (x *PurchaseBillingMethod) GetInterval() BillingInterval {
@@ -1275,7 +1318,7 @@ type PurchaseDiscount struct {
func (x *PurchaseDiscount) Reset() {
*x = PurchaseDiscount{}
- mi := &file_v1_subscription_service_proto_msgTypes[14]
+ mi := &file_v1_subscription_service_proto_msgTypes[15]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1287,7 +1330,7 @@ func (x *PurchaseDiscount) String() string {
func (*PurchaseDiscount) ProtoMessage() {}
func (x *PurchaseDiscount) ProtoReflect() protoreflect.Message {
- mi := &file_v1_subscription_service_proto_msgTypes[14]
+ mi := &file_v1_subscription_service_proto_msgTypes[15]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1300,7 +1343,7 @@ func (x *PurchaseDiscount) ProtoReflect() protoreflect.Message {
// Deprecated: Use PurchaseDiscount.ProtoReflect.Descriptor instead.
func (*PurchaseDiscount) Descriptor() ([]byte, []int) {
- return file_v1_subscription_service_proto_rawDescGZIP(), []int{14}
+ return file_v1_subscription_service_proto_rawDescGZIP(), []int{15}
}
func (x *PurchaseDiscount) GetType() PurchaseDiscount_Type {
@@ -1325,7 +1368,7 @@ type ListPurchasePlansRequest struct {
func (x *ListPurchasePlansRequest) Reset() {
*x = ListPurchasePlansRequest{}
- mi := &file_v1_subscription_service_proto_msgTypes[15]
+ mi := &file_v1_subscription_service_proto_msgTypes[16]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1337,7 +1380,7 @@ func (x *ListPurchasePlansRequest) String() string {
func (*ListPurchasePlansRequest) ProtoMessage() {}
func (x *ListPurchasePlansRequest) ProtoReflect() protoreflect.Message {
- mi := &file_v1_subscription_service_proto_msgTypes[15]
+ mi := &file_v1_subscription_service_proto_msgTypes[16]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1350,7 +1393,7 @@ func (x *ListPurchasePlansRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use ListPurchasePlansRequest.ProtoReflect.Descriptor instead.
func (*ListPurchasePlansRequest) Descriptor() ([]byte, []int) {
- return file_v1_subscription_service_proto_rawDescGZIP(), []int{15}
+ return file_v1_subscription_service_proto_rawDescGZIP(), []int{16}
}
type ListPurchasePlansResponse struct {
@@ -1362,7 +1405,7 @@ type ListPurchasePlansResponse struct {
func (x *ListPurchasePlansResponse) Reset() {
*x = ListPurchasePlansResponse{}
- mi := &file_v1_subscription_service_proto_msgTypes[16]
+ mi := &file_v1_subscription_service_proto_msgTypes[17]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1374,7 +1417,7 @@ func (x *ListPurchasePlansResponse) String() string {
func (*ListPurchasePlansResponse) ProtoMessage() {}
func (x *ListPurchasePlansResponse) ProtoReflect() protoreflect.Message {
- mi := &file_v1_subscription_service_proto_msgTypes[16]
+ mi := &file_v1_subscription_service_proto_msgTypes[17]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1387,7 +1430,7 @@ func (x *ListPurchasePlansResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use ListPurchasePlansResponse.ProtoReflect.Descriptor instead.
func (*ListPurchasePlansResponse) Descriptor() ([]byte, []int) {
- return file_v1_subscription_service_proto_rawDescGZIP(), []int{16}
+ return file_v1_subscription_service_proto_rawDescGZIP(), []int{17}
}
func (x *ListPurchasePlansResponse) GetPlans() []*PurchasePlan {
@@ -1416,7 +1459,7 @@ type Subscription struct {
func (x *Subscription) Reset() {
*x = Subscription{}
- mi := &file_v1_subscription_service_proto_msgTypes[17]
+ mi := &file_v1_subscription_service_proto_msgTypes[18]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1428,7 +1471,7 @@ func (x *Subscription) String() string {
func (*Subscription) ProtoMessage() {}
func (x *Subscription) ProtoReflect() protoreflect.Message {
- mi := &file_v1_subscription_service_proto_msgTypes[17]
+ mi := &file_v1_subscription_service_proto_msgTypes[18]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1441,7 +1484,7 @@ func (x *Subscription) ProtoReflect() protoreflect.Message {
// Deprecated: Use Subscription.ProtoReflect.Descriptor instead.
func (*Subscription) Descriptor() ([]byte, []int) {
- return file_v1_subscription_service_proto_rawDescGZIP(), []int{17}
+ return file_v1_subscription_service_proto_rawDescGZIP(), []int{18}
}
func (x *Subscription) GetPlan() PlanType {
@@ -1518,7 +1561,7 @@ type PlanConfig struct {
func (x *PlanConfig) Reset() {
*x = PlanConfig{}
- mi := &file_v1_subscription_service_proto_msgTypes[18]
+ mi := &file_v1_subscription_service_proto_msgTypes[19]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1530,7 +1573,7 @@ func (x *PlanConfig) String() string {
func (*PlanConfig) ProtoMessage() {}
func (x *PlanConfig) ProtoReflect() protoreflect.Message {
- mi := &file_v1_subscription_service_proto_msgTypes[18]
+ mi := &file_v1_subscription_service_proto_msgTypes[19]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1543,7 +1586,7 @@ func (x *PlanConfig) ProtoReflect() protoreflect.Message {
// Deprecated: Use PlanConfig.ProtoReflect.Descriptor instead.
func (*PlanConfig) Descriptor() ([]byte, []int) {
- return file_v1_subscription_service_proto_rawDescGZIP(), []int{18}
+ return file_v1_subscription_service_proto_rawDescGZIP(), []int{19}
}
func (x *PlanConfig) GetPlans() []*PlanLimitConfig {
@@ -1573,7 +1616,7 @@ type PlanLimitConfig struct {
func (x *PlanLimitConfig) Reset() {
*x = PlanLimitConfig{}
- mi := &file_v1_subscription_service_proto_msgTypes[19]
+ mi := &file_v1_subscription_service_proto_msgTypes[20]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1585,7 +1628,7 @@ func (x *PlanLimitConfig) String() string {
func (*PlanLimitConfig) ProtoMessage() {}
func (x *PlanLimitConfig) ProtoReflect() protoreflect.Message {
- mi := &file_v1_subscription_service_proto_msgTypes[19]
+ mi := &file_v1_subscription_service_proto_msgTypes[20]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1598,7 +1641,7 @@ func (x *PlanLimitConfig) ProtoReflect() protoreflect.Message {
// Deprecated: Use PlanLimitConfig.ProtoReflect.Descriptor instead.
func (*PlanLimitConfig) Descriptor() ([]byte, []int) {
- return file_v1_subscription_service_proto_rawDescGZIP(), []int{19}
+ return file_v1_subscription_service_proto_rawDescGZIP(), []int{20}
}
func (x *PlanLimitConfig) GetType() PlanType {
@@ -1633,9 +1676,11 @@ var File_v1_subscription_service_proto protoreflect.FileDescriptor
const file_v1_subscription_service_proto_rawDesc = "" +
"\n" +
- "\x1dv1/subscription_service.proto\x12\vbytebase.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/httpbody.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x13v1/annotation.proto\"\x18\n" +
+ "\x1dv1/subscription_service.proto\x12\vbytebase.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x13v1/annotation.proto\"\x18\n" +
"\x16GetSubscriptionRequest\"\x1f\n" +
- "\x1dExportVCSProviderUsersRequest\"0\n" +
+ "\x1dExportVCSProviderUsersRequest\":\n" +
+ "\x1eExportVCSProviderUsersResponse\x12\x18\n" +
+ "\acontent\x18\x01 \x01(\fR\acontent\"0\n" +
"\x14UploadLicenseRequest\x12\x18\n" +
"\alicense\x18\x01 \x01(\tR\alicense\"\x92\x01\n" +
"\x15CreatePurchaseRequest\x12)\n" +
@@ -1804,15 +1849,14 @@ const file_v1_subscription_service_proto_rawDesc = "" +
"\x12FEATURE_CUSTOM_MSA\x10D\x12\x1d\n" +
"\x19FEATURE_COMMUNITY_SUPPORT\x10E\x12\x19\n" +
"\x15FEATURE_EMAIL_SUPPORT\x10F\x12&\n" +
- "\"FEATURE_DEDICATED_SUPPORT_WITH_SLA\x10G2\xfe\n" +
- "\n" +
+ "\"FEATURE_DEDICATED_SUPPORT_WITH_SLA\x10G2\xa9\v\n" +
"\x13SubscriptionService\x12n\n" +
- "\x0fGetSubscription\x12#.bytebase.v1.GetSubscriptionRequest\x1a\x19.bytebase.v1.Subscription\"\x1b\xdaA\x00\x82\xd3\xe4\x93\x02\x12\x12\x10/v1/subscription\x12\xa9\x01\n" +
- "\x16ExportVCSProviderUsers\x12*.bytebase.v1.ExportVCSProviderUsersRequest\x1a\x14.google.api.HttpBody\"M\x8a\xea0\x16bb.subscription.manage\x90\xea0\x01\x82\xd3\xe4\x93\x02)\x12'/v1/subscription:vcsProviderUsersExport\x12\x90\x01\n" +
- "\rUploadLicense\x12!.bytebase.v1.UploadLicenseRequest\x1a\x19.bytebase.v1.Subscription\"A\x8a\xea0\x16bb.subscription.manage\x90\xea0\x01\x82\xd3\xe4\x93\x02\x1d:\x01*2\x18/v1/subscription/license\x12\x97\x01\n" +
- "\x0eCreatePurchase\x12\".bytebase.v1.CreatePurchaseRequest\x1a\x1d.bytebase.v1.PurchaseResponse\"B\x8a\xea0\x16bb.subscription.manage\x90\xea0\x01\x82\xd3\xe4\x93\x02\x1e:\x01*\"\x19/v1/subscription:purchase\x12\x9d\x01\n" +
- "\x0eUpdatePurchase\x12\".bytebase.v1.UpdatePurchaseRequest\x1a\x1d.bytebase.v1.PurchaseResponse\"H\x8a\xea0\x16bb.subscription.manage\x90\xea0\x01\x82\xd3\xe4\x93\x02$:\x01*\"\x1f/v1/subscription:updatePurchase\x12\x9d\x01\n" +
- "\x0eCancelPurchase\x12\".bytebase.v1.CancelPurchaseRequest\x1a\x1d.bytebase.v1.PurchaseResponse\"H\x8a\xea0\x16bb.subscription.manage\x90\xea0\x01\x82\xd3\xe4\x93\x02$:\x01*\"\x1f/v1/subscription:cancelPurchase\x12\x92\x01\n" +
+ "\x0fGetSubscription\x12#.bytebase.v1.GetSubscriptionRequest\x1a\x19.bytebase.v1.Subscription\"\x1b\xdaA\x00\x82\xd3\xe4\x93\x02\x12\x12\x10/v1/subscription\x12\xc4\x01\n" +
+ "\x16ExportVCSProviderUsers\x12*.bytebase.v1.ExportVCSProviderUsersRequest\x1a+.bytebase.v1.ExportVCSProviderUsersResponse\"Q\x8a\xea0\x16bb.subscription.manage\x90\xea0\x01\x98\xea0\x01\x82\xd3\xe4\x93\x02)\x12'/v1/subscription:vcsProviderUsersExport\x12\x94\x01\n" +
+ "\rUploadLicense\x12!.bytebase.v1.UploadLicenseRequest\x1a\x19.bytebase.v1.Subscription\"E\x8a\xea0\x16bb.subscription.manage\x90\xea0\x01\x98\xea0\x01\x82\xd3\xe4\x93\x02\x1d:\x01*2\x18/v1/subscription/license\x12\x9b\x01\n" +
+ "\x0eCreatePurchase\x12\".bytebase.v1.CreatePurchaseRequest\x1a\x1d.bytebase.v1.PurchaseResponse\"F\x8a\xea0\x16bb.subscription.manage\x90\xea0\x01\x98\xea0\x01\x82\xd3\xe4\x93\x02\x1e:\x01*\"\x19/v1/subscription:purchase\x12\xa1\x01\n" +
+ "\x0eUpdatePurchase\x12\".bytebase.v1.UpdatePurchaseRequest\x1a\x1d.bytebase.v1.PurchaseResponse\"L\x8a\xea0\x16bb.subscription.manage\x90\xea0\x01\x98\xea0\x01\x82\xd3\xe4\x93\x02$:\x01*\"\x1f/v1/subscription:updatePurchase\x12\xa1\x01\n" +
+ "\x0eCancelPurchase\x12\".bytebase.v1.CancelPurchaseRequest\x1a\x1d.bytebase.v1.PurchaseResponse\"L\x8a\xea0\x16bb.subscription.manage\x90\xea0\x01\x98\xea0\x01\x82\xd3\xe4\x93\x02$:\x01*\"\x1f/v1/subscription:cancelPurchase\x12\x92\x01\n" +
"\x0eGetPaymentInfo\x12\".bytebase.v1.GetPaymentInfoRequest\x1a\x18.bytebase.v1.PaymentInfo\"B\x8a\xea0\x16bb.subscription.manage\x90\xea0\x01\x82\xd3\xe4\x93\x02\x1e\x12\x1c/v1/subscription/paymentInfo\x12\xc3\x01\n" +
"\x15VerifyCheckoutSession\x12).bytebase.v1.VerifyCheckoutSessionRequest\x1a*.bytebase.v1.VerifyCheckoutSessionResponse\"S\x8a\xea0\x16bb.subscription.manage\x90\xea0\x01\x82\xd3\xe4\x93\x02/\x12-/v1/subscription/checkoutSession/{session_id}\x12\x82\x01\n" +
"\x11ListPurchasePlans\x12%.bytebase.v1.ListPurchasePlansRequest\x1a&.bytebase.v1.ListPurchasePlansResponse\"\x1e\x82\xd3\xe4\x93\x02\x18\x12\x16/v1/subscription/plansB\xae\x01\n" +
@@ -1831,35 +1875,35 @@ func file_v1_subscription_service_proto_rawDescGZIP() []byte {
}
var file_v1_subscription_service_proto_enumTypes = make([]protoimpl.EnumInfo, 5)
-var file_v1_subscription_service_proto_msgTypes = make([]protoimpl.MessageInfo, 20)
+var file_v1_subscription_service_proto_msgTypes = make([]protoimpl.MessageInfo, 21)
var file_v1_subscription_service_proto_goTypes = []any{
- (BillingInterval)(0), // 0: bytebase.v1.BillingInterval
- (PlanType)(0), // 1: bytebase.v1.PlanType
- (PlanFeature)(0), // 2: bytebase.v1.PlanFeature
- (PurchasePlanAdditional_Type)(0), // 3: bytebase.v1.PurchasePlanAdditional.Type
- (PurchaseDiscount_Type)(0), // 4: bytebase.v1.PurchaseDiscount.Type
- (*GetSubscriptionRequest)(nil), // 5: bytebase.v1.GetSubscriptionRequest
- (*ExportVCSProviderUsersRequest)(nil), // 6: bytebase.v1.ExportVCSProviderUsersRequest
- (*UploadLicenseRequest)(nil), // 7: bytebase.v1.UploadLicenseRequest
- (*CreatePurchaseRequest)(nil), // 8: bytebase.v1.CreatePurchaseRequest
- (*PurchaseResponse)(nil), // 9: bytebase.v1.PurchaseResponse
- (*VerifyCheckoutSessionRequest)(nil), // 10: bytebase.v1.VerifyCheckoutSessionRequest
- (*VerifyCheckoutSessionResponse)(nil), // 11: bytebase.v1.VerifyCheckoutSessionResponse
- (*UpdatePurchaseRequest)(nil), // 12: bytebase.v1.UpdatePurchaseRequest
- (*CancelPurchaseRequest)(nil), // 13: bytebase.v1.CancelPurchaseRequest
- (*GetPaymentInfoRequest)(nil), // 14: bytebase.v1.GetPaymentInfoRequest
- (*PaymentInfo)(nil), // 15: bytebase.v1.PaymentInfo
- (*PurchasePlan)(nil), // 16: bytebase.v1.PurchasePlan
- (*PurchasePlanAdditional)(nil), // 17: bytebase.v1.PurchasePlanAdditional
- (*PurchaseBillingMethod)(nil), // 18: bytebase.v1.PurchaseBillingMethod
- (*PurchaseDiscount)(nil), // 19: bytebase.v1.PurchaseDiscount
- (*ListPurchasePlansRequest)(nil), // 20: bytebase.v1.ListPurchasePlansRequest
- (*ListPurchasePlansResponse)(nil), // 21: bytebase.v1.ListPurchasePlansResponse
- (*Subscription)(nil), // 22: bytebase.v1.Subscription
- (*PlanConfig)(nil), // 23: bytebase.v1.PlanConfig
- (*PlanLimitConfig)(nil), // 24: bytebase.v1.PlanLimitConfig
- (*timestamppb.Timestamp)(nil), // 25: google.protobuf.Timestamp
- (*httpbody.HttpBody)(nil), // 26: google.api.HttpBody
+ (BillingInterval)(0), // 0: bytebase.v1.BillingInterval
+ (PlanType)(0), // 1: bytebase.v1.PlanType
+ (PlanFeature)(0), // 2: bytebase.v1.PlanFeature
+ (PurchasePlanAdditional_Type)(0), // 3: bytebase.v1.PurchasePlanAdditional.Type
+ (PurchaseDiscount_Type)(0), // 4: bytebase.v1.PurchaseDiscount.Type
+ (*GetSubscriptionRequest)(nil), // 5: bytebase.v1.GetSubscriptionRequest
+ (*ExportVCSProviderUsersRequest)(nil), // 6: bytebase.v1.ExportVCSProviderUsersRequest
+ (*ExportVCSProviderUsersResponse)(nil), // 7: bytebase.v1.ExportVCSProviderUsersResponse
+ (*UploadLicenseRequest)(nil), // 8: bytebase.v1.UploadLicenseRequest
+ (*CreatePurchaseRequest)(nil), // 9: bytebase.v1.CreatePurchaseRequest
+ (*PurchaseResponse)(nil), // 10: bytebase.v1.PurchaseResponse
+ (*VerifyCheckoutSessionRequest)(nil), // 11: bytebase.v1.VerifyCheckoutSessionRequest
+ (*VerifyCheckoutSessionResponse)(nil), // 12: bytebase.v1.VerifyCheckoutSessionResponse
+ (*UpdatePurchaseRequest)(nil), // 13: bytebase.v1.UpdatePurchaseRequest
+ (*CancelPurchaseRequest)(nil), // 14: bytebase.v1.CancelPurchaseRequest
+ (*GetPaymentInfoRequest)(nil), // 15: bytebase.v1.GetPaymentInfoRequest
+ (*PaymentInfo)(nil), // 16: bytebase.v1.PaymentInfo
+ (*PurchasePlan)(nil), // 17: bytebase.v1.PurchasePlan
+ (*PurchasePlanAdditional)(nil), // 18: bytebase.v1.PurchasePlanAdditional
+ (*PurchaseBillingMethod)(nil), // 19: bytebase.v1.PurchaseBillingMethod
+ (*PurchaseDiscount)(nil), // 20: bytebase.v1.PurchaseDiscount
+ (*ListPurchasePlansRequest)(nil), // 21: bytebase.v1.ListPurchasePlansRequest
+ (*ListPurchasePlansResponse)(nil), // 22: bytebase.v1.ListPurchasePlansResponse
+ (*Subscription)(nil), // 23: bytebase.v1.Subscription
+ (*PlanConfig)(nil), // 24: bytebase.v1.PlanConfig
+ (*PlanLimitConfig)(nil), // 25: bytebase.v1.PlanLimitConfig
+ (*timestamppb.Timestamp)(nil), // 26: google.protobuf.Timestamp
}
var file_v1_subscription_service_proto_depIdxs = []int32{
1, // 0: bytebase.v1.CreatePurchaseRequest.plan:type_name -> bytebase.v1.PlanType
@@ -1867,37 +1911,37 @@ var file_v1_subscription_service_proto_depIdxs = []int32{
1, // 2: bytebase.v1.UpdatePurchaseRequest.plan:type_name -> bytebase.v1.PlanType
0, // 3: bytebase.v1.UpdatePurchaseRequest.interval:type_name -> bytebase.v1.BillingInterval
1, // 4: bytebase.v1.PurchasePlan.type:type_name -> bytebase.v1.PlanType
- 17, // 5: bytebase.v1.PurchasePlan.additionals:type_name -> bytebase.v1.PurchasePlanAdditional
- 18, // 6: bytebase.v1.PurchasePlan.billing_methods:type_name -> bytebase.v1.PurchaseBillingMethod
+ 18, // 5: bytebase.v1.PurchasePlan.additionals:type_name -> bytebase.v1.PurchasePlanAdditional
+ 19, // 6: bytebase.v1.PurchasePlan.billing_methods:type_name -> bytebase.v1.PurchaseBillingMethod
3, // 7: bytebase.v1.PurchasePlanAdditional.type:type_name -> bytebase.v1.PurchasePlanAdditional.Type
0, // 8: bytebase.v1.PurchaseBillingMethod.interval:type_name -> bytebase.v1.BillingInterval
- 19, // 9: bytebase.v1.PurchaseBillingMethod.discount:type_name -> bytebase.v1.PurchaseDiscount
+ 20, // 9: bytebase.v1.PurchaseBillingMethod.discount:type_name -> bytebase.v1.PurchaseDiscount
4, // 10: bytebase.v1.PurchaseDiscount.type:type_name -> bytebase.v1.PurchaseDiscount.Type
- 16, // 11: bytebase.v1.ListPurchasePlansResponse.plans:type_name -> bytebase.v1.PurchasePlan
+ 17, // 11: bytebase.v1.ListPurchasePlansResponse.plans:type_name -> bytebase.v1.PurchasePlan
1, // 12: bytebase.v1.Subscription.plan:type_name -> bytebase.v1.PlanType
- 25, // 13: bytebase.v1.Subscription.expires_time:type_name -> google.protobuf.Timestamp
- 24, // 14: bytebase.v1.PlanConfig.plans:type_name -> bytebase.v1.PlanLimitConfig
+ 26, // 13: bytebase.v1.Subscription.expires_time:type_name -> google.protobuf.Timestamp
+ 25, // 14: bytebase.v1.PlanConfig.plans:type_name -> bytebase.v1.PlanLimitConfig
2, // 15: bytebase.v1.PlanConfig.instance_features:type_name -> bytebase.v1.PlanFeature
1, // 16: bytebase.v1.PlanLimitConfig.type:type_name -> bytebase.v1.PlanType
2, // 17: bytebase.v1.PlanLimitConfig.features:type_name -> bytebase.v1.PlanFeature
5, // 18: bytebase.v1.SubscriptionService.GetSubscription:input_type -> bytebase.v1.GetSubscriptionRequest
6, // 19: bytebase.v1.SubscriptionService.ExportVCSProviderUsers:input_type -> bytebase.v1.ExportVCSProviderUsersRequest
- 7, // 20: bytebase.v1.SubscriptionService.UploadLicense:input_type -> bytebase.v1.UploadLicenseRequest
- 8, // 21: bytebase.v1.SubscriptionService.CreatePurchase:input_type -> bytebase.v1.CreatePurchaseRequest
- 12, // 22: bytebase.v1.SubscriptionService.UpdatePurchase:input_type -> bytebase.v1.UpdatePurchaseRequest
- 13, // 23: bytebase.v1.SubscriptionService.CancelPurchase:input_type -> bytebase.v1.CancelPurchaseRequest
- 14, // 24: bytebase.v1.SubscriptionService.GetPaymentInfo:input_type -> bytebase.v1.GetPaymentInfoRequest
- 10, // 25: bytebase.v1.SubscriptionService.VerifyCheckoutSession:input_type -> bytebase.v1.VerifyCheckoutSessionRequest
- 20, // 26: bytebase.v1.SubscriptionService.ListPurchasePlans:input_type -> bytebase.v1.ListPurchasePlansRequest
- 22, // 27: bytebase.v1.SubscriptionService.GetSubscription:output_type -> bytebase.v1.Subscription
- 26, // 28: bytebase.v1.SubscriptionService.ExportVCSProviderUsers:output_type -> google.api.HttpBody
- 22, // 29: bytebase.v1.SubscriptionService.UploadLicense:output_type -> bytebase.v1.Subscription
- 9, // 30: bytebase.v1.SubscriptionService.CreatePurchase:output_type -> bytebase.v1.PurchaseResponse
- 9, // 31: bytebase.v1.SubscriptionService.UpdatePurchase:output_type -> bytebase.v1.PurchaseResponse
- 9, // 32: bytebase.v1.SubscriptionService.CancelPurchase:output_type -> bytebase.v1.PurchaseResponse
- 15, // 33: bytebase.v1.SubscriptionService.GetPaymentInfo:output_type -> bytebase.v1.PaymentInfo
- 11, // 34: bytebase.v1.SubscriptionService.VerifyCheckoutSession:output_type -> bytebase.v1.VerifyCheckoutSessionResponse
- 21, // 35: bytebase.v1.SubscriptionService.ListPurchasePlans:output_type -> bytebase.v1.ListPurchasePlansResponse
+ 8, // 20: bytebase.v1.SubscriptionService.UploadLicense:input_type -> bytebase.v1.UploadLicenseRequest
+ 9, // 21: bytebase.v1.SubscriptionService.CreatePurchase:input_type -> bytebase.v1.CreatePurchaseRequest
+ 13, // 22: bytebase.v1.SubscriptionService.UpdatePurchase:input_type -> bytebase.v1.UpdatePurchaseRequest
+ 14, // 23: bytebase.v1.SubscriptionService.CancelPurchase:input_type -> bytebase.v1.CancelPurchaseRequest
+ 15, // 24: bytebase.v1.SubscriptionService.GetPaymentInfo:input_type -> bytebase.v1.GetPaymentInfoRequest
+ 11, // 25: bytebase.v1.SubscriptionService.VerifyCheckoutSession:input_type -> bytebase.v1.VerifyCheckoutSessionRequest
+ 21, // 26: bytebase.v1.SubscriptionService.ListPurchasePlans:input_type -> bytebase.v1.ListPurchasePlansRequest
+ 23, // 27: bytebase.v1.SubscriptionService.GetSubscription:output_type -> bytebase.v1.Subscription
+ 7, // 28: bytebase.v1.SubscriptionService.ExportVCSProviderUsers:output_type -> bytebase.v1.ExportVCSProviderUsersResponse
+ 23, // 29: bytebase.v1.SubscriptionService.UploadLicense:output_type -> bytebase.v1.Subscription
+ 10, // 30: bytebase.v1.SubscriptionService.CreatePurchase:output_type -> bytebase.v1.PurchaseResponse
+ 10, // 31: bytebase.v1.SubscriptionService.UpdatePurchase:output_type -> bytebase.v1.PurchaseResponse
+ 10, // 32: bytebase.v1.SubscriptionService.CancelPurchase:output_type -> bytebase.v1.PurchaseResponse
+ 16, // 33: bytebase.v1.SubscriptionService.GetPaymentInfo:output_type -> bytebase.v1.PaymentInfo
+ 12, // 34: bytebase.v1.SubscriptionService.VerifyCheckoutSession:output_type -> bytebase.v1.VerifyCheckoutSessionResponse
+ 22, // 35: bytebase.v1.SubscriptionService.ListPurchasePlans:output_type -> bytebase.v1.ListPurchasePlansResponse
27, // [27:36] is the sub-list for method output_type
18, // [18:27] is the sub-list for method input_type
18, // [18:18] is the sub-list for extension type_name
@@ -1917,7 +1961,7 @@ func file_v1_subscription_service_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_v1_subscription_service_proto_rawDesc), len(file_v1_subscription_service_proto_rawDesc)),
NumEnums: 5,
- NumMessages: 20,
+ NumMessages: 21,
NumExtensions: 0,
NumServices: 1,
},
diff --git a/backend/generated-go/v1/subscription_service_equal.pb.go b/backend/generated-go/v1/subscription_service_equal.pb.go
index fffa9bdbba..d183db656f 100644
--- a/backend/generated-go/v1/subscription_service_equal.pb.go
+++ b/backend/generated-go/v1/subscription_service_equal.pb.go
@@ -23,6 +23,19 @@ func (x *ExportVCSProviderUsersRequest) Equal(y *ExportVCSProviderUsersRequest)
return true
}
+func (x *ExportVCSProviderUsersResponse) Equal(y *ExportVCSProviderUsersResponse) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if string(x.Content) != string(y.Content) {
+ return false
+ }
+ return true
+}
+
func (x *UploadLicenseRequest) Equal(y *UploadLicenseRequest) bool {
if x == y {
return true
diff --git a/backend/generated-go/v1/subscription_service_grpc.pb.go b/backend/generated-go/v1/subscription_service_grpc.pb.go
index ccd45606db..039fbf039d 100644
--- a/backend/generated-go/v1/subscription_service_grpc.pb.go
+++ b/backend/generated-go/v1/subscription_service_grpc.pb.go
@@ -8,7 +8,6 @@ package v1
import (
context "context"
- httpbody "google.golang.org/genproto/googleapis/api/httpbody"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
@@ -42,7 +41,7 @@ type SubscriptionServiceClient interface {
// If there is expired license, we will return a free plan subscription with the expiration time of the expired license.
GetSubscription(ctx context.Context, in *GetSubscriptionRequest, opts ...grpc.CallOption) (*Subscription, error)
// Exports active VCS users as CSV.
- ExportVCSProviderUsers(ctx context.Context, in *ExportVCSProviderUsersRequest, opts ...grpc.CallOption) (*httpbody.HttpBody, error)
+ ExportVCSProviderUsers(ctx context.Context, in *ExportVCSProviderUsersRequest, opts ...grpc.CallOption) (*ExportVCSProviderUsersResponse, error)
// Uploads an enterprise license (self-hosted only).
UploadLicense(ctx context.Context, in *UploadLicenseRequest, opts ...grpc.CallOption) (*Subscription, error)
// CreatePurchase creates a new subscription purchase (SaaS only).
@@ -79,9 +78,9 @@ func (c *subscriptionServiceClient) GetSubscription(ctx context.Context, in *Get
return out, nil
}
-func (c *subscriptionServiceClient) ExportVCSProviderUsers(ctx context.Context, in *ExportVCSProviderUsersRequest, opts ...grpc.CallOption) (*httpbody.HttpBody, error) {
+func (c *subscriptionServiceClient) ExportVCSProviderUsers(ctx context.Context, in *ExportVCSProviderUsersRequest, opts ...grpc.CallOption) (*ExportVCSProviderUsersResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(httpbody.HttpBody)
+ out := new(ExportVCSProviderUsersResponse)
err := c.cc.Invoke(ctx, SubscriptionService_ExportVCSProviderUsers_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
@@ -170,7 +169,7 @@ type SubscriptionServiceServer interface {
// If there is expired license, we will return a free plan subscription with the expiration time of the expired license.
GetSubscription(context.Context, *GetSubscriptionRequest) (*Subscription, error)
// Exports active VCS users as CSV.
- ExportVCSProviderUsers(context.Context, *ExportVCSProviderUsersRequest) (*httpbody.HttpBody, error)
+ ExportVCSProviderUsers(context.Context, *ExportVCSProviderUsersRequest) (*ExportVCSProviderUsersResponse, error)
// Uploads an enterprise license (self-hosted only).
UploadLicense(context.Context, *UploadLicenseRequest) (*Subscription, error)
// CreatePurchase creates a new subscription purchase (SaaS only).
@@ -200,7 +199,7 @@ type UnimplementedSubscriptionServiceServer struct{}
func (UnimplementedSubscriptionServiceServer) GetSubscription(context.Context, *GetSubscriptionRequest) (*Subscription, error) {
return nil, status.Error(codes.Unimplemented, "method GetSubscription not implemented")
}
-func (UnimplementedSubscriptionServiceServer) ExportVCSProviderUsers(context.Context, *ExportVCSProviderUsersRequest) (*httpbody.HttpBody, error) {
+func (UnimplementedSubscriptionServiceServer) ExportVCSProviderUsers(context.Context, *ExportVCSProviderUsersRequest) (*ExportVCSProviderUsersResponse, error) {
return nil, status.Error(codes.Unimplemented, "method ExportVCSProviderUsers not implemented")
}
func (UnimplementedSubscriptionServiceServer) UploadLicense(context.Context, *UploadLicenseRequest) (*Subscription, error) {
diff --git a/backend/generated-go/v1/v1connect/subscription_service.connect.go b/backend/generated-go/v1/v1connect/subscription_service.connect.go
index 889ebef632..db9aa00d6f 100644
--- a/backend/generated-go/v1/v1connect/subscription_service.connect.go
+++ b/backend/generated-go/v1/v1connect/subscription_service.connect.go
@@ -9,7 +9,6 @@ import (
context "context"
errors "errors"
v1 "github.com/bytebase/bytebase/backend/generated-go/v1"
- httpbody "google.golang.org/genproto/googleapis/api/httpbody"
http "net/http"
strings "strings"
)
@@ -70,7 +69,7 @@ type SubscriptionServiceClient interface {
// If there is expired license, we will return a free plan subscription with the expiration time of the expired license.
GetSubscription(context.Context, *connect.Request[v1.GetSubscriptionRequest]) (*connect.Response[v1.Subscription], error)
// Exports active VCS users as CSV.
- ExportVCSProviderUsers(context.Context, *connect.Request[v1.ExportVCSProviderUsersRequest]) (*connect.Response[httpbody.HttpBody], error)
+ ExportVCSProviderUsers(context.Context, *connect.Request[v1.ExportVCSProviderUsersRequest]) (*connect.Response[v1.ExportVCSProviderUsersResponse], error)
// Uploads an enterprise license (self-hosted only).
UploadLicense(context.Context, *connect.Request[v1.UploadLicenseRequest]) (*connect.Response[v1.Subscription], error)
// CreatePurchase creates a new subscription purchase (SaaS only).
@@ -106,7 +105,7 @@ func NewSubscriptionServiceClient(httpClient connect.HTTPClient, baseURL string,
connect.WithSchema(subscriptionServiceMethods.ByName("GetSubscription")),
connect.WithClientOptions(opts...),
),
- exportVCSProviderUsers: connect.NewClient[v1.ExportVCSProviderUsersRequest, httpbody.HttpBody](
+ exportVCSProviderUsers: connect.NewClient[v1.ExportVCSProviderUsersRequest, v1.ExportVCSProviderUsersResponse](
httpClient,
baseURL+SubscriptionServiceExportVCSProviderUsersProcedure,
connect.WithSchema(subscriptionServiceMethods.ByName("ExportVCSProviderUsers")),
@@ -160,7 +159,7 @@ func NewSubscriptionServiceClient(httpClient connect.HTTPClient, baseURL string,
// subscriptionServiceClient implements SubscriptionServiceClient.
type subscriptionServiceClient struct {
getSubscription *connect.Client[v1.GetSubscriptionRequest, v1.Subscription]
- exportVCSProviderUsers *connect.Client[v1.ExportVCSProviderUsersRequest, httpbody.HttpBody]
+ exportVCSProviderUsers *connect.Client[v1.ExportVCSProviderUsersRequest, v1.ExportVCSProviderUsersResponse]
uploadLicense *connect.Client[v1.UploadLicenseRequest, v1.Subscription]
createPurchase *connect.Client[v1.CreatePurchaseRequest, v1.PurchaseResponse]
updatePurchase *connect.Client[v1.UpdatePurchaseRequest, v1.PurchaseResponse]
@@ -176,7 +175,7 @@ func (c *subscriptionServiceClient) GetSubscription(ctx context.Context, req *co
}
// ExportVCSProviderUsers calls bytebase.v1.SubscriptionService.ExportVCSProviderUsers.
-func (c *subscriptionServiceClient) ExportVCSProviderUsers(ctx context.Context, req *connect.Request[v1.ExportVCSProviderUsersRequest]) (*connect.Response[httpbody.HttpBody], error) {
+func (c *subscriptionServiceClient) ExportVCSProviderUsers(ctx context.Context, req *connect.Request[v1.ExportVCSProviderUsersRequest]) (*connect.Response[v1.ExportVCSProviderUsersResponse], error) {
return c.exportVCSProviderUsers.CallUnary(ctx, req)
}
@@ -222,7 +221,7 @@ type SubscriptionServiceHandler interface {
// If there is expired license, we will return a free plan subscription with the expiration time of the expired license.
GetSubscription(context.Context, *connect.Request[v1.GetSubscriptionRequest]) (*connect.Response[v1.Subscription], error)
// Exports active VCS users as CSV.
- ExportVCSProviderUsers(context.Context, *connect.Request[v1.ExportVCSProviderUsersRequest]) (*connect.Response[httpbody.HttpBody], error)
+ ExportVCSProviderUsers(context.Context, *connect.Request[v1.ExportVCSProviderUsersRequest]) (*connect.Response[v1.ExportVCSProviderUsersResponse], error)
// Uploads an enterprise license (self-hosted only).
UploadLicense(context.Context, *connect.Request[v1.UploadLicenseRequest]) (*connect.Response[v1.Subscription], error)
// CreatePurchase creates a new subscription purchase (SaaS only).
@@ -335,7 +334,7 @@ func (UnimplementedSubscriptionServiceHandler) GetSubscription(context.Context,
return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.SubscriptionService.GetSubscription is not implemented"))
}
-func (UnimplementedSubscriptionServiceHandler) ExportVCSProviderUsers(context.Context, *connect.Request[v1.ExportVCSProviderUsersRequest]) (*connect.Response[httpbody.HttpBody], error) {
+func (UnimplementedSubscriptionServiceHandler) ExportVCSProviderUsers(context.Context, *connect.Request[v1.ExportVCSProviderUsersRequest]) (*connect.Response[v1.ExportVCSProviderUsersResponse], error) {
return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.SubscriptionService.ExportVCSProviderUsers is not implemented"))
}
diff --git a/backend/plugin/webhook/validator.go b/backend/plugin/webhook/validator.go
index d1364a6b05..6125fcc5e6 100644
--- a/backend/plugin/webhook/validator.go
+++ b/backend/plugin/webhook/validator.go
@@ -60,7 +60,8 @@ func ValidateWebhookURL(webhookType storepb.WebhookType, webhookURL string) erro
// Parse URL
u, err := url.Parse(webhookURL)
if err != nil {
- return errors.Wrapf(err, "invalid URL format")
+ // Do not include the parser error because it may contain the raw URL and be persisted in the audit status.
+ return errors.New("invalid URL format")
}
// Only allow http/https
diff --git a/backend/tests/gitops_test.go b/backend/tests/gitops_test.go
index 91e7f135cf..97d562b1dd 100644
--- a/backend/tests/gitops_test.go
+++ b/backend/tests/gitops_test.go
@@ -538,8 +538,7 @@ func TestVCSProviderUserActuatorAndExport(t *testing.T) {
body, err := ctl.subscriptionServiceClient.ExportVCSProviderUsers(ctx, connect.NewRequest(&v1pb.ExportVCSProviderUsersRequest{}))
a.NoError(err)
- a.Equal("text/csv; charset=utf-8", body.Msg.ContentType)
- csv := string(body.Msg.Data)
+ csv := string(body.Msg.Content)
a.Contains(csv, "vcs_type,user_id,user_name,display_name,last_seen_at")
a.Contains(csv, "GITHUB,1001,alice,Alice,")
a.Contains(csv, "GITHUB,1002,bob,,")
@@ -572,7 +571,7 @@ func TestVCSProviderUserExportEscapesSpreadsheetFormulas(t *testing.T) {
body, err := ctl.subscriptionServiceClient.ExportVCSProviderUsers(ctx, connect.NewRequest(&v1pb.ExportVCSProviderUsersRequest{}))
a.NoError(err)
- rows, err := csv.NewReader(strings.NewReader(string(body.Msg.Data))).ReadAll()
+ rows, err := csv.NewReader(strings.NewReader(string(body.Msg.Content))).ReadAll()
a.NoError(err)
a.Len(rows, 2)
a.Equal([]string{"vcs_type", "user_id", "user_name", "display_name", "last_seen_at"}, rows[0])
diff --git a/backend/tests/login_audit_test.go b/backend/tests/login_audit_test.go
index 1adcbb1559..b0413fb636 100644
--- a/backend/tests/login_audit_test.go
+++ b/backend/tests/login_audit_test.go
@@ -6,6 +6,7 @@ import (
"crypto/sha256"
"database/sql"
"encoding/hex"
+ "fmt"
"regexp"
"strings"
"testing"
@@ -131,6 +132,109 @@ func TestAuditLogFormat(t *testing.T) {
a.Len(updateProjectLogs.Msg.AuditLogs, 1)
a.Equal(ctl.project.Name, updateProjectLogs.Msg.AuditLogs[0].Resource)
+ webhookSecretURL := "https://hooks.slack.com/services/audit-status-secret"
+ missingWebhookName := ctl.project.Name + "/webhooks/missing-webhook"
+ for _, test := range []struct {
+ method string
+ call func() error
+ }{
+ {
+ method: "/bytebase.v1.ProjectService/UpdateWebhook",
+ call: func() error {
+ _, err := ctl.projectServiceClient.UpdateWebhook(ctx, connect.NewRequest(&v1pb.UpdateWebhookRequest{
+ Webhook: &v1pb.Webhook{Name: missingWebhookName, Url: webhookSecretURL},
+ }))
+ return err
+ },
+ },
+ {
+ method: "/bytebase.v1.ProjectService/RemoveWebhook",
+ call: func() error {
+ _, err := ctl.projectServiceClient.RemoveWebhook(ctx, connect.NewRequest(&v1pb.RemoveWebhookRequest{
+ Webhook: &v1pb.Webhook{Name: missingWebhookName, Url: webhookSecretURL},
+ }))
+ return err
+ },
+ },
+ } {
+ t.Run(test.method, func(t *testing.T) {
+ a := require.New(t)
+ err := test.call()
+ a.Error(err)
+ a.Equal(connect.CodeNotFound, connect.CodeOf(err))
+ a.NotContains(err.Error(), webhookSecretURL)
+
+ auditLogs, err := ctl.auditLogServiceClient.SearchAuditLogs(ctx, connect.NewRequest(&v1pb.SearchAuditLogsRequest{
+ Parent: ctl.project.Name,
+ Filter: fmt.Sprintf("method == %q", test.method),
+ }))
+ a.NoError(err)
+ a.Len(auditLogs.Msg.AuditLogs, 1)
+ a.NotNil(auditLogs.Msg.AuditLogs[0].Status)
+ a.NotContains(auditLogs.Msg.AuditLogs[0].Status.Message, webhookSecretURL)
+ })
+ }
+
+ malformedWebhookURL := "https://hooks.slack.com/services/audit-status-secret/%zz"
+ _, err = ctl.projectServiceClient.AddWebhook(ctx, connect.NewRequest(&v1pb.AddWebhookRequest{
+ Project: ctl.project.Name,
+ Webhook: &v1pb.Webhook{
+ Type: v1pb.WebhookType_SLACK,
+ Title: "Malformed audit webhook",
+ Url: malformedWebhookURL,
+ },
+ }))
+ a.Error(err)
+ a.Equal(connect.CodeInvalidArgument, connect.CodeOf(err))
+ a.NotContains(err.Error(), malformedWebhookURL)
+
+ validWebhook, err := ctl.projectServiceClient.AddWebhook(ctx, connect.NewRequest(&v1pb.AddWebhookRequest{
+ Project: ctl.project.Name,
+ Webhook: &v1pb.Webhook{
+ Type: v1pb.WebhookType_SLACK,
+ Title: "Webhook audit status update",
+ Url: "https://hooks.slack.com/services/audit-status-update",
+ },
+ }))
+ a.NoError(err)
+ var validWebhookName string
+ for _, webhook := range validWebhook.Msg.Webhooks {
+ if webhook.Title == "Webhook audit status update" {
+ validWebhookName = webhook.Name
+ break
+ }
+ }
+ a.NotEmpty(validWebhookName)
+ _, err = ctl.projectServiceClient.UpdateWebhook(ctx, connect.NewRequest(&v1pb.UpdateWebhookRequest{
+ Webhook: &v1pb.Webhook{
+ Name: validWebhookName,
+ Url: malformedWebhookURL,
+ },
+ UpdateMask: &fieldmaskpb.FieldMask{Paths: []string{"url"}},
+ }))
+ a.Error(err)
+ a.Equal(connect.CodeInvalidArgument, connect.CodeOf(err))
+ a.NotContains(err.Error(), malformedWebhookURL)
+
+ for _, method := range []string{
+ "/bytebase.v1.ProjectService/AddWebhook",
+ "/bytebase.v1.ProjectService/UpdateWebhook",
+ } {
+ auditLogs, err := ctl.auditLogServiceClient.SearchAuditLogs(ctx, connect.NewRequest(&v1pb.SearchAuditLogsRequest{
+ Parent: ctl.project.Name,
+ Filter: fmt.Sprintf("method == %q", method),
+ }))
+ a.NoError(err)
+ foundInvalidArgument := false
+ for _, auditLog := range auditLogs.Msg.AuditLogs {
+ if auditLog.GetStatus().GetCode() == int32(connect.CodeInvalidArgument) {
+ foundInvalidArgument = true
+ a.NotContains(auditLog.GetStatus().GetMessage(), malformedWebhookURL)
+ }
+ }
+ a.True(foundInvalidArgument, "%s must persist the failed request", method)
+ }
+
savedQueryContent := "SELECT secret_audit_saved_query_content;"
savedQuery, err := ctl.savedQueryServiceClient.CreateSavedQuery(ctx, connect.NewRequest(&v1pb.CreateSavedQueryRequest{
Parent: ctl.project.Name,
diff --git a/backend/tests/webhook_helpers_test.go b/backend/tests/webhook_helpers_test.go
index bb9fcdab51..1fc8eba047 100644
--- a/backend/tests/webhook_helpers_test.go
+++ b/backend/tests/webhook_helpers_test.go
@@ -56,14 +56,22 @@ func firstSlackSectionText(body []byte) string {
}
// matchesEvent reports whether a captured Slack payload matches the given
-// project and event title. Project filtering prevents cross-subtest
-// contamination from the async webhook dispatcher.
-func matchesEvent(req webhookRequest, projectName, eventTitle string) bool {
+// project, event title, and optional resource names. Project and resource
+// filtering prevents contamination from the async webhook dispatcher.
+func matchesEvent(req webhookRequest, projectName, eventTitle string, resources ...string) bool {
body := string(req.Body)
if !strings.Contains(body, projectName) {
return false
}
- return strings.Contains(firstSlackSectionText(req.Body), eventTitle)
+ if !strings.Contains(firstSlackSectionText(req.Body), eventTitle) {
+ return false
+ }
+ for _, resource := range resources {
+ if !strings.Contains(body, resource) {
+ return false
+ }
+ }
+ return true
}
// webhookWaitTimeout is the deadline for waitForWebhookCount and the issue-state
@@ -73,33 +81,33 @@ const webhookWaitTimeout = 30 * time.Second
// waitForWebhookCount blocks until at least n webhooks for (project, eventTitle)
// have arrived, or fails the test after webhookWaitTimeout.
-func waitForWebhookCount(t *testing.T, c *webhookCollector, projectName, eventTitle string, n int) {
+func waitForWebhookCount(t *testing.T, c *webhookCollector, projectName, eventTitle string, n int, resources ...string) {
t.Helper()
deadline := time.Now().Add(webhookWaitTimeout)
for {
- count := countWebhooksFor(c, projectName, eventTitle)
+ count := countWebhooksFor(c, projectName, eventTitle, resources...)
if count >= n {
return
}
if time.Now().After(deadline) {
- t.Fatalf("timed out waiting for %d %q webhooks on %s; got %d after %s",
- n, eventTitle, projectName, count, webhookWaitTimeout)
+ t.Fatalf("timed out waiting for %d %q webhooks on %s for resources %v; got %d after %s",
+ n, eventTitle, projectName, resources, count, webhookWaitTimeout)
}
time.Sleep(100 * time.Millisecond)
}
}
// requireWebhookCount asserts the exact count of webhooks for (project, eventTitle).
-func requireWebhookCount(t *testing.T, c *webhookCollector, projectName, eventTitle string, n int) {
+func requireWebhookCount(t *testing.T, c *webhookCollector, projectName, eventTitle string, n int, resources ...string) {
t.Helper()
- got := countWebhooksFor(c, projectName, eventTitle)
- require.Equalf(t, n, got, "expected %d %q webhooks on %s, got %d", n, eventTitle, projectName, got)
+ got := countWebhooksFor(c, projectName, eventTitle, resources...)
+ require.Equalf(t, n, got, "expected %d %q webhooks on %s for resources %v, got %d", n, eventTitle, projectName, resources, got)
}
-func countWebhooksFor(c *webhookCollector, projectName, eventTitle string) int {
+func countWebhooksFor(c *webhookCollector, projectName, eventTitle string, resources ...string) int {
n := 0
for _, req := range c.getRequests() {
- if matchesEvent(req, projectName, eventTitle) {
+ if matchesEvent(req, projectName, eventTitle, resources...) {
n++
}
}
diff --git a/backend/tests/webhook_test.go b/backend/tests/webhook_test.go
index 95fd12f740..55b23c6418 100644
--- a/backend/tests/webhook_test.go
+++ b/backend/tests/webhook_test.go
@@ -278,14 +278,14 @@ func TestWebhookIntegration(t *testing.T) {
rollout := runAllTasks(ctx, t, ctl, plan)
// Phase 1: failing task → exactly one PIPELINE_FAILED, no PIPELINE_COMPLETED.
- waitForWebhookCount(t, collector, project.Name, "Rollout failed", 1)
+ waitForWebhookCount(t, collector, project.Name, "Rollout failed", 1, rollout.Name)
waitForAllTasksTerminal(ctx, t, ctl, rollout, 30*time.Second)
- requireWebhookCount(t, collector, project.Name, "Rollout completed", 0)
+ requireWebhookCount(t, collector, project.Name, "Rollout completed", 0, rollout.Name)
// Phase 2: skip the failed task → PIPELINE_COMPLETED fires (the fix).
skipFailedTasks(ctx, t, ctl, rollout)
- waitForWebhookCount(t, collector, project.Name, "Rollout completed", 1)
- requireWebhookCount(t, collector, project.Name, "Rollout failed", 1)
+ waitForWebhookCount(t, collector, project.Name, "Rollout completed", 1, rollout.Name)
+ requireWebhookCount(t, collector, project.Name, "Rollout failed", 1, rollout.Name)
})
t.Run("PipelineCompleted_AllTasksDone", func(t *testing.T) {
diff --git a/docs/superpowers/plans/2026-08-12-v1-api-audit-coverage.md b/docs/superpowers/plans/2026-08-12-v1-api-audit-coverage.md
index 4259d27e21..0d40d4a597 100644
--- a/docs/superpowers/plans/2026-08-12-v1-api-audit-coverage.md
+++ b/docs/superpowers/plans/2026-08-12-v1-api-audit-coverage.md
@@ -10,12 +10,12 @@
## Global Constraints
-- Never put credentials, tokens, raw SQL, AI prompts, saved query content, exported files, license text, webhook URLs, or payment-session data in an audit request or response.
+- Never put credentials, tokens, raw SQL, AI prompts, saved query content, exported files, license text, webhook URLs, or payment-session data in an audit request, response, or error status.
- Every redactor must clone before modification; `getRequestString` and `getResponseString` must not mutate live handler messages.
- Audit parents must be canonical `workspaces/{workspace}` or `projects/{project}` names; project-scoped actions must not leak into the workspace-scoped audit stream.
- Keep `Refresh`, `SyncDatabase`, `BatchSyncDatabases`, `SyncInstance`, `BatchSyncInstances`, `UpdateSavedQuery`, `UpdateSavedQueryOrganizer`, and `BatchUpdateSavedQueryOrganizer` unaudited in this change.
- Keep `SwitchWorkspace` unaudited because it changes session/token context rather than workspace resources or authorization grants.
-- Keep `TestWebhook` unaudited because it sends a synthetic outbound probe without changing persisted project configuration.
+- Keep `TestWebhook`, `TestIdentityProvider`, `TestEmailSetting`, and `AIService.Chat` unaudited because they are non-mutating operations.
- Keep POST-based searches, CEL parse/deparse, schema diffs, release checks, instance database discovery, and rollback previews unaudited.
- Do not add blanket auditing to saved query reads. The saved-query privacy model owns metadata-only search and conditional auditing for another user's private content.
- Run the repository's proto workflow after every proto batch: `buf format -w proto`, `buf lint proto`, then `(cd proto && buf generate)` so later commands remain at the repository root.
@@ -25,7 +25,7 @@
## Coverage Decision
-Audit these 27 RPCs in this plan:
+Audit these 24 RPCs in this plan:
| Family | RPCs |
| --- | --- |
@@ -34,7 +34,7 @@ Audit these 27 RPCs in this plan:
| Authentication | `RequestPasswordReset`, `ResetPassword` |
| Project webhooks | `AddWebhook`, `UpdateWebhook`, `RemoveWebhook` |
| Subscription | `UploadLicense`, `CreatePurchase`, `UpdatePurchase`, `CancelPurchase`, `ExportVCSProviderUsers` |
-| Sensitive external actions | `AIService.Chat`, `AuditLogService.ExportAuditLogs`, `IdentityProviderService.TestIdentityProvider`, `SettingService.TestEmailSetting` |
+| Sensitive external actions | `AuditLogService.ExportAuditLogs` |
The password-reset RPCs have one deliberate limitation: when the unauthenticated flow has no validated workspace, there is nowhere to persist a workspace-owned audit row. Both `RequestPasswordReset` and the corresponding successful `ResetPassword` therefore remain unaudited for codes issued without workspace context. Workspace-bound flows must be recorded.
@@ -399,9 +399,9 @@ go test -v -count=1 ./backend/tests -run '^TestAuditLogFormat$' -timeout 10m
Expected: PASS with no auth credential present in stored request/response JSON.
-- [ ] **Step 7: Commit the authentication batch**
+- [x] **Step 7: Commit the authentication batch**
-Left uncommitted for the author to review and commit explicitly.
+Merged in PR #21162.
```bash
git add proto/v1/v1/auth_service.proto backend/api/v1/auth_service.go backend/api/v1/audit.go backend/api/v1/audit_redaction_test.go backend/tests/login_audit_test.go backend/generated-go/v1 frontend/src/types/proto-es/v1 proto/gen/grpc-doc backend/api/mcp/gen
@@ -474,13 +474,23 @@ Expected: the existing member request creates a workspace `SendEmailLoginCode` a
**Interfaces:**
- Consumes: workspace parent fallback from the authenticated context.
-- Produces: `redactUploadLicenseRequest`, empty/redacted purchase responses, and metadata-only HTTP export responses.
+- Produces: `redactUploadLicenseRequest`, empty/redacted purchase responses, and metadata-only VCS provider user export responses.
+
+- [x] **Step 1: Add failing redaction cases**
+
+Cover `UploadLicenseRequest.License`, `PurchaseResponse.PaymentUrl`, `PurchaseResponse.SessionId`, and `ExportVCSProviderUsersResponse.Content` with `secretSentinel` in the request/response redaction tables.
+
+- [x] **Step 2: Implement subscription redactors**
-- [ ] **Step 1: Add failing redaction cases**
+Replace the generic `google.api.HttpBody` export result with an RPC-specific response:
-Cover `UploadLicenseRequest.License`, `PurchaseResponse.PaymentUrl`, `PurchaseResponse.SessionId`, and `google.api.HttpBody.Data` with `secretSentinel` in the request/response redaction tables.
+```proto
+message ExportVCSProviderUsersResponse {
+ bytes content = 1;
+}
+```
-- [ ] **Step 2: Implement subscription redactors**
+Return this message from `ExportVCSProviderUsers` and update the Subscription page download path to read `Content` and use the fixed `text/csv; charset=utf-8` media type. The HTTP/JSON representation now carries base64-encoded `content` instead of returning a raw CSV body.
```go
func redactUploadLicenseRequest(r *v1pb.UploadLicenseRequest) *v1pb.UploadLicenseRequest {
@@ -498,15 +508,15 @@ func redactPurchaseResponse(r *v1pb.PurchaseResponse) *v1pb.PurchaseResponse {
}
```
-For `google.api.HttpBody`, retain only `ContentType` and drop `Data` and `Extensions`. Register these types in the request/response serializer switches.
+For `ExportVCSProviderUsersResponse`, drop `Content` and serialize an empty response. Register these types in the request/response serializer switches.
-- [ ] **Step 3: Add subscription annotations**
+- [x] **Step 3: Add subscription annotations**
Add `audit = true` to `UploadLicense`, `CreatePurchase`, `UpdatePurchase`, `CancelPurchase`, and `ExportVCSProviderUsers`.
Leave `Resource` empty for these workspace-singleton operations; the authenticated workspace remains the audit parent. Do not invent a non-resource-format subscription name.
-- [ ] **Step 4: Generate and test**
+- [x] **Step 4: Generate and test**
```bash
buf format -w proto
@@ -516,10 +526,12 @@ gofmt -w backend/api/v1/audit.go backend/api/v1/audit_redaction_test.go
go test ./backend/api/v1 -run '^(TestAudit(Request|Response)RedactsCredentials|TestAuditRedactionDoesNotMutateInput)$' -count=1
```
-Expected: PASS; license, checkout URL/session, and CSV data are absent.
+Expected: PASS; license, checkout URL/session, and CSV content are absent.
- [ ] **Step 5: Commit the subscription batch**
+Left uncommitted for the author to review and commit explicitly.
+
```bash
git add proto/v1/v1/subscription_service.proto backend/api/v1/audit.go backend/api/v1/audit_redaction_test.go backend/generated-go/v1 frontend/src/types/proto-es/v1 proto/gen/grpc-doc backend/api/mcp/gen
git commit -m "feat: audit subscription management actions"
@@ -527,13 +539,10 @@ git commit -m "feat: audit subscription management actions"
---
-### Task 5: Webhook, Configuration Test, AI, and Audit Export Actions
+### Task 5: Webhook and Audit Export Actions
**Files:**
- Modify: `proto/v1/v1/project_service.proto`
-- Modify: `proto/v1/v1/idp_service.proto`
-- Modify: `proto/v1/v1/setting_service.proto`
-- Modify: `proto/v1/v1/ai_service.proto`
- Modify: `proto/v1/v1/audit_log_service.proto`
- Modify: `backend/api/v1/audit.go`
- Modify: `backend/api/v1/audit_redaction_test.go`
@@ -541,62 +550,37 @@ git commit -m "feat: audit subscription management actions"
- Generated: `backend/generated-go/v1/`, `frontend/src/types/proto-es/v1/`, `proto/gen/grpc-doc/`, `backend/api/mcp/gen/`
**Interfaces:**
-- Consumes: existing `redactIdentityProvider`, `redactSetting`, and `maskedString`.
-- Produces: metadata-only audit payloads for outbound tests, AI calls, and audit-log exports.
+- Consumes: existing `redactWebhook` and `maskedString`.
+- Produces: metadata-only audit payloads for webhook mutations and audit-log exports.
-- [ ] **Step 1: Add failing secret/content tests**
+- [x] **Step 1: Add failing secret/content tests**
-Add cases for OAuth/OIDC authorization code, LDAP password, SMTP password, AI message content/tool arguments/provider metadata, exported audit-log bytes, and identity-provider response claims/user info. The shared project redactor from Task 1 already covers webhook URLs in webhook requests and returned `Project` responses. Keep safe identifiers such as project name, webhook name/title, recipient email, IdP name, AI token usage, and export page token.
+Add cases for exported audit-log bytes. The shared project redactor from Task 1 already covers webhook URLs in webhook requests and returned `Project` responses. Keep safe identifiers such as project name, webhook name/title, and export page token.
-- [ ] **Step 2: Extract a reusable email-setting redactor**
+- [x] **Step 2: Confirm configuration probes remain excluded**
-Create `redactEmailSetting(*v1pb.EmailSetting) *v1pb.EmailSetting` by moving the existing SMTP-password masking logic out of `redactSetting`; make `redactSetting` call it. Use the same helper for `TestEmailSettingRequest` so the two paths cannot drift.
+Keep `TestIdentityProvider`, `TestEmailSetting`, and `AIService.Chat` unaudited alongside `TestWebhook`; none of these methods mutates a Bytebase resource.
-- [ ] **Step 3: Implement request/response redactors**
+- [x] **Step 3: Implement request/response redactors**
Implement these exact contracts:
```go
-func redactTestIdentityProviderRequest(r *v1pb.TestIdentityProviderRequest) *v1pb.TestIdentityProviderRequest
-// Clone; call redactIdentityProvider; mask OAuth/OIDC code and LDAP password.
-
-func redactTestIdentityProviderResponse(r *v1pb.TestIdentityProviderResponse) *v1pb.TestIdentityProviderResponse
-// Return an empty response; provider claims and mapped email, title, and phone are identity data, not audit metadata.
-
-func redactAIChatRequest(r *v1pb.AIChatRequest) *v1pb.AIChatRequest
-// Return an empty AIChatRequest so prompts, tool schemas, tool arguments, and provider metadata are never logged.
-
-func redactAIChatResponse(r *v1pb.AIChatResponse) *v1pb.AIChatResponse
-// Return a response containing only a cloned Usage message.
-
func redactExportAuditLogsResponse(r *v1pb.ExportAuditLogsResponse) *v1pb.ExportAuditLogsResponse
// Return only NextPageToken; drop Content.
```
-Register Add/Update/Remove webhook requests using Task 1's `redactWebhook`, and register `TestIdentityProviderRequest`, `TestIdentityProviderResponse`, `TestEmailSettingRequest`, `AIChatRequest`, `AIChatResponse`, and `ExportAuditLogsResponse` in the serializer switches. Add response-side sentinel cases for both `TestIdentityProviderResponse.Claims` and `TestIdentityProviderResponse.UserInfo`, and assert the serialized response is empty.
+Register Add/Update/Remove webhook requests using Task 1's `redactWebhook`, and register `ExportAuditLogsResponse` in the response serializer switch.
-- [ ] **Step 4: Add canonical resource extraction and regression tests**
+- [x] **Step 4: Add canonical resource extraction and regression tests**
-Extend `TestLifecycleAuditResource` with both IdP test modes before enabling the annotation:
+Add method-aware cases for webhook and export-audit-log requests so their annotated fields are covered by the shared resource path.
-```go
-{name: "test existing identity provider", method: v1connect.IdentityProviderServiceTestIdentityProviderProcedure, request: &v1pb.TestIdentityProviderRequest{
- IdentityProvider: &v1pb.IdentityProvider{Name: "idps/idp-a"},
-}, want: "idps/idp-a"},
-{name: "test uncreated identity provider", method: v1connect.IdentityProviderServiceTestIdentityProviderProcedure, request: &v1pb.TestIdentityProviderRequest{
- IdentityProvider: &v1pb.IdentityProvider{},
-}, want: ""},
-```
-
-The existing-provider case is resolved from the nested `IdentityProvider` message's `google.api.resource` annotation through `getResourceFromSingleRequest`; no IdP-specific audit branch is needed. The uncreated-provider case pins the empty-name behavior and must remain empty. Add method-aware cases for webhook, export-audit-log, and email-setting requests so their annotated fields are covered by the same shared path.
-
-The IdP test remains workspace-parented through the existing ACL resource-resolution fallback, but an existing provider retains its canonical `idps/{idp}` resource name in the audit row's `Resource` field. Testing an uncreated provider leaves `Resource` empty. AI chat remains workspace-parented with an empty resource because its request names no canonical Bytebase resource.
-
-- [ ] **Step 5: Add annotations**
+- [x] **Step 5: Add annotations**
-Add `audit = true` to `AddWebhook`, `UpdateWebhook`, `RemoveWebhook`, `TestIdentityProvider`, `TestEmailSetting`, `AIService.Chat`, and `ExportAuditLogs`.
+Add `audit = true` to `AddWebhook`, `UpdateWebhook`, `RemoveWebhook`, and `ExportAuditLogs`.
-- [ ] **Step 6: Generate and test**
+- [x] **Step 6: Generate and test**
```bash
buf format -w proto
@@ -606,12 +590,14 @@ gofmt -w backend/api/v1/audit.go backend/api/v1/audit_redaction_test.go backend/
go test ./backend/api/v1 -run '^(TestAudit(Request|Response)RedactsCredentials|TestAuditRedactionDoesNotMutateInput|TestLifecycleAuditResource)$' -count=1
```
-Expected: PASS; existing-provider IdP tests retain `idps/{idp}`, uncreated-provider tests retain an empty resource, and audit rows contain no outbound payloads or credentials.
+Expected: PASS; webhook resources remain canonical and audit rows contain no exported audit-log content.
- [ ] **Step 7: Commit the sensitive-action batch**
+Left uncommitted for the author to review and commit explicitly.
+
```bash
-git add proto/v1/v1/project_service.proto proto/v1/v1/idp_service.proto proto/v1/v1/setting_service.proto proto/v1/v1/ai_service.proto proto/v1/v1/audit_log_service.proto backend/api/v1/audit.go backend/api/v1/audit_redaction_test.go backend/api/v1/audit_test.go backend/generated-go/v1 frontend/src/types/proto-es/v1 proto/gen/grpc-doc backend/api/mcp/gen
+git add proto/v1/v1/project_service.proto proto/v1/v1/audit_log_service.proto backend/api/v1/audit.go backend/api/v1/audit_redaction_test.go backend/api/v1/audit_test.go backend/generated-go/v1 frontend/src/types/proto-es/v1 proto/gen/grpc-doc backend/api/mcp/gen
git commit -m "feat: audit sensitive outbound actions"
```
@@ -652,11 +638,9 @@ func requireAuditedMethod(t *testing.T, fullName string) {
func TestRequiredAPIAuditCoverage(t *testing.T) {
for _, method := range []string{
"bytebase.v1.ActuatorService.SetupSample",
- "bytebase.v1.AIService.Chat",
"bytebase.v1.AuditLogService.ExportAuditLogs",
"bytebase.v1.AuthService.RequestPasswordReset",
"bytebase.v1.AuthService.ResetPassword",
- "bytebase.v1.IdentityProviderService.TestIdentityProvider",
"bytebase.v1.PlanService.CancelPlanCheckRun",
"bytebase.v1.PlanService.RunPlanChecks",
"bytebase.v1.ProjectService.AddWebhook",
@@ -670,7 +654,6 @@ func TestRequiredAPIAuditCoverage(t *testing.T) {
"bytebase.v1.ReleaseService.UpdateRelease",
"bytebase.v1.RevisionService.BatchCreateRevisions",
"bytebase.v1.RevisionService.DeleteRevision",
- "bytebase.v1.SettingService.TestEmailSetting",
"bytebase.v1.SubscriptionService.CancelPurchase",
"bytebase.v1.SubscriptionService.CreatePurchase",
"bytebase.v1.SubscriptionService.ExportVCSProviderUsers",
@@ -688,7 +671,7 @@ func TestRequiredAPIAuditCoverage(t *testing.T) {
- [ ] **Step 2: Add the intentional-exclusion test**
-Add `requireUnauditedMethod` and enumerate the ten deliberate exclusions from Global Constraints. This makes adding audit to sync, autosave, session mechanics, or non-mutating probe paths a conscious policy change instead of accidental drift:
+Add `requireUnauditedMethod` and enumerate the thirteen deliberate exclusions from Global Constraints. This makes adding audit to sync, autosave, session mechanics, or non-mutating operations a conscious policy change instead of accidental drift:
```go
func requireUnauditedMethod(t *testing.T, fullName string) {
@@ -708,16 +691,19 @@ func requireUnauditedMethod(t *testing.T, fullName string) {
func TestIntentionalAPIAuditExclusions(t *testing.T) {
for _, method := range []string{
+ "bytebase.v1.AIService.Chat",
"bytebase.v1.AuthService.Refresh",
"bytebase.v1.AuthService.SwitchWorkspace",
"bytebase.v1.DatabaseService.BatchSyncDatabases",
"bytebase.v1.DatabaseService.SyncDatabase",
"bytebase.v1.InstanceService.BatchSyncInstances",
"bytebase.v1.InstanceService.SyncInstance",
+ "bytebase.v1.IdentityProviderService.TestIdentityProvider",
"bytebase.v1.ProjectService.TestWebhook",
"bytebase.v1.SavedQueryService.BatchUpdateSavedQueryOrganizer",
"bytebase.v1.SavedQueryService.UpdateSavedQuery",
"bytebase.v1.SavedQueryService.UpdateSavedQueryOrganizer",
+ "bytebase.v1.SettingService.TestEmailSetting",
} {
t.Run(method, func(t *testing.T) {
requireUnauditedMethod(t, method)
@@ -740,7 +726,7 @@ Expected: PASS with all required descriptors audited and all deliberate exclusio
Add an “Audit annotation coverage” section to `docs/design/v1-api-audit-2026-08.md` containing:
- the audited RPC families from the Coverage Decision table;
-- the deliberate exclusions and their reasons, including session-only workspace switching and non-mutating webhook tests;
+- the deliberate exclusions and their reasons, including session-only workspace switching and non-mutating configuration probes;
- the rule that serializers must redact credentials/content before annotations are enabled;
- the workspace-resolution limitation for both unauthenticated password-reset RPCs;
- the saved-query read deferral to the saved-query privacy model.
diff --git a/frontend/src/routes/workspace/SubscriptionPage.test.tsx b/frontend/src/routes/workspace/SubscriptionPage.test.tsx
index 2d01cf691d..a1ba7b53bc 100644
--- a/frontend/src/routes/workspace/SubscriptionPage.test.tsx
+++ b/frontend/src/routes/workspace/SubscriptionPage.test.tsx
@@ -118,8 +118,7 @@ describe("SubscriptionPage", () => {
vi.setSystemTime(new Date(2026, 4, 28, 17, 10, 11));
mocks.hasWorkspacePermissionV2.mockReturnValue(true);
mocks.exportVCSProviderUsers.mockResolvedValue({
- contentType: "text/csv; charset=utf-8",
- data: new TextEncoder().encode(
+ content: new TextEncoder().encode(
"vcs_type,user_id,user_name,display_name,last_seen_at\ngithub,123,alice,Alice,2026-05-28T09:00:00Z\n"
),
});
diff --git a/frontend/src/routes/workspace/SubscriptionPage.tsx b/frontend/src/routes/workspace/SubscriptionPage.tsx
index 58063dbd0d..2297a9ab31 100644
--- a/frontend/src/routes/workspace/SubscriptionPage.tsx
+++ b/frontend/src/routes/workspace/SubscriptionPage.tsx
@@ -143,8 +143,8 @@ export function SubscriptionPage({
contextValues: createContextValues().set(silentContextKey, true),
}
);
- const blob = new Blob([new TextDecoder().decode(body.data)], {
- type: body.contentType || "text/csv; charset=utf-8",
+ const blob = new Blob([new TextDecoder().decode(body.content)], {
+ type: "text/csv; charset=utf-8",
});
const url = URL.createObjectURL(blob);
const anchor = document.createElement("a");
diff --git a/frontend/src/types/proto-es/google/api/httpbody_pb.d.ts b/frontend/src/types/proto-es/google/api/httpbody_pb.d.ts
deleted file mode 100644
index 39a2bc8d20..0000000000
--- a/frontend/src/types/proto-es/google/api/httpbody_pb.d.ts
+++ /dev/null
@@ -1,104 +0,0 @@
-// Copyright 2025 Google LLC
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-// @generated by protoc-gen-es v2.12.0
-// @generated from file google/api/httpbody.proto (package google.api, syntax proto3)
-/* eslint-disable */
-
-import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
-import type { Message } from "@bufbuild/protobuf";
-import type { Any } from "@bufbuild/protobuf/wkt";
-
-/**
- * Describes the file google/api/httpbody.proto.
- */
-export declare const file_google_api_httpbody: GenFile;
-
-/**
- * Message that represents an arbitrary HTTP body. It should only be used for
- * payload formats that can't be represented as JSON, such as raw binary or
- * an HTML page.
- *
- *
- * This message can be used both in streaming and non-streaming API methods in
- * the request as well as the response.
- *
- * It can be used as a top-level request field, which is convenient if one
- * wants to extract parameters from either the URL or HTTP template into the
- * request fields and also want access to the raw HTTP body.
- *
- * Example:
- *
- * message GetResourceRequest {
- * // A unique request id.
- * string request_id = 1;
- *
- * // The raw HTTP body is bound to this field.
- * google.api.HttpBody http_body = 2;
- *
- * }
- *
- * service ResourceService {
- * rpc GetResource(GetResourceRequest)
- * returns (google.api.HttpBody);
- * rpc UpdateResource(google.api.HttpBody)
- * returns (google.protobuf.Empty);
- *
- * }
- *
- * Example with streaming methods:
- *
- * service CaldavService {
- * rpc GetCalendar(stream google.api.HttpBody)
- * returns (stream google.api.HttpBody);
- * rpc UpdateCalendar(stream google.api.HttpBody)
- * returns (stream google.api.HttpBody);
- *
- * }
- *
- * Use of this type only changes how the request and response bodies are
- * handled, all other features will continue to work unchanged.
- *
- * @generated from message google.api.HttpBody
- */
-export declare type HttpBody = Message<"google.api.HttpBody"> & {
- /**
- * The HTTP Content-Type header value specifying the content type of the body.
- *
- * @generated from field: string content_type = 1;
- */
- contentType: string;
-
- /**
- * The HTTP request/response body as raw binary.
- *
- * @generated from field: bytes data = 2;
- */
- data: Uint8Array;
-
- /**
- * Application specific response metadata. Must be set in the first response
- * for streaming APIs.
- *
- * @generated from field: repeated google.protobuf.Any extensions = 3;
- */
- extensions: Any[];
-};
-
-/**
- * Describes the message google.api.HttpBody.
- * Use `create(HttpBodySchema)` to create a new message.
- */
-export declare const HttpBodySchema: GenMessage<HttpBody>;
-
diff --git a/frontend/src/types/proto-es/google/api/httpbody_pb.js b/frontend/src/types/proto-es/google/api/httpbody_pb.js
deleted file mode 100644
index 4a4e675403..0000000000
--- a/frontend/src/types/proto-es/google/api/httpbody_pb.js
+++ /dev/null
@@ -1,34 +0,0 @@
-// Copyright 2025 Google LLC
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-// @generated by protoc-gen-es v2.12.0
-// @generated from file google/api/httpbody.proto (package google.api, syntax proto3)
-/* eslint-disable */
-
-import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
-import { file_google_protobuf_any } from "@bufbuild/protobuf/wkt";
-
-/**
- * Describes the file google/api/httpbody.proto.
- */
-export const file_google_api_httpbody = /*@__PURE__*/
- fileDesc("Chlnb29nbGUvYXBpL2h0dHBib2R5LnByb3RvEgpnb29nbGUuYXBpIlgKCEh0dHBCb2R5EhQKDGNvbnRlbnRfdHlwZRgBIAEoCRIMCgRkYXRhGAIgASgMEigKCmV4dGVuc2lvbnMYAyADKAsyFC5nb29nbGUucHJvdG9idWYuQW55QqUBCg5jb20uZ29vZ2xlLmFwaUINSHR0cGJvZHlQcm90b1ABWjtnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2FwaS9odHRwYm9keTtodHRwYm9keaICA0dBWKoCCkdvb2dsZS5BcGnKAgpHb29nbGVcQXBp4gIWR29vZ2xlXEFwaVxHUEJNZXRhZGF0YeoCC0dvb2dsZTo6QXBpYgZwcm90bzM", [file_google_protobuf_any]);
-
-/**
- * Describes the message google.api.HttpBody.
- * Use `create(HttpBodySchema)` to create a new message.
- */
-export const HttpBodySchema = /*@__PURE__*/
- messageDesc(file_google_api_httpbody, 0);
-
diff --git a/frontend/src/types/proto-es/v1/audit_log_service_pb.js b/frontend/src/types/proto-es/v1/audit_log_service_pb.js
index 3fe537ba81..82f7ddc20a 100644
--- a/frontend/src/types/proto-es/v1/audit_log_service_pb.js
+++ b/frontend/src/types/proto-es/v1/audit_log_service_pb.js
@@ -16,7 +16,7 @@ import { file_v1_iam_policy } from "./iam_policy_pb";
* Describes the file v1/audit_log_service.proto.
*/
export const file_v1_audit_log_service = /*@__PURE__*/
- fileDesc("Chp2MS9hdWRpdF9sb2dfc2VydmljZS5wcm90bxILYnl0ZWJhc2UudjEikAEKFlNlYXJjaEF1ZGl0TG9nc1JlcXVlc3QSLQoGcGFyZW50GAUgASgJQh3gQQL6QRcSFWJ5dGViYXNlLmNvbS9BdWRpdExvZxIOCgZ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owAYLT5JMCSDoBKloZOgEqIhQvdjEvYXVkaXRMb2dzOmV4cG9ydCIoL3YxL3twYXJlbnQ9cHJvamVjdHMvKn0vYXVkaXRMb2dzOmV4cG9ydEKqAQoPY29tLmJ5dGViYXNlLnYxQhRBdWRpdExvZ1NlcnZpY2VQcm90b1ABWjRnaXRodWIuY29tL2J5dGViYXNlL2J5dGViYXNlL2JhY2tlbmQvZ2VuZXJhdGVkLWdvL3YxogIDQlhYqgILQnl0ZWJhc2UuVjHKAgtCeXRlYmFzZVxWMeICF0J5dGViYXNlXFYxXEdQQk1ldGFkYXRh6gIMQnl0ZWJhc2U6OlYxYgZwcm90bzM", [file_google_api_annotations, file_google_api_field_behavior, file_google_api_resource, file_google_protobuf_any, file_google_protobuf_duration, file_google_protobuf_timestamp, file_google_rpc_status, file_v1_annotation, file_v1_common, file_v1_iam_policy]);
+ fileDesc("Chp2MS9hdWRpdF9sb2dfc2VydmljZS5wcm90bxILYnl0ZWJhc2UudjEikAEKFlNlYXJjaEF1ZGl0TG9nc1JlcXVlc3QSLQoGcGFyZW50GAUgASgJQh3gQQL6QRcSFWJ5dGViYXNlLmNvbS9BdWRpdExvZxIOCgZmaWx0ZXIYASABKAkSEAoIb3JkZXJfYnkYAiABKAkSEQoJcGFnZV9zaXplGAMgASgFEhIKCnBhZ2VfdG9rZW4YBCABKAkiXQoXU2VhcmNoQXVkaXRMb2dzUmVzcG9uc2USKQoKYXVkaXRfbG9ncxgBIAMoCzIVLmJ5dGViYXNlLnYxLkF1ZGl0TG9nEhcKD25leHRfcGFnZV90b2tlbhgCIAEoCSK7AQoWRXhwb3J0QXVkaXRMb2dzUmVxdWVzdBItCgZwYXJlbnQYBCABKAlCHeBBAvpBFxIVYnl0ZWJhc2UuY29tL0F1ZGl0TG9nEg4KBmZpbHRlchgBIAEoCRIQCghvcmRlcl9ieRgCIAEoCRIpCgZmb3JtYXQYAyABKA4yGS5ieXRlYmFzZS52MS5FeHBvcnRGb3JtYXQSEQoJcGFn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mNhbGxlcl9zdXBwbGllZF91c2VyX2FnZW50GAIgASgJIlsKDU1DUERlbGVnYXRpb24SDQoFc2NvcGUYASABKAkSEAoIcmVzb3VyY2UYAiABKAkSEQoJY2xpZW50X2lkGAMgASgJEhYKDmNvcnJlbGF0aW9uX2lkGAQgASgJMqkDCg9BdWRpdExvZ1NlcnZpY2USxwEKD1NlYXJjaEF1ZGl0TG9ncxIjLmJ5dGViYXNlLnYxLlNlYXJjaEF1ZGl0TG9nc1JlcXVlc3QaJC5ieXRlYmFzZS52MS5TZWFyY2hBdWRpdExvZ3NSZXNwb25zZSJpiuowE2JiLmF1ZGl0TG9ncy5zZWFyY2iQ6jABgtPkkwJIOgEqWhk6ASoiFC92MS9hdWRpdExvZ3M6c2VhcmNoIigvdjEve3BhcmVudD1wcm9qZWN0cy8qfS9hdWRpdExvZ3M6c2VhcmNoEssBCg9FeHBvcnRBdWRpdExvZ3MSIy5ieXRlYmFzZS52MS5FeHBvcnRBdWRpdExvZ3NSZXF1ZXN0GiQuYnl0ZWJhc2UudjEuRXhwb3J0QXVkaXRMb2dzUmVzcG9uc2UibYrqMBNiYi5hdWRpdExvZ3MuZXhwb3J0kOowAZjqMAGC0+STAkg6ASpaGToBKiIUL3YxL2F1ZGl0TG9nczpleHBvcnQiKC92MS97cGFyZW50PXByb2plY3RzLyp9L2F1ZGl0TG9nczpleHBvcnRCqgEKD2NvbS5ieXRlYmFzZS52MUIUQXVkaXRMb2dTZXJ2aWNlUHJvdG9QAVo0Z2l0aHViLmNvbS9ieXRlYmFzZS9ieXRlYmFzZS9iYWNrZW5kL2dlbmVyYXRlZC1nby92MaICA0JYWKoCC0J5dGViYXNlLlYxygILQnl0ZWJhc2VcVjHiAhdCeXRlYmFzZVxWMVxHUEJNZXRhZGF0YeoCDEJ5dGViYXNlOjpWMWIGcHJvdG8z", [file_google_api_annotations, file_google_api_field_behavior, file_google_api_resource, file_google_protobuf_any, file_google_protobuf_duration, file_google_protobuf_timestamp, file_google_rpc_status, file_v1_annotation, file_v1_common, file_v1_iam_policy]);
/**
* Describes the message bytebase.v1.SearchAuditLogsRequest.
diff --git a/frontend/src/types/proto-es/v1/project_service_pb.js b/frontend/src/types/proto-es/v1/project_service_pb.js
index 78987fafcb..fdb27324e5 100644
--- a/frontend/src/types/proto-es/v1/project_service_pb.js
+++ b/frontend/src/types/proto-es/v1/project_service_pb.js
@@ -18,7 +18,7 @@ import { file_v1_iam_policy } from "./iam_policy_pb";
* Describes the file v1/project_service.proto.
*/
export const file_v1_project_service = /*@__PURE__*/
- fileDesc("Chh2MS9wcm9qZWN0X3NlcnZpY2UucHJvdG8SC2J5dGViYXNlLnYxIj8KEUdldFByb2plY3RSZXF1ZXN0EioKBG5hbWUYASABKAlCHOBBAvpBFgoUYnl0ZWJhc2UuY29tL1Byb2plY3QiRgoXQmF0Y2hHZXRQcm9qZWN0c1JlcXVlc3QSKwoFbmFtZXMYASADKAlCHOBBAvpBFgoUYnl0ZWJhc2UuY29tL1Byb2plY3QiQgoYQmF0Y2hHZXRQcm9qZWN0c1Jlc3BvbnNlEiYKCHByb2plY3RzGAEgAygLMhQuYnl0ZWJhc2UudjEuUHJvamVjdCJ0ChNMaXN0UHJvamVjdHNSZXF1ZXN0EhEKCXBhZ2Vfc2l6ZRgBIAEoBRISCgpwYWdlX3Rva2VuGAIgASgJEhQKDHNob3dfZGVsZXRlZBgDIAEoCBIOCgZmaWx0ZXIYBCABKAkSEAoIb3JkZXJfYnkYBSABKAkiVwoUTGlzdFByb2plY3RzUmVzcG9uc2USJgoIcHJvamVjdHMYASADKAsyFC5ieXRlYmFzZS52MS5Qcm9qZWN0EhcKD25leHRfcGFnZV90b2tlbhgCIAEoCSJ2ChVTZWFyY2hQcm9qZWN0c1JlcXVlc3QSFAoMc2hvd19kZWxldGVkGAEgASgIEg4KBmZpbHRlchgCIAEoCRIRCglwYWdlX3NpemUYAyABKAUSEgoKcGFnZV90b2tlbhgEIAEoCRIQCghvcmRlcl9ieRgFIAEoCSJZCh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xXEdQQk1ldGFkYXRh6gIMQnl0ZWJhc2U6OlYxYgZwcm90bzM", [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_type_color, file_v1_annotation, file_v1_common, file_v1_iam_policy]);
+ fileDesc("Chh2MS9wcm9qZWN0X3NlcnZpY2UucHJvdG8SC2J5dGViYXNlLnYxIj8KEUdldFByb2plY3RSZXF1ZXN0EioKBG5hbWUYASABKAlCHOBBAvpBFgoUYnl0ZWJhc2UuY29tL1Byb2plY3QiRgoXQmF0Y2hHZXRQcm9qZWN0c1JlcXVlc3QSKwoFbmFtZXMYASADKAlCHOBBAvpBFgoUYnl0ZWJhc2UuY29tL1Byb2plY3QiQgoYQmF0Y2hHZXRQcm9qZWN0c1Jlc3BvbnNlEiYKCHByb2plY3RzGAEgAygLMhQuYnl0ZWJhc2UudjEuUHJvamVjdCJ0ChNMaXN0UHJvamVjdHNSZXF1ZXN0EhEKCXBhZ2Vfc2l6ZRgBIAEoBRISCgpwYWdlX3Rva2VuGAIgASgJEhQKDHNob3dfZGVsZXRlZBgDIAEoCBIOCgZmaWx0ZXIYBCABKAkSEAoIb3JkZXJfYnkYBSABKAkiVwoUTGlzdFByb2plY3RzUmVzcG9uc2USJgoIcHJvamVjdHMYASADKAsyFC5ieXRlYmFzZS52MS5Qcm9qZWN0EhcKD25leHRfcGFnZV90b2tlbhgCIAEoCSJ2ChVTZWFyY2hQcm9qZWN0c1JlcXVlc3QSFAoMc2hvd19kZWxldGVkGAEgASgIEg4KBmZpbHRlchgCIAEoCRIRCglwYWdlX3NpemUYAyABKAUSEgoKcGFnZV90b2tlbhgEIAEoCRIQCghvcmRlcl9ieRgFIAEoCSJZChZTZWFyY2hQcm9qZWN0c1Jlc3BvbnNlEiYKCHByb2plY3RzGAEgAygLMhQuYnl0ZWJhc2UudjEuUHJvamVjdBIXCg9uZXh0X3BhZ2VfdG9rZW4YAiABKAkiVg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udXBkYXRlkOowAZjqMAGC0+STAig6ASoiIy92MS97cHJvamVjdD1wcm9qZWN0cy8qfTphZGRXZWJob29rEsUBCg1VcGRhdGVXZWJob29rEiEuYnl0ZWJhc2UudjEuVXBkYXRlV2ViaG9va1JlcXVlc3QaFC5ieXRlYmFzZS52MS5Qcm9qZWN0InvaQRN3ZWJob29rLHVwZGF0ZV9tYXNriuowEmJiLnByb2plY3RzLnVwZGF0ZZDqMAGY6jABgtPkkwJBOgd3ZWJob29rMjYvdjEve3dlYmhvb2submFtZT1wcm9qZWN0cy8qL3dlYmhvb2tzLyp9OnVwZGF0ZVdlYmhvb2sSqQEKDVJlbW92ZVdlYmhvb2sSIS5ieXRlYmFzZS52MS5SZW1vdmVXZWJob29rUmVxdWVzdBoULmJ5dGViYXNlLnYxLlByb2plY3QiX4rqMBJiYi5wcm9qZWN0cy51cGRhdGWQ6jABmOowAYLT5JMCOzoBKiI2L3YxL3t3ZWJob29rLm5hbWU9cHJvamVjdHMvKi93ZWJob29rcy8qfTpyZW1vdmVXZWJob29rEpsBCgtUZXN0V2ViaG9vaxIfLmJ5dGViYXNlLnYxLlRlc3RXZWJob29rUmVxdWVzdBogLmJ5dGViYXNlLnYxLlRlc3RXZWJob29rUmVzcG9uc2UiSYrqMBJiYi5wcm9qZWN0cy51cGRhdGWQ6jABgtPkkwIpOgEqIiQvdjEve3Byb2plY3Q9cHJvamVjdHMvKn06dGVzdFdlYmhvb2tCqQEKD2NvbS5ieXRlYmFzZS52MUITUHJvamVjdFNlcnZpY2VQcm90b1ABWjRnaXRodWIuY29tL2J5dGViYXNlL2J5dGViYXNlL2JhY2tlbmQvZ2VuZXJhdGVkLWdvL3YxogIDQlhYqgILQnl0ZWJhc2UuVjHKAgtCeXRlYmFzZVxWMeICF0J5dGViYXNlXFYxXEdQQk1ldGFkYXRh6gIMQnl0ZWJhc2U6OlYxYgZwcm90bzM", [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_type_color, file_v1_annotation, file_v1_common, file_v1_iam_policy]);
/**
* Describes the message bytebase.v1.GetProjectRequest.
diff --git a/frontend/src/types/proto-es/v1/subscription_service_pb.d.ts b/frontend/src/types/proto-es/v1/subscription_service_pb.d.ts
index b01dd7fbad..7f84414ac7 100644
--- a/frontend/src/types/proto-es/v1/subscription_service_pb.d.ts
+++ b/frontend/src/types/proto-es/v1/subscription_service_pb.d.ts
@@ -5,7 +5,6 @@
import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
import type { Message } from "@bufbuild/protobuf";
import type { Timestamp } from "@bufbuild/protobuf/wkt";
-import type { HttpBodySchema } from "../google/api/httpbody_pb";
/**
* Describes the file v1/subscription_service.proto.
@@ -36,6 +35,22 @@ export declare type ExportVCSProviderUsersRequest = Message<"bytebase.v1.ExportV
*/
export declare const ExportVCSProviderUsersRequestSchema: GenMessage<ExportVCSProviderUsersRequest>;
+/**
+ * @generated from message bytebase.v1.ExportVCSProviderUsersResponse
+ */
+export declare type ExportVCSProviderUsersResponse = Message<"bytebase.v1.ExportVCSProviderUsersResponse"> & {
+ /**
+ * @generated from field: bytes content = 1;
+ */
+ content: Uint8Array;
+};
+
+/**
+ * Describes the message bytebase.v1.ExportVCSProviderUsersResponse.
+ * Use `create(ExportVCSProviderUsersResponseSchema)` to create a new message.
+ */
+export declare const ExportVCSProviderUsersResponseSchema: GenMessage<ExportVCSProviderUsersResponse>;
+
/**
* @generated from message bytebase.v1.UploadLicenseRequest
*/
@@ -1041,7 +1056,7 @@ export declare const SubscriptionService: GenService<{
exportVCSProviderUsers: {
methodKind: "unary";
input: typeof ExportVCSProviderUsersRequestSchema;
- output: typeof HttpBodySchema;
+ output: typeof ExportVCSProviderUsersResponseSchema;
},
/**
* Uploads an enterprise license (self-hosted only).
diff --git a/frontend/src/types/proto-es/v1/subscription_service_pb.js b/frontend/src/types/proto-es/v1/subscription_service_pb.js
index e030ca04e7..6484463515 100644
--- a/frontend/src/types/proto-es/v1/subscription_service_pb.js
+++ b/frontend/src/types/proto-es/v1/subscription_service_pb.js
@@ -6,7 +6,6 @@ import { enumDesc, fileDesc, messageDesc, serviceDesc, tsEnum } from "@bufbuild/
import { file_google_api_annotations } from "../google/api/annotations_pb";
import { file_google_api_client } from "../google/api/client_pb";
import { file_google_api_field_behavior } from "../google/api/field_behavior_pb";
-import { file_google_api_httpbody } from "../google/api/httpbody_pb";
import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
import { file_v1_annotation } from "./annotation_pb";
@@ -14,7 +13,7 @@ import { file_v1_annotation } from "./annotation_pb";
* Describes the file v1/subscription_service.proto.
*/
export const file_v1_subscription_service = /*@__PURE__*/
- fileDesc("Ch12MS9zdWJzY3JpcHRpb25fc2VydmljZS5wcm90bxILYnl0ZWJhc2UudjEiGAoWR2V0U3Vic2NyaXB0aW9uUmVxdWVzdCIfCh1FeHBvcnRWQ1NQcm92aWRlclVzZXJzUmVxdWVzdCInChRVcGxvYWRMaWNlbnNlUmVxdWVzdBIPCgdsaWNlbnNlGAEgASgJInsKFUNyZWF0ZVB1cmNoYXNlUmVxdWVzdBIjCgRwbGFuGAEgASgOMhUuYnl0ZWJhc2UudjEuUGxhblR5cGUSLgoIaW50ZXJ2YWwYAiABKA4yHC5ieXRlYmFzZS52MS5CaWxsaW5nSW50ZXJ2YWwSDQoFc2VhdHMYAyABKAUiOwoQUHVyY2hhc2VSZXNwb25zZRITCgtwYXltZW50X3VybBgBIAEoCRISCgpzZXNzaW9uX2lkGAIgASgJIjIKHFZlcmlmeUNoZWNrb3V0U2Vzc2lvblJlcXVlc3QSEgoKc2Vzc2lvbl9pZBgBIAEoCSIvCh1WZXJpZnlDaGVja291dFNlc3Npb25SZXNwb25zZRIOCgZzdGF0dXMYASABKAkiiQEKFVVwZGF0ZVB1cmNoYXNlUmVxdWVzdBIjCgRwbGFuGAEgASgOMhUuYnl0ZWJhc2UudjEuUGxhblR5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lzdFB1cmNoYXNlUGxhbnNSZXF1ZXN0GiYuYnl0ZWJhc2UudjEuTGlzdFB1cmNoYXNlUGxhbnNSZXNwb25zZSIegtPkkwIYEhYvdjEvc3Vic2NyaXB0aW9uL3BsYW5zQq4BCg9jb20uYnl0ZWJhc2UudjFCGFN1YnNjcmlwdGlvblNlcnZpY2VQcm90b1ABWjRnaXRodWIuY29tL2J5dGViYXNlL2J5dGViYXNlL2JhY2tlbmQvZ2VuZXJhdGVkLWdvL3YxogIDQlhYqgILQnl0ZWJhc2UuVjHKAgtCeXRlYmFzZVxWMeICF0J5dGViYXNlXFYxXEdQQk1ldGFkYXRh6gIMQnl0ZWJhc2U6OlYxYgZwcm90bzM", [file_google_api_annotations, file_google_api_client, file_google_api_field_behavior, file_google_api_httpbody, file_google_protobuf_timestamp, file_v1_annotation]);
+ fileDesc("Ch12MS9zdWJzY3JpcHRpb25fc2VydmljZS5wcm90bxILYnl0ZWJhc2UudjEiGAoWR2V0U3Vic2NyaXB0aW9uUmVxdWVzdCIfCh1FeHBvcnRWQ1NQcm92aWRlclVzZXJzUmVxdWVzdCIxCh5FeHBvcnRWQ1NQcm92aWRlclVzZXJzUmVzcG9uc2USDwoHY29udGVudBgBIAEoDCInChRVcGxvYWRMaWNlbnNlUmVxdWVzdBIPCgdsaWNlbnNlGAEgASgJInsKFUNyZWF0ZVB1cmNoYXNlUmVxdWVzdBIjCgRwbGFuGAEgASgOMhUuYnl0ZWJhc2UudjEuUGxhblR5cGUSLgoIaW50ZXJ2YWwYAiABKA4yHC5ieXRlYmFzZS52MS5CaWxsaW5nSW50ZXJ2YWwSDQoFc2VhdHMYAyABKAUiOwoQUHVyY2hhc2VSZXNwb25zZRITCgtwYXltZW50X3VybBgBIAEoCRISCgpzZXNzaW9uX2lkGAIgASgJIjIKHFZlcmlmeUNoZWNrb3V0U2Vzc2lvblJlcXVlc3QSEgoKc2Vzc2lvbl9pZBgBIAEoCSIvCh1WZXJpZnlDaGVja291dFNlc3Npb25S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4rqMBZiYi5zdWJzY3JpcHRpb24ubWFuYWdlkOowAYLT5JMCLxItL3YxL3N1YnNjcmlwdGlvbi9jaGVja291dFNlc3Npb24ve3Nlc3Npb25faWR9EoIBChFMaXN0UHVyY2hhc2VQbGFucxIlLmJ5dGViYXNlLnYxLkxpc3RQdXJjaGFzZVBsYW5zUmVxdWVzdBomLmJ5dGViYXNlLnYxLkxpc3RQdXJjaGFzZVBsYW5zUmVzcG9uc2UiHoLT5JMCGBIWL3YxL3N1YnNjcmlwdGlvbi9wbGFuc0KuAQoPY29tLmJ5dGViYXNlLnYxQhhTdWJzY3JpcHRpb25TZXJ2aWNlUHJvdG9QAVo0Z2l0aHViLmNvbS9ieXRlYmFzZS9ieXRlYmFzZS9iYWNrZW5kL2dlbmVyYXRlZC1nby92MaICA0JYWKoCC0J5dGViYXNlLlYxygILQnl0ZWJhc2VcVjHiAhdCeXRlYmFzZVxWMVxHUEJNZXRhZGF0YeoCDEJ5dGViYXNlOjpWMWIGcHJvdG8z", [file_google_api_annotations, file_google_api_client, file_google_api_field_behavior, file_google_protobuf_timestamp, file_v1_annotation]);
/**
* Describes the message bytebase.v1.GetSubscriptionRequest.
@@ -30,88 +29,95 @@ export const GetSubscriptionRequestSchema = /*@__PURE__*/
export const ExportVCSProviderUsersRequestSchema = /*@__PURE__*/
messageDesc(file_v1_subscription_service, 1);
+/**
+ * Describes the message bytebase.v1.ExportVCSProviderUsersResponse.
+ * Use `create(ExportVCSProviderUsersResponseSchema)` to create a new message.
+ */
+export const ExportVCSProviderUsersResponseSchema = /*@__PURE__*/
+ messageDesc(file_v1_subscription_service, 2);
+
/**
* Describes the message bytebase.v1.UploadLicenseRequest.
* Use `create(UploadLicenseRequestSchema)` to create a new message.
*/
export const UploadLicenseRequestSchema = /*@__PURE__*/
- messageDesc(file_v1_subscription_service, 2);
+ messageDesc(file_v1_subscription_service, 3);
/**
* Describes the message bytebase.v1.CreatePurchaseRequest.
* Use `create(CreatePurchaseRequestSchema)` to create a new message.
*/
export const CreatePurchaseRequestSchema = /*@__PURE__*/
- messageDesc(file_v1_subscription_service, 3);
+ messageDesc(file_v1_subscription_service, 4);
/**
* Describes the message bytebase.v1.PurchaseResponse.
* Use `create(PurchaseResponseSchema)` to create a new message.
*/
export const PurchaseResponseSchema = /*@__PURE__*/
- messageDesc(file_v1_subscription_service, 4);
+ messageDesc(file_v1_subscription_service, 5);
/**
* Describes the message bytebase.v1.VerifyCheckoutSessionRequest.
* Use `create(VerifyCheckoutSessionRequestSchema)` to create a new message.
*/
export const VerifyCheckoutSessionRequestSchema = /*@__PURE__*/
- messageDesc(file_v1_subscription_service, 5);
+ messageDesc(file_v1_subscription_service, 6);
/**
* Describes the message bytebase.v1.VerifyCheckoutSessionResponse.
* Use `create(VerifyCheckoutSessionResponseSchema)` to create a new message.
*/
export const VerifyCheckoutSessionResponseSchema = /*@__PURE__*/
- messageDesc(file_v1_subscription_service, 6);
+ messageDesc(file_v1_subscription_service, 7);
/**
* Describes the message bytebase.v1.UpdatePurchaseRequest.
* Use `create(UpdatePurchaseRequestSchema)` to create a new message.
*/
export const UpdatePurchaseRequestSchema = /*@__PURE__*/
- messageDesc(file_v1_subscription_service, 7);
+ messageDesc(file_v1_subscription_service, 8);
/**
* Describes the message bytebase.v1.CancelPurchaseRequest.
* Use `create(CancelPurchaseRequestSchema)` to create a new message.
*/
export const CancelPurchaseRequestSchema = /*@__PURE__*/
- messageDesc(file_v1_subscription_service, 8);
+ messageDesc(file_v1_subscription_service, 9);
/**
* Describes the message bytebase.v1.GetPaymentInfoRequest.
* Use `create(GetPaymentInfoRequestSchema)` to create a new message.
*/
export const GetPaymentInfoRequestSchema = /*@__PURE__*/
- messageDesc(file_v1_subscription_service, 9);
+ messageDesc(file_v1_subscription_service, 10);
/**
* Describes the message bytebase.v1.PaymentInfo.
* Use `create(PaymentInfoSchema)` to create a new message.
*/
export const PaymentInfoSchema = /*@__PURE__*/
- messageDesc(file_v1_subscription_service, 10);
+ messageDesc(file_v1_subscription_service, 11);
/**
* Describes the message bytebase.v1.PurchasePlan.
* Use `create(PurchasePlanSchema)` to create a new message.
*/
export const PurchasePlanSchema = /*@__PURE__*/
- messageDesc(file_v1_subscription_service, 11);
+ messageDesc(file_v1_subscription_service, 12);
/**
* Describes the message bytebase.v1.PurchasePlanAdditional.
* Use `create(PurchasePlanAdditionalSchema)` to create a new message.
*/
export const PurchasePlanAdditionalSchema = /*@__PURE__*/
- messageDesc(file_v1_subscription_service, 12);
+ messageDesc(file_v1_subscription_service, 13);
/**
* Describes the enum bytebase.v1.PurchasePlanAdditional.Type.
*/
export const PurchasePlanAdditional_TypeSchema = /*@__PURE__*/
- enumDesc(file_v1_subscription_service, 12, 0);
+ enumDesc(file_v1_subscription_service, 13, 0);
/**
* @generated from enum bytebase.v1.PurchasePlanAdditional.Type
@@ -124,20 +130,20 @@ export const PurchasePlanAdditional_Type = /*@__PURE__*/
* Use `create(PurchaseBillingMethodSchema)` to create a new message.
*/
export const PurchaseBillingMethodSchema = /*@__PURE__*/
- messageDesc(file_v1_subscription_service, 13);
+ messageDesc(file_v1_subscription_service, 14);
/**
* Describes the message bytebase.v1.PurchaseDiscount.
* Use `create(PurchaseDiscountSchema)` to create a new message.
*/
export const PurchaseDiscountSchema = /*@__PURE__*/
- messageDesc(file_v1_subscription_service, 14);
+ messageDesc(file_v1_subscription_service, 15);
/**
* Describes the enum bytebase.v1.PurchaseDiscount.Type.
*/
export const PurchaseDiscount_TypeSchema = /*@__PURE__*/
- enumDesc(file_v1_subscription_service, 14, 0);
+ enumDesc(file_v1_subscription_service, 15, 0);
/**
* @generated from enum bytebase.v1.PurchaseDiscount.Type
@@ -150,35 +156,35 @@ export const PurchaseDiscount_Type = /*@__PURE__*/
* Use `create(ListPurchasePlansRequestSchema)` to create a new message.
*/
export const ListPurchasePlansRequestSchema = /*@__PURE__*/
- messageDesc(file_v1_subscription_service, 15);
+ messageDesc(file_v1_subscription_service, 16);
/**
* Describes the message bytebase.v1.ListPurchasePlansResponse.
* Use `create(ListPurchasePlansResponseSchema)` to create a new message.
*/
export const ListPurchasePlansResponseSchema = /*@__PURE__*/
- messageDesc(file_v1_subscription_service, 16);
+ messageDesc(file_v1_subscription_service, 17);
/**
* Describes the message bytebase.v1.Subscription.
* Use `create(SubscriptionSchema)` to create a new message.
*/
export const SubscriptionSchema = /*@__PURE__*/
- messageDesc(file_v1_subscription_service, 17);
+ messageDesc(file_v1_subscription_service, 18);
/**
* Describes the message bytebase.v1.PlanConfig.
* Use `create(PlanConfigSchema)` to create a new message.
*/
export const PlanConfigSchema = /*@__PURE__*/
- messageDesc(file_v1_subscription_service, 18);
+ messageDesc(file_v1_subscription_service, 19);
/**
* Describes the message bytebase.v1.PlanLimitConfig.
* Use `create(PlanLimitConfigSchema)` to create a new message.
*/
export const PlanLimitConfigSchema = /*@__PURE__*/
- messageDesc(file_v1_subscription_service, 19);
+ messageDesc(file_v1_subscription_service, 20);
/**
* Describes the enum bytebase.v1.BillingInterval.
diff --git a/proto/gen/grpc-doc/openapi.yaml b/proto/gen/grpc-doc/openapi.yaml
index 50d1169c36..10f02b5d3f 100644
--- a/proto/gen/grpc-doc/openapi.yaml
+++ b/proto/gen/grpc-doc/openapi.yaml
@@ -16788,7 +16788,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/google.api.HttpBody'
+ $ref: '#/components/schemas/bytebase.v1.ExportVCSProviderUsersResponse'
/v1/users:
get:
tags:
@@ -22877,6 +22877,15 @@ components:
type: object
title: ExportVCSProviderUsersRequest
additionalProperties: false
+ bytebase.v1.ExportVCSProviderUsersResponse:
+ type: object
+ properties:
+ content:
+ type: string
+ title: content
+ format: byte
+ title: ExportVCSProviderUsersResponse
+ additionalProperties: false
bytebase.v1.ExtensionMetadata:
type: object
properties:
@@ -32884,72 +32893,6 @@ components:
description: Deserialized error detail payload. The 'type' field indicates the schema. This field is for easier debugging and should not be relied upon for application logic.
additionalProperties: true
description: Contains an arbitrary serialized message along with a @type that describes the type of the serialized message, with an additional debug field for ConnectRPC error details.
- google.api.HttpBody:
- type: object
- properties:
- contentType:
- type: string
- title: content_type
- description: The HTTP Content-Type header value specifying the content type of the body.
- data:
- type: string
- title: data
- format: byte
- description: The HTTP request/response body as raw binary.
- extensions:
- type: array
- items:
- $ref: '#/components/schemas/google.protobuf.Any'
- title: extensions
- description: |-
- Application specific response metadata. Must be set in the first response
- for streaming APIs.
- title: HttpBody
- additionalProperties: false
- description: |-
- Message that represents an arbitrary HTTP body. It should only be used for
- payload formats that can't be represented as JSON, such as raw binary or
- an HTML page.
-
-
- This message can be used both in streaming and non-streaming API methods in
- the request as well as the response.
-
- It can be used as a top-level request field, which is convenient if one
- wants to extract parameters from either the URL or HTTP template into the
- request fields and also want access to the raw HTTP body.
-
- Example:
-
- message GetResourceRequest {
- // A unique request id.
- string request_id = 1;
-
- // The raw HTTP body is bound to this field.
- google.api.HttpBody http_body = 2;
-
- }
-
- service ResourceService {
- rpc GetResource(GetResourceRequest)
- returns (google.api.HttpBody);
- rpc UpdateResource(google.api.HttpBody)
- returns (google.protobuf.Empty);
-
- }
-
- Example with streaming methods:
-
- service CaldavService {
- rpc GetCalendar(stream google.api.HttpBody)
- returns (stream google.api.HttpBody);
- rpc UpdateCalendar(stream google.api.HttpBody)
- returns (stream google.api.HttpBody);
-
- }
-
- Use of this type only changes how the request and response bodies are
- handled, all other features will continue to work unchanged.
google.api.expr.v1alpha1.Constant:
type: object
oneOf:
diff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.md
index 2bafc10ab4..e78d1dd02e 100644
--- a/proto/gen/grpc-doc/v1/README.md
+++ b/proto/gen/grpc-doc/v1/README.md
@@ -725,6 +725,7 @@
- [CancelPurchaseRequest](#bytebase-v1-CancelPurchaseRequest)
- [CreatePurchaseRequest](#bytebase-v1-CreatePurchaseRequest)
- [ExportVCSProviderUsersRequest](#bytebase-v1-ExportVCSProviderUsersRequest)
+ - [ExportVCSProviderUsersResponse](#bytebase-v1-ExportVCSProviderUsersResponse)
- [GetPaymentInfoRequest](#bytebase-v1-GetPaymentInfoRequest)
- [GetSubscriptionRequest](#bytebase-v1-GetSubscriptionRequest)
- [ListPurchasePlansRequest](#bytebase-v1-ListPurchasePlansRequest)
@@ -11704,6 +11705,21 @@ SheetService manages SQL scripts and saved queries.
+<a name="bytebase-v1-ExportVCSProviderUsersResponse"></a>
+
+### ExportVCSProviderUsersResponse
+
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| content | [bytes](#bytes) | | |
+
+
+
+
+
+
<a name="bytebase-v1-GetPaymentInfoRequest"></a>
### GetPaymentInfoRequest
@@ -12124,7 +12140,7 @@ SubscriptionService manages enterprise subscriptions and licensing.
| Method Name | Request Type | Response Type | Description |
| ----------- | ------------ | ------------- | ------------|
| GetSubscription | [GetSubscriptionRequest](#bytebase-v1-GetSubscriptionRequest) | [Subscription](#bytebase-v1-Subscription) | GetSubscription returns the current subscription. If there is no license, we will return a free plan subscription without expiration time. If there is expired license, we will return a free plan subscription with the expiration time of the expired license. |
-| ExportVCSProviderUsers | [ExportVCSProviderUsersRequest](#bytebase-v1-ExportVCSProviderUsersRequest) | [.google.api.HttpBody](#google-api-HttpBody) | Exports active VCS users as CSV. |
+| ExportVCSProviderUsers | [ExportVCSProviderUsersRequest](#bytebase-v1-ExportVCSProviderUsersRequest) | [ExportVCSProviderUsersResponse](#bytebase-v1-ExportVCSProviderUsersResponse) | Exports active VCS users as CSV. |
| UploadLicense | [UploadLicenseRequest](#bytebase-v1-UploadLicenseRequest) | [Subscription](#bytebase-v1-Subscription) | Uploads an enterprise license (self-hosted only). |
| CreatePurchase | [CreatePurchaseRequest](#bytebase-v1-CreatePurchaseRequest) | [PurchaseResponse](#bytebase-v1-PurchaseResponse) | CreatePurchase creates a new subscription purchase (SaaS only). Returns a Stripe Checkout URL for the user to complete payment. |
| UpdatePurchase | [UpdatePurchaseRequest](#bytebase-v1-UpdatePurchaseRequest) | [PurchaseResponse](#bytebase-v1-PurchaseResponse) | UpdatePurchase updates an existing subscription (SaaS only). May return a Stripe Checkout URL if payment method change is needed. |
diff --git a/proto/gen/grpc-doc/v1/index.html b/proto/gen/grpc-doc/v1/index.html
index 6114f4dbcd..717898dba2 100644
--- a/proto/gen/grpc-doc/v1/index.html
+++ b/proto/gen/grpc-doc/v1/index.html
@@ -2937,6 +2937,10 @@
<a href="#bytebase.v1.ExportVCSProviderUsersRequest"><span class="badge">M</span>ExportVCSProviderUsersRequest</a>
</li>
+ <li>
+ <a href="#bytebase.v1.ExportVCSProviderUsersResponse"><span class="badge">M</span>ExportVCSProviderUsersResponse</a>
+ </li>
+
<li>
<a href="#bytebase.v1.GetPaymentInfoRequest"><span class="badge">M</span>GetPaymentInfoRequest</a>
</li>
@@ -33334,6 +33338,30 @@ Required. </p></td>
+ <h3 id="bytebase.v1.ExportVCSProviderUsersResponse">ExportVCSProviderUsersResponse</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>content</td>
+ <td><a href="#bytes">bytes</a></td>
+ <td></td>
+ <td><p> </p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+
+
+
+
<h3 id="bytebase.v1.GetPaymentInfoRequest">GetPaymentInfoRequest</h3>
<p></p>
@@ -34501,7 +34529,7 @@ If there is expired license, we will return a free plan subscription with the ex
<tr>
<td>ExportVCSProviderUsers</td>
<td><a href="#bytebase.v1.ExportVCSProviderUsersRequest">ExportVCSProviderUsersRequest</a></td>
- <td><a href="#google.api.HttpBody">.google.api.HttpBody</a></td>
+ <td><a href="#bytebase.v1.ExportVCSProviderUsersResponse">ExportVCSProviderUsersResponse</a></td>
<td><p>Exports active VCS users as CSV.</p></td>
</tr>
diff --git a/proto/v1/v1/audit_log_service.proto b/proto/v1/v1/audit_log_service.proto
index 69c5c5af35..2d01f433de 100644
--- a/proto/v1/v1/audit_log_service.proto
+++ b/proto/v1/v1/audit_log_service.proto
@@ -45,6 +45,7 @@ service AuditLogService {
};
option (bytebase.v1.permission) = "bb.auditLogs.export";
option (bytebase.v1.auth_method) = IAM;
+ option (bytebase.v1.audit) = true;
}
}
diff --git a/proto/v1/v1/project_service.proto b/proto/v1/v1/project_service.proto
index 685eb032c2..ce8d1d92e9 100644
--- a/proto/v1/v1/project_service.proto
+++ b/proto/v1/v1/project_service.proto
@@ -146,6 +146,7 @@ service ProjectService {
};
option (bytebase.v1.permission) = "bb.projects.update";
option (bytebase.v1.auth_method) = IAM;
+ option (bytebase.v1.audit) = true;
}
// Updates an existing webhook configuration.
@@ -158,6 +159,7 @@ service ProjectService {
option (google.api.method_signature) = "webhook,update_mask";
option (bytebase.v1.permission) = "bb.projects.update";
option (bytebase.v1.auth_method) = IAM;
+ option (bytebase.v1.audit) = true;
}
// Removes a webhook from a project.
@@ -169,6 +171,7 @@ service ProjectService {
};
option (bytebase.v1.permission) = "bb.projects.update";
option (bytebase.v1.auth_method) = IAM;
+ option (bytebase.v1.audit) = true;
}
// Tests a webhook by sending a test notification.
diff --git a/proto/v1/v1/subscription_service.proto b/proto/v1/v1/subscription_service.proto
index b7e7b14b08..9054fe5a0d 100644
--- a/proto/v1/v1/subscription_service.proto
+++ b/proto/v1/v1/subscription_service.proto
@@ -5,7 +5,6 @@ package bytebase.v1;
import "google/api/annotations.proto";
import "google/api/client.proto";
import "google/api/field_behavior.proto";
-import "google/api/httpbody.proto";
import "google/protobuf/timestamp.proto";
import "v1/annotation.proto";
@@ -22,10 +21,11 @@ service SubscriptionService {
}
// Exports active VCS users as CSV.
- rpc ExportVCSProviderUsers(ExportVCSProviderUsersRequest) returns (google.api.HttpBody) {
+ rpc ExportVCSProviderUsers(ExportVCSProviderUsersRequest) returns (ExportVCSProviderUsersResponse) {
option (google.api.http) = {get: "/v1/subscription:vcsProviderUsersExport"};
option (bytebase.v1.permission) = "bb.subscription.manage";
option (bytebase.v1.auth_method) = IAM;
+ option (bytebase.v1.audit) = true;
}
// Uploads an enterprise license (self-hosted only).
@@ -36,6 +36,7 @@ service SubscriptionService {
};
option (bytebase.v1.permission) = "bb.subscription.manage";
option (bytebase.v1.auth_method) = IAM;
+ option (bytebase.v1.audit) = true;
}
// CreatePurchase creates a new subscription purchase (SaaS only).
@@ -47,6 +48,7 @@ service SubscriptionService {
};
option (bytebase.v1.permission) = "bb.subscription.manage";
option (bytebase.v1.auth_method) = IAM;
+ option (bytebase.v1.audit) = true;
}
// UpdatePurchase updates an existing subscription (SaaS only).
@@ -58,6 +60,7 @@ service SubscriptionService {
};
option (bytebase.v1.permission) = "bb.subscription.manage";
option (bytebase.v1.auth_method) = IAM;
+ option (bytebase.v1.audit) = true;
}
// CancelPurchase cancels an active subscription (SaaS only).
@@ -68,6 +71,7 @@ service SubscriptionService {
};
option (bytebase.v1.permission) = "bb.subscription.manage";
option (bytebase.v1.auth_method) = IAM;
+ option (bytebase.v1.audit) = true;
}
// GetPaymentInfo returns payment details for the current subscription (SaaS only).
@@ -94,6 +98,10 @@ message GetSubscriptionRequest {}
message ExportVCSProviderUsersRequest {}
+message ExportVCSProviderUsersResponse {
+ bytes content = 1;
+}
+
message UploadLicenseRequest {
string license = 1;
}