Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: update workspace id (#5591)
ecmadaob6eb196f1eaa
diff --git a/backend/api/v1/actuator_service.go b/backend/api/v1/actuator_service.goindex 6fabaab92a..0ed467445d 100644--- a/backend/api/v1/actuator_service.go+++ b/backend/api/v1/actuator_service.go@@ -52,6 +52,11 @@ func (s *ActuatorService) getServerInfo(ctx context.Context) (*v1pb.ActuatorInforeturn nil, status.Errorf(codes.Internal, "failed to find workspace setting: %v", err)}+ workspaceID, err := s.store.GetWorkspaceID(ctx)+ if err != nil {+ return nil, status.Errorf(codes.Internal, err.Error())+ }+serverInfo := v1pb.ActuatorInfo{Version: s.profile.Version,GitCommit: s.profile.GitCommit,@@ -63,6 +68,7 @@ func (s *ActuatorService) getServerInfo(ctx context.Context) (*v1pb.ActuatorInfoDisallowSignup: setting.DisallowSignup,Require_2Fa: setting.Require_2Fa,LastActiveTime: timestamppb.New(time.Unix(s.profile.LastActiveTs, 0)),+ WorkspaceId: workspaceID,}return &serverInfo, nildiff --git a/backend/api/v1/subscription_service.go b/backend/api/v1/subscription_service.goindex e4bfa67ac7..e0bea66a42 100644--- a/backend/api/v1/subscription_service.go+++ b/backend/api/v1/subscription_service.go@@ -24,7 +24,6 @@ import (// SubscriptionService implements the subscription service.type SubscriptionService struct {v1pb.UnimplementedSubscriptionServiceServer- workspaceID stringstore *store.Storeprofile *config.ProfilemetricReporter *metricreport.Reporter@@ -33,13 +32,11 @@ type SubscriptionService struct {// NewSubscriptionService creates a new SubscriptionService.func NewSubscriptionService(- workspaceID string,store *store.Store,profile *config.Profile,metricReporter *metricreport.Reporter,licenseService enterpriseAPI.LicenseService) *SubscriptionService {return &SubscriptionService{- workspaceID: workspaceID,store: store,profile: profile,metricReporter: metricReporter,@@ -84,6 +81,11 @@ func (s *SubscriptionService) TrialSubscription(ctx context.Context, request *v1planType = api.ENTERPRISE}+ workspaceID, err := s.store.GetWorkspaceID(ctx)+ if err != nil {+ return nil, status.Errorf(codes.Internal, err.Error())+ }+license := &enterpriseAPI.License{InstanceCount: int(request.Trial.InstanceCount),ExpiresTs: time.Now().AddDate(0, 0, int(request.Trial.Days)).Unix(),@@ -91,9 +93,9 @@ func (s *SubscriptionService) TrialSubscription(ctx context.Context, request *v1Plan: planType,// the subject format for license should be {org id in hub}.{subscription id in hub}// as we just need to simply generate the trialing license in console, we can use the workspace id instead.- Subject: fmt.Sprintf("%s.%s", s.workspaceID, ""),+ Subject: fmt.Sprintf("%s.%s", workspaceID, ""),Trialing: true,- OrgName: s.workspaceID,+ OrgName: workspaceID,}subscription := s.licenseService.LoadSubscription(ctx)diff --git a/backend/runner/metricreport/reporter.go b/backend/runner/metricreport/reporter.goindex 1607a8ead1..dd4de84182 100644--- a/backend/runner/metricreport/reporter.go+++ b/backend/runner/metricreport/reporter.go@@ -30,6 +30,8 @@ const (identifyTraitForOrgName = "org_name"// identifyTraitForMode is the trait key for Bytebase service mode.identifyTraitForMode = "mode"+ // identifyTraitForLastActiveTime is the trait key for Bytebase last active time.+ identifyTraitForLastActiveTime = "last_active"// identifyTraitForVersion is the trait key for Bytebase version.identifyTraitForVersion = "version"// bytebaseServiceModeSaaS is the mode for Bytebase SaaS.@@ -41,17 +43,14 @@ const (// Reporter is the metric reporter.type Reporter struct {licenseService enterpriseAPI.LicenseService- // Version is the bytebase's version- version string- // mode is the Bytebase service mode, could be self-host or saas.- mode string- reporter metric.Reporter- collectors map[string]metric.Collector- store *store.Store+ profile *config.Profile+ reporter metric.Reporter+ collectors map[string]metric.Collector+ store *store.Store}// NewReporter creates a new metric scheduler.-func NewReporter(store *store.Store, licenseService enterpriseAPI.LicenseService, profile config.Profile, enabled bool) *Reporter {+func NewReporter(store *store.Store, licenseService enterpriseAPI.LicenseService, profile *config.Profile, enabled bool) *Reporter {var r metric.Reporterif enabled {r = segment.NewReporter(profile.MetricConnectionKey)@@ -59,15 +58,9 @@ func NewReporter(store *store.Store, licenseService enterpriseAPI.LicenseServicer = segment.NewMockReporter()}- mode := bytebaseServiceModeSelfhost- if profile.SaaS {- mode = bytebaseServiceModeSaaS- }-return &Reporter{licenseService: licenseService,- version: profile.Version,- mode: mode,+ profile: profile,reporter: r,collectors: make(map[string]metric.Collector),store: store,@@ -138,20 +131,6 @@ func (m *Reporter) Register(metricName metric.Name, collector metric.Collector)m.collectors[string(metricName)] = collector}-func (m *Reporter) getWorkspaceID(ctx context.Context) (string, error) {- settingName := api.SettingWorkspaceID- setting, err := m.store.GetSettingV2(ctx, &store.FindSettingMessage{- Name: &settingName,- })- if err != nil {- return "", errors.Wrapf(err, "failed to get setting %s", settingName)- }- if setting == nil {- return "", errors.Errorf("cannot find setting %v", settingName)- }- return setting.Value, nil-}-func (m *Reporter) reportMetric(id string, metric *metric.Metric) {if err := m.reporter.Report(id, metric); err != nil {log.Error(@@ -164,7 +143,7 @@ func (m *Reporter) reportMetric(id string, metric *metric.Metric) {// Identify will identify the workspace and update the subscription plan.func (m *Reporter) identify(ctx context.Context) (string, error) {- workspaceID, err := m.getWorkspaceID(ctx)+ workspaceID, err := m.store.GetWorkspaceID(ctx)if err != nil {return "", err}@@ -184,16 +163,22 @@ func (m *Reporter) identify(ctx context.Context) (string, error) {name = user.Name}+ mode := bytebaseServiceModeSelfhost+ if m.profile.SaaS {+ mode = bytebaseServiceModeSaaS+ }+if err := m.reporter.Identify(&metric.Identifier{ID: workspaceID,Email: email,Name: name,Labels: map[string]string{- identifyTraitForPlan: plan,- identifyTraitForVersion: m.version,- identifyTraitForOrgID: orgID,- identifyTraitForOrgName: orgName,- identifyTraitForMode: m.mode,+ identifyTraitForPlan: plan,+ identifyTraitForVersion: m.profile.Version,+ identifyTraitForOrgID: orgID,+ identifyTraitForOrgName: orgName,+ identifyTraitForMode: mode,+ identifyTraitForLastActiveTime: time.Unix(m.profile.LastActiveTs, 0).String(),},}); err != nil {return workspaceID, err@@ -204,7 +189,7 @@ func (m *Reporter) identify(ctx context.Context) (string, error) {// Report will report a metric.func (m *Reporter) Report(ctx context.Context, metric *metric.Metric) {- workspaceID, err := m.getWorkspaceID(ctx)+ workspaceID, err := m.store.GetWorkspaceID(ctx)if err != nil {log.Error("failed to find the workspace id", zap.Error(err))returndiff --git a/backend/server/project.go b/backend/server/project.goindex 9e64d5d68b..000ab4bfdf 100644--- a/backend/server/project.go+++ b/backend/server/project.go@@ -324,7 +324,12 @@ func (s *Server) registerProjectRoutes(g *echo.Group) {return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Bytebase must start with --external-url to configure GitOps workflow, docs: %s", common.ExternalURLPlaceholder))}- repositoryCreate.WebhookEndpointID = fmt.Sprintf("%s-%d", s.workspaceID, time.Now().Unix())+ workspaceID, err := s.store.GetWorkspaceID(ctx)+ if err != nil {+ return echo.NewHTTPError(http.StatusInternalServerError, err.Error())+ }++ repositoryCreate.WebhookEndpointID = fmt.Sprintf("%s-%d", workspaceID, time.Now().Unix())secretToken, err := common.RandomString(gitlab.SecretTokenLength)if err != nil {return echo.NewHTTPError(http.StatusInternalServerError, "Failed to generate random secret token for VCS").SetInternal(err)diff --git a/backend/server/server.go b/backend/server/server.goindex b1829a9267..b7869904a0 100644--- a/backend/server/server.go+++ b/backend/server/server.go@@ -163,7 +163,6 @@ type Server struct {dbFactory *dbfactory.DBFactorystartedTs int64secret string- workspaceID stringerrorRecordRing api.ErrorRecordRing// MySQL utility binaries@@ -327,7 +326,6 @@ func NewServer(ctx context.Context, profile config.Profile) (*Server, error) {return nil, errors.Wrap(err, "failed to init config")}s.secret = config.secret- s.workspaceID = config.workspaceIDs.ActivityManager = activity.NewManager(storeInstance)s.dbFactory = dbfactory.New(s.mysqlBinDir, s.mongoBinDir, s.pgBinDir, profile.DataDir, s.secret)@@ -405,7 +403,7 @@ func NewServer(ctx context.Context, profile config.Profile) (*Server, error) {s.s3Client = s3Client}- s.MetricReporter = metricreport.NewReporter(s.store, s.licenseService, s.profile, false)+ s.MetricReporter = metricreport.NewReporter(s.store, s.licenseService, &s.profile, false)if !profile.Readonly {s.SchemaSyncer = schemasync.NewSyncer(storeInstance, s.dbFactory, s.stateCfg, profile)s.SlowQuerySyncer = slowquerysync.NewSyncer(storeInstance, s.dbFactory, s.stateCfg, profile)@@ -550,7 +548,6 @@ func NewServer(ctx context.Context, profile config.Profile) (*Server, error) {}))v1pb.RegisterActuatorServiceServer(s.grpcServer, v1.NewActuatorService(s.store, &s.profile))v1pb.RegisterSubscriptionServiceServer(s.grpcServer, v1.NewSubscriptionService(- s.workspaceID,s.store,&s.profile,s.MetricReporter,@@ -669,7 +666,7 @@ func (s *Server) registerOpenAPIRoutes(e *echo.Echo, ce *casbin.Enforcer, prof c// initMetricReporter will initial the metric scheduler.func (s *Server) initMetricReporter() {- metricReporter := metricreport.NewReporter(s.store, s.licenseService, s.profile, s.profile.EnableMetric)+ metricReporter := metricreport.NewReporter(s.store, s.licenseService, &s.profile, s.profile.EnableMetric)metricReporter.Register(metric.InstanceCountMetricName, metricCollector.NewInstanceCountCollector(s.store))metricReporter.Register(metric.IssueCountMetricName, metricCollector.NewIssueCountCollector(s.store))metricReporter.Register(metric.ProjectCountMetricName, metricCollector.NewProjectCountCollector(s.store))@@ -926,11 +923,6 @@ func (s *Server) GetEcho() *echo.Echo {return s.e}-// GetWorkspaceID returns the workspace id.-func (s *Server) GetWorkspaceID() string {- return s.workspaceID-}-// getSampleSQLReviewPolicy returns a sample SQL review policy for preparing onboardign data.func getSampleSQLReviewPolicy() *advisor.SQLReviewPolicy {policy := &advisor.SQLReviewPolicy{diff --git a/backend/server/webhook.go b/backend/server/webhook.goindex 30c6916ce8..2a91b624e7 100644--- a/backend/server/webhook.go+++ b/backend/server/webhook.go@@ -338,6 +338,11 @@ func (s *Server) registerWebhookRoutes(g *echo.Group) {return echo.NewHTTPError(http.StatusBadRequest, "Malformed SQL review request").SetInternal(err)}+ workspaceID, err := s.store.GetWorkspaceID(ctx)+ if err != nil {+ return echo.NewHTTPError(http.StatusInternalServerError, err.Error())+ }+filter := func(repo *api.Repository) (bool, error) {if !repo.EnableSQLReviewCI {log.Debug("Skip repository as the SQL review CI is not enabled.",@@ -357,7 +362,7 @@ func (s *Server) registerWebhookRoutes(g *echo.Group) {token := c.Request().Header.Get("X-SQL-Review-Token")// We will use workspace id as token in integration test for skipping the check.- if token == s.workspaceID {+ if token == workspaceID {return true, nil}diff --git a/backend/store/setting.go b/backend/store/setting.goindex fdaae88f5e..50606c1b27 100644--- a/backend/store/setting.go+++ b/backend/store/setting.go@@ -63,6 +63,21 @@ func (s *Store) GetWorkspaceGeneralSetting(ctx context.Context) (*storepb.Workspreturn payload, nil}+// GetWorkspaceID finds the workspace id in setting bb.workspace.id.+func (s *Store) GetWorkspaceID(ctx context.Context) (string, error) {+ settingName := api.SettingWorkspaceID+ setting, err := s.GetSettingV2(ctx, &FindSettingMessage{+ Name: &settingName,+ })+ if err != nil {+ return "", errors.Wrapf(err, "failed to get setting %s", settingName)+ }+ if setting == nil {+ return "", errors.Errorf("cannot find setting %v", settingName)+ }+ return setting.Value, nil+}+// GetWorkspaceApprovalSetting gets the workspace approval setting.func (s *Store) GetWorkspaceApprovalSetting(ctx context.Context) (*storepb.WorkspaceApprovalSetting, error) {settingName := api.SettingWorkspaceApprovaldiff --git a/backend/tests/schema_update_test.go b/backend/tests/schema_update_test.goindex 96f3061e35..9a096d010f 100644--- a/backend/tests/schema_update_test.go+++ b/backend/tests/schema_update_test.go@@ -33,6 +33,7 @@ import ("github.com/bytebase/bytebase/backend/resources/postgres""github.com/bytebase/bytebase/backend/tests/fake"storepb "github.com/bytebase/bytebase/proto/generated-go/store"+ v1pb "github.com/bytebase/bytebase/proto/generated-go/v1")func TestSchemaAndDataUpdate(t *testing.T) {@@ -1904,6 +1905,22 @@ func TestBranchNameInVCSSetupAndUpdate(t *testing.T) {}}+func getWorkspaceID(ctl *controller) (string, error) {+ body, err := ctl.getOpenAPI("/actuator/info", nil)+ if err != nil {+ return "", err+ }+ bs, err := io.ReadAll(body)+ if err != nil {+ return "", err+ }+ actuatorInfo := new(v1pb.ActuatorInfo)+ if err = protojson.Unmarshal(bs, actuatorInfo); err != nil {+ return "", errors.Wrap(err, "fail to unmarshal get actuator response")+ }+ return actuatorInfo.WorkspaceId, nil+}+// postVCSSQLReview will create the VCS SQL review and get the response.func postVCSSQLReview(ctl *controller, repo *api.Repository, request *api.VCSSQLReviewRequest) (*api.VCSSQLReviewResult, error) {url := fmt.Sprintf("%s/hook/sql-review/%s", ctl.rootURL, repo.WebhookEndpointID)@@ -1916,7 +1933,12 @@ func postVCSSQLReview(ctl *controller, repo *api.Repository, request *api.VCSSQLif err != nil {return nil, errors.Wrapf(err, "failed to create a new POST request to %q", url)}- req.Header.Set("X-SQL-Review-Token", ctl.server.GetWorkspaceID())++ workspaceID, err := getWorkspaceID(ctl)+ if err != nil {+ return nil, err+ }+ req.Header.Set("X-SQL-Review-Token", workspaceID)client := &http.Client{}resp, err := client.Do(req)diff --git a/frontend/src/types/proto/v1/actuator_service.ts b/frontend/src/types/proto/v1/actuator_service.tsindex 02637382ce..da5c2b6b7a 100644--- a/frontend/src/types/proto/v1/actuator_service.ts+++ b/frontend/src/types/proto/v1/actuator_service.ts@@ -41,6 +41,8 @@ export interface ActuatorInfo {lastActiveTime?: Date;/** require_2fa is the flag to require 2FA for all users. */require2fa: boolean;+ /** workspace_id is the identifier for the workspace. */+ workspaceId: string;}function createBaseGetActuatorInfoRequest(): GetActuatorInfoRequest {@@ -145,6 +147,7 @@ function createBaseActuatorInfo(): ActuatorInfo {disallowSignup: false,lastActiveTime: undefined,require2fa: false,+ workspaceId: "",};}@@ -186,6 +189,9 @@ export const ActuatorInfo = {if (message.require2fa === true) {writer.uint32(96).bool(message.require2fa);}+ if (message.workspaceId !== "") {+ writer.uint32(106).string(message.workspaceId);+ }return writer;},@@ -280,6 +286,13 @@ export const ActuatorInfo = {message.require2fa = reader.bool();continue;+ case 13:+ if (tag != 106) {+ break;+ }++ message.workspaceId = reader.string();+ continue;}if ((tag & 7) == 4 || tag == 0) {break;@@ -303,6 +316,7 @@ export const ActuatorInfo = {disallowSignup: isSet(object.disallowSignup) ? Boolean(object.disallowSignup) : false,lastActiveTime: isSet(object.lastActiveTime) ? fromJsonTimestamp(object.lastActiveTime) : undefined,require2fa: isSet(object.require2fa) ? Boolean(object.require2fa) : false,+ workspaceId: isSet(object.workspaceId) ? String(object.workspaceId) : "",};},@@ -320,6 +334,7 @@ export const ActuatorInfo = {message.disallowSignup !== undefined && (obj.disallowSignup = message.disallowSignup);message.lastActiveTime !== undefined && (obj.lastActiveTime = message.lastActiveTime.toISOString());message.require2fa !== undefined && (obj.require2fa = message.require2fa);+ message.workspaceId !== undefined && (obj.workspaceId = message.workspaceId);return obj;},@@ -341,6 +356,7 @@ export const ActuatorInfo = {message.disallowSignup = object.disallowSignup ?? false;message.lastActiveTime = object.lastActiveTime ?? undefined;message.require2fa = object.require2fa ?? false;+ message.workspaceId = object.workspaceId ?? "";return message;},};diff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.mdindex 2d7e0f38f6..c47bbd6cc7 100644--- a/proto/gen/grpc-doc/v1/README.md+++ b/proto/gen/grpc-doc/v1/README.md@@ -361,6 +361,7 @@ Actuator concept is similar to the Spring Boot Actuator.| disallow_signup | [bool](#bool) | | disallow_signup is the flag to disable self-service signup. || last_active_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | last_active_time is the service last active time in UTC Time Format, any API calls will refresh this value. || require_2fa | [bool](#bool) | | require_2fa is the flag to require 2FA for all users. |+| workspace_id | [string](#string) | | workspace_id is the identifier for the workspace. |diff --git a/proto/generated-go/v1/actuator_service.pb.go b/proto/generated-go/v1/actuator_service.pb.goindex 1d43966eb2..8bfc56cbcb 100644--- a/proto/generated-go/v1/actuator_service.pb.go+++ b/proto/generated-go/v1/actuator_service.pb.go@@ -130,6 +130,8 @@ type ActuatorInfo struct {LastActiveTime *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=last_active_time,json=lastActiveTime,proto3" json:"last_active_time,omitempty"`// require_2fa is the flag to require 2FA for all users.Require_2Fa bool `protobuf:"varint,12,opt,name=require_2fa,json=require2fa,proto3" json:"require_2fa,omitempty"`+ // workspace_id is the identifier for the workspace.+ WorkspaceId string `protobuf:"bytes,13,opt,name=workspace_id,json=workspaceId,proto3" json:"workspace_id,omitempty"`}func (x *ActuatorInfo) Reset() {@@ -248,6 +250,13 @@ func (x *ActuatorInfo) GetRequire_2Fa() bool {return false}+func (x *ActuatorInfo) GetWorkspaceId() string {+ if x != nil {+ return x.WorkspaceId+ }+ return ""+}+var File_v1_actuator_service_proto protoreflect.FileDescriptorvar file_v1_actuator_service_proto_rawDesc = []byte{@@ -265,7 +274,7 @@ var file_v1_actuator_service_proto_rawDesc = []byte{0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x18,0x0a, 0x16, 0x47, 0x65, 0x74, 0x41, 0x63, 0x74, 0x75, 0x61, 0x74, 0x6f, 0x72, 0x49, 0x6e, 0x66,0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x14, 0x0a, 0x12, 0x44, 0x65, 0x6c, 0x65,- 0x74, 0x65, 0x43, 0x61, 0x63, 0x68, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xd5,+ 0x74, 0x65, 0x43, 0x61, 0x63, 0x68, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xfd,0x03, 0x0a, 0x0c, 0x41, 0x63, 0x74, 0x75, 0x61, 0x74, 0x6f, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12,0x1d, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x22,@@ -295,23 +304,26 @@ var file_v1_actuator_service_proto_rawDesc = []byte{0x52, 0x0e, 0x6c, 0x61, 0x73, 0x74, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x54, 0x69, 0x6d, 0x65,0x12, 0x24, 0x0a, 0x0b, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x5f, 0x32, 0x66, 0x61, 0x18,0x0c, 0x20, 0x01, 0x28, 0x08, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x72, 0x65, 0x71, 0x75,- 0x69, 0x72, 0x65, 0x32, 0x66, 0x61, 0x32, 0xe6, 0x01, 0x0a, 0x0f, 0x41, 0x63, 0x74, 0x75, 0x61,- 0x74, 0x6f, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x6f, 0x0a, 0x0f, 0x47, 0x65,- 0x74, 0x41, 0x63, 0x74, 0x75, 0x61, 0x74, 0x6f, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x23, 0x2e,- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x41,- 0x63, 0x74, 0x75, 0x61, 0x74, 0x6f, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65,- 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,- 0x2e, 0x41, 0x63, 0x74, 0x75, 0x61, 0x74, 0x6f, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x1c, 0xda,- 0x41, 0x00, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x13, 0x12, 0x11, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x63,- 0x74, 0x75, 0x61, 0x74, 0x6f, 0x72, 0x2f, 0x69, 0x6e, 0x66, 0x6f, 0x12, 0x62, 0x0a, 0x0b, 0x44,- 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x61, 0x63, 0x68, 0x65, 0x12, 0x1f, 0x2e, 0x62, 0x79, 0x74,- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43,- 0x61, 0x63, 0x68, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f,- 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d,- 0x70, 0x74, 0x79, 0x22, 0x1a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x14, 0x2a, 0x12, 0x2f, 0x76, 0x31,- 0x2f, 0x61, 0x63, 0x74, 0x75, 0x61, 0x74, 0x6f, 0x72, 0x2f, 0x63, 0x61, 0x63, 0x68, 0x65, 0x42,- 0x11, 0x5a, 0x0f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f,- 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,+ 0x69, 0x72, 0x65, 0x32, 0x66, 0x61, 0x12, 0x26, 0x0a, 0x0c, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70,+ 0x61, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41,+ 0x03, 0x52, 0x0b, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x64, 0x32, 0xe6,+ 0x01, 0x0a, 0x0f, 0x41, 0x63, 0x74, 0x75, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69,+ 0x63, 0x65, 0x12, 0x6f, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x41, 0x63, 0x74, 0x75, 0x61, 0x74, 0x6f,+ 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,+ 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x63, 0x74, 0x75, 0x61, 0x74, 0x6f, 0x72, 0x49,+ 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x62, 0x79, 0x74,+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x74, 0x75, 0x61, 0x74, 0x6f,+ 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x1c, 0xda, 0x41, 0x00, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x13,+ 0x12, 0x11, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x63, 0x74, 0x75, 0x61, 0x74, 0x6f, 0x72, 0x2f, 0x69,+ 0x6e, 0x66, 0x6f, 0x12, 0x62, 0x0a, 0x0b, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x61, 0x63,+ 0x68, 0x65, 0x12, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,+ 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x61, 0x63, 0x68, 0x65, 0x52, 0x65, 0x71, 0x75,+ 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,+ 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x1a, 0x82, 0xd3, 0xe4,+ 0x93, 0x02, 0x14, 0x2a, 0x12, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x63, 0x74, 0x75, 0x61, 0x74, 0x6f,+ 0x72, 0x2f, 0x63, 0x61, 0x63, 0x68, 0x65, 0x42, 0x11, 0x5a, 0x0f, 0x67, 0x65, 0x6e, 0x65, 0x72,+ 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,+ 0x6f, 0x33,}var (diff --git a/proto/v1/actuator_service.proto b/proto/v1/actuator_service.protoindex 7530ab0745..0c1bb78330 100644--- a/proto/v1/actuator_service.proto+++ b/proto/v1/actuator_service.proto@@ -65,4 +65,7 @@ message ActuatorInfo {// require_2fa is the flag to require 2FA for all users.bool require_2fa = 12 [(google.api.field_behavior) = OUTPUT_ONLY];++ // workspace_id is the identifier for the workspace.+ string workspace_id = 13 [(google.api.field_behavior) = OUTPUT_ONLY];}