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: cleanup flags (#15543)
Danny Xu34d742251190
diff --git a/backend/api/v1/actuator_service.go b/backend/api/v1/actuator_service.goindex 2992a49620..814e4f7dae 100644--- a/backend/api/v1/actuator_service.go+++ b/backend/api/v1/actuator_service.go@@ -120,9 +120,8 @@ func (s *ActuatorService) getServerInfo(ctx context.Context) (*v1pb.ActuatorInfoserverInfo := v1pb.ActuatorInfo{Version: s.profile.Version,GitCommit: s.profile.GitCommit,- Readonly: s.profile.Readonly,Saas: s.profile.SaaS,- DemoName: s.profile.DemoName,+ Demo: s.profile.Demo,NeedAdminSetup: count == 0,ExternalUrl: setting.ExternalUrl,DisallowSignup: setting.DisallowSignup,diff --git a/backend/bin/server/cmd/profile.go b/backend/bin/server/cmd/profile.goindex 151add21e8..90518d114a 100644--- a/backend/bin/server/cmd/profile.go+++ b/backend/bin/server/cmd/profile.go@@ -18,24 +18,22 @@ func getBaseProfile(dataDir string) *config.Profile {}return &config.Profile{- ExternalURL: flags.externalURL,- Port: flags.port, // Using flags.port as our gRPC server port.- DatastorePort: flags.port + 2, // Using flags.port + 2 as our datastore port.- SampleDatabasePort: sampleDatabasePort,- Readonly: flags.readonly,- SaaS: flags.saas,- EnableJSONLogging: flags.enableJSONLogging,- Debug: flags.debug,- IsDocker: isDocker(),- DataDir: dataDir,- ResourceDir: common.GetResourceDir(dataDir),- DemoName: flags.demoName,- Version: version,- GitCommit: gitcommit,- PgURL: flags.pgURL,- DeployID: uuid.NewString()[:8],- LastActiveTs: time.Now().Unix(),- DevelopmentVersioned: flags.developmentVersioned,+ ExternalURL: flags.externalURL,+ Port: flags.port, // Using flags.port as our gRPC server port.+ DatastorePort: flags.port + 2, // Using flags.port + 2 as our datastore port.+ SampleDatabasePort: sampleDatabasePort,+ SaaS: flags.saas,+ EnableJSONLogging: flags.enableJSONLogging,+ Debug: flags.debug,+ IsDocker: isDocker(),+ DataDir: dataDir,+ ResourceDir: common.GetResourceDir(dataDir),+ Demo: flags.demo,+ Version: version,+ GitCommit: gitcommit,+ PgURL: flags.pgURL,+ DeployID: uuid.NewString()[:8],+ LastActiveTs: time.Now().Unix(),}}diff --git a/backend/bin/server/cmd/profile_dev.go b/backend/bin/server/cmd/profile_dev.goindex bf0e4252a9..36b946c20e 100644--- a/backend/bin/server/cmd/profile_dev.go+++ b/backend/bin/server/cmd/profile_dev.go@@ -3,8 +3,6 @@package cmdimport (- "time"-"github.com/bytebase/bytebase/backend/common""github.com/bytebase/bytebase/backend/component/config")@@ -13,10 +11,6 @@ func activeProfile(dataDir string) *config.Profile {p := getBaseProfile(dataDir)p.RuntimeDebug.Store(p.Debug)p.Mode = common.ReleaseModeDev- p.PgUser = "bb"- p.BackupRunnerInterval = 10 * time.Second- p.AppRunnerInterval = 30 * time.Second- p.EnableMetric = false// Metric collection is disabled in dev mode.// p.MetricConnectionKey = "3zcZLeX3ahvlueEJqNyJysGfVAErsjjT"return pdiff --git a/backend/bin/server/cmd/profile_release.go b/backend/bin/server/cmd/profile_release.goindex 567a7cd93c..4ac03ae698 100644--- a/backend/bin/server/cmd/profile_release.go+++ b/backend/bin/server/cmd/profile_release.go@@ -3,8 +3,6 @@package cmdimport (- "time"-"github.com/bytebase/bytebase/backend/common""github.com/bytebase/bytebase/backend/component/config")@@ -13,11 +11,9 @@ func activeProfile(dataDir string) *config.Profile {p := getBaseProfile(dataDir)p.RuntimeDebug.Store(p.Debug)p.Mode = common.ReleaseModeProd- p.PgUser = "bb"- p.BackupRunnerInterval = 10 * time.Minute- p.AppRunnerInterval = 30 * time.Second// Enable metric if it's not explicitly disabled and it's not running in demo mode.- p.EnableMetric = !flags.disableMetric && p.DemoName == ""- p.MetricConnectionKey = "so9lLwj5zLjH09sxNabsyVNYSsAHn68F"+ f !flags.disableMetric && !p.Demo {+ p.MetricConnectionKey = "so9lLwj5zLjH09sxNabsyVNYSsAHn68F"+ }return p}diff --git a/backend/bin/server/cmd/root.go b/backend/bin/server/cmd/root.goindex 2fa5a93db6..090f7086f9 100644--- a/backend/bin/server/cmd/root.go+++ b/backend/bin/server/cmd/root.go@@ -73,16 +73,13 @@ var (saas bool// output logs in json formatenableJSONLogging bool- // demoName is the name of the demo and should be one of the subpath name in the ../migrator/demo directory.- // empty means no demo.- demoName string- debug bool+ // demo mode.+ demo bool+ debug bool// disableMetric is the flag to disable the metric collector.disableMetric bool// disableSample is the flag to disable the sample instance.disableSample bool-- developmentVersioned bool}rootCmd = &cobra.Command{@@ -118,12 +115,10 @@ func init() {rootCmd.PersistentFlags().BoolVar(&flags.saas, "saas", false, "whether to run in SaaS mode")rootCmd.PersistentFlags().BoolVar(&flags.enableJSONLogging, "enable-json-logging", false, "enable output logs in bytebase in json format")// Must be one of the subpath name in the ../migrator/demo directory- rootCmd.PersistentFlags().StringVar(&flags.demoName, "demo", "", "name of the demo to use. Empty means not running in demo mode.")+ rootCmd.PersistentFlags().BoolVar(&flags.demo, "demo", false, "run in demo mode.")rootCmd.PersistentFlags().BoolVar(&flags.debug, "debug", false, "whether to enable debug level logging")rootCmd.PersistentFlags().BoolVar(&flags.disableMetric, "disable-metric", false, "disable the metric collector")rootCmd.PersistentFlags().BoolVar(&flags.disableSample, "disable-sample", false, "disable the sample instance")-- rootCmd.PersistentFlags().BoolVar(&flags.developmentVersioned, "development-versioned", false, "(WIP) versioned workflow")}// -----------------------------------Command Line Config END--------------------------------------@@ -185,7 +180,7 @@ func start() {// A safety measure to prevent accidentally resetting user's actual data with demo data.// For emebeded mode, we control where data is stored and we put demo data in a separate directory// from the non-demo data.- if flags.demoName != "" && flags.pgURL != "" {+ if flags.demo && flags.pgURL != "" {slog.Error("demo mode is disallowed when storing metadata in external PostgreSQL instance")return}diff --git a/backend/component/config/profile.go b/backend/component/config/profile.goindex 9fefa1160c..a732422a4a 100644--- a/backend/component/config/profile.go+++ b/backend/component/config/profile.go@@ -3,7 +3,6 @@ package configimport ("sync/atomic"- "time""github.com/bytebase/bytebase/backend/common"api "github.com/bytebase/bytebase/backend/legacyapi"@@ -24,14 +23,6 @@ type Profile struct {SampleDatabasePort int// Port is the binding port for the server.Port int- // PgUser is the user we use to connect to bytebase's Postgres database.- // The name of the database storing metadata is the same as pgUser.- PgUser string- // When we are running in readonly mode:- // - The data file will be opened in readonly mode, no applicable migration or seeding will be applied.- // - Requests other than GET will be rejected- // - Any operations involving mutation will not start (e.g. Background schema syncer, task scheduler)- Readonly bool// When we are running in SaaS mode, some features are not allowed to edit by users.SaaS bool// When enabled output logs in json format@@ -44,12 +35,8 @@ type Profile struct {DataDir string// ResourceDir is the directory stores the resources including embedded postgres, mysqlutil, mongoutil and etc.ResourceDir string- // DemoName specifies the demo name. Empty string means no demo.- DemoName string- // AppRunnerInterval is the interval for application runner.- AppRunnerInterval time.Duration- // BackupRunnerInterval is the interval for backup runner.- BackupRunnerInterval time.Duration+ // Demo mode.+ Demo bool// Version is the bytebase's server versionVersion string@@ -59,8 +46,6 @@ type Profile struct {PgURL string// MetricConnectionKey is the connection key for metric.MetricConnectionKey string- // EnableMetric will enable the metric collector.- EnableMetric bool// LastActiveTs is the service last active timestamp, any API calls will refresh this value.LastActiveTs int64@@ -69,9 +54,6 @@ type Profile struct {// can be set in runtimeRuntimeDebug atomic.Bool-- // Development flag, enables the versioned workflow.- DevelopmentVersioned bool}// UseEmbedDB returns whether to use embedDB.diff --git a/backend/demo/demo.go b/backend/demo/demo.goindex 52c06ade66..c2f005a9c5 100644--- a/backend/demo/demo.go+++ b/backend/demo/demo.go@@ -4,7 +4,6 @@ import ("context""database/sql""embed"- "fmt""io/fs""log/slog")@@ -12,18 +11,15 @@ import (//go:embed datavar demoFS embed.FS-// LoadDemoDataIfNeeded loads the demo data if specified.-func LoadDemoDataIfNeeded(ctx context.Context, pgURL, demo string) error {- if demo == "" {- slog.Debug("Skip setting up demo data. Demo not specified.")- return nil- }- slog.Info(fmt.Sprintf("Setting up demo %q...", demo))+// LoadDemoData loads the demo data.+func LoadDemoData(ctx context.Context, pgURL string) error {+ slog.Info("Setting up demo...")db, err := sql.Open("pgx", pgURL)if err != nil {return err- } // This query in the dump.sql will poison the connection.+ }+ // This query in the dump.sql will poison the connection.// SELECT pg_catalog.set_config('search_path', '', false);var ok boolif err := db.QueryRowContext(ctx,diff --git a/backend/resources/postgres/meta_instance.go b/backend/resources/postgres/meta_instance.goindex f0f3ba6948..465bf01e48 100644--- a/backend/resources/postgres/meta_instance.go+++ b/backend/resources/postgres/meta_instance.go@@ -5,18 +5,15 @@ import ("database/sql""fmt""log/slog"- "path""github.com/bytebase/bytebase/backend/common")// StartMetadataInstance starts the metadata instance.-func StartMetadataInstance(ctx context.Context, dataDir, pgBinDir, pgUser, demoName string, port int, mode common.ReleaseMode) (func(), error) {- pgDataDir := getPostgresDataDir(dataDir, demoName)-+func StartMetadataInstance(ctx context.Context, pgBinDir, pgDataDir string, port int, mode common.ReleaseMode) (func(), error) {slog.Info("-----Embedded Postgres BEGIN-----")slog.Info(fmt.Sprintf("Start embedded Postgres datastorePort=%d pgDataDir=%s", port, pgDataDir))- if err := initDB(pgBinDir, pgDataDir, pgUser); err != nil {+ if err := initDB(pgBinDir, pgDataDir, "bb"); err != nil {return nil, err}serverLog := mode == common.ReleaseModeDev@@ -24,18 +21,18 @@ func StartMetadataInstance(ctx context.Context, dataDir, pgBinDir, pgUser, demoNreturn nil, err}slog.Info("-----Embedded Postgres END-----")- db, err := sql.Open("pgx", fmt.Sprintf("host=%s port=%d user=%s database=postgres", common.GetPostgresSocketDir(), port, pgUser))+ db, err := sql.Open("pgx", fmt.Sprintf("host=%s port=%d user=bb database=postgres", common.GetPostgresSocketDir(), port))if err != nil {return nil, err}defer db.Close()var ok bool- if err := db.QueryRowContext(ctx, "SELECT EXISTS (SELECT 1 FROM pg_database WHERE datname = $1)", pgUser).Scan(&ok); err != nil {+ if err := db.QueryRowContext(ctx, "SELECT EXISTS (SELECT 1 FROM pg_database WHERE datname = bb)").Scan(&ok); err != nil {return nil, err}if !ok {- if _, err := db.ExecContext(ctx, fmt.Sprintf("CREATE DATABASE %s", pgUser)); err != nil {+ if _, err := db.ExecContext(ctx, "CREATE DATABASE bb"); err != nil {slog.Debug("database should already exists")}}@@ -46,14 +43,3 @@ func StartMetadataInstance(ctx context.Context, dataDir, pgBinDir, pgUser, demoN}}, nil}--// getPostgresDataDir returns the postgres data directory of Bytebase.-func getPostgresDataDir(dataDir string, demoName string) string {- // If demo is specified, we will use demo specific directory to store the demo data. Because- // we reset the demo data when starting Bytebase and this can prevent accidentally removing the- // production data.- if demoName != "" {- return path.Join(dataDir, "pgdata-demo", demoName)- }- return path.Join(dataDir, "pgdata")-}diff --git a/backend/runner/metricreport/reporter.go b/backend/runner/metricreport/reporter.goindex 1e1e19018c..768ab9d148 100644--- a/backend/runner/metricreport/reporter.go+++ b/backend/runner/metricreport/reporter.go@@ -55,9 +55,9 @@ type Reporter struct {}// NewReporter creates a new metric scheduler.-func NewReporter(store *store.Store, licenseService enterprise.LicenseService, profile *config.Profile, enabled bool) *Reporter {+func NewReporter(store *store.Store, licenseService enterprise.LicenseService, profile *config.Profile) *Reporter {var r metric.Reporter- if enabled {+ if profile.MetricConnectionKey != "" {r = segment.NewReporter(profile.MetricConnectionKey)} else {r = segment.NewMockReporter()diff --git a/backend/runner/schemasync/syncer.go b/backend/runner/schemasync/syncer.goindex 4243613c4e..f9a00c4f67 100644--- a/backend/runner/schemasync/syncer.go+++ b/backend/runner/schemasync/syncer.go@@ -19,10 +19,8 @@ import ("github.com/bytebase/bytebase/backend/common""github.com/bytebase/bytebase/backend/common/log"- "github.com/bytebase/bytebase/backend/component/config""github.com/bytebase/bytebase/backend/component/dbfactory""github.com/bytebase/bytebase/backend/component/state"- enterprise "github.com/bytebase/bytebase/backend/enterprise/api"api "github.com/bytebase/bytebase/backend/legacyapi""github.com/bytebase/bytebase/backend/plugin/db""github.com/bytebase/bytebase/backend/store"@@ -43,13 +41,11 @@ const ()// NewSyncer creates a schema syncer.-func NewSyncer(stores *store.Store, dbFactory *dbfactory.DBFactory, stateCfg *state.State, profile *config.Profile, licenseService enterprise.LicenseService) *Syncer {+func NewSyncer(stores *store.Store, dbFactory *dbfactory.DBFactory, stateCfg *state.State) *Syncer {return &Syncer{- store: stores,- dbFactory: dbFactory,- stateCfg: stateCfg,- profile: profile,- licenseService: licenseService,+ store: stores,+ dbFactory: dbFactory,+ stateCfg: stateCfg,}}@@ -60,8 +56,6 @@ type Syncer struct {store *store.StoredbFactory *dbfactory.DBFactorystateCfg *state.State- profile *config.Profile- licenseService enterprise.LicenseServicedatabaseSyncMap sync.Map // map[string]*store.DatabaseMessage}@@ -280,10 +274,6 @@ func (s *Syncer) GetInstanceMeta(ctx context.Context, instance *store.InstanceMe// SyncInstance syncs the schema for all databases in an instance.func (s *Syncer) SyncInstance(ctx context.Context, instance *store.InstanceMessage) (*store.InstanceMessage, []*storepb.DatabaseSchemaMetadata, []*store.DatabaseMessage, error) {- if s.profile.Readonly {- return nil, nil, nil, nil- }-instanceMeta, err := s.GetInstanceMeta(ctx, instance)if err != nil {return nil, nil, nil, err@@ -357,10 +347,6 @@ func (s *Syncer) SyncInstance(ctx context.Context, instance *store.InstanceMessa// SyncDatabaseSchema will sync the schema for a database.func (s *Syncer) SyncDatabaseSchemaToHistory(ctx context.Context, database *store.DatabaseMessage) (int64, error) {- if s.profile.Readonly {- return 0, nil- }-instance, err := s.store.GetInstanceV2(ctx, &store.FindInstanceMessage{ResourceID: &database.InstanceID})if err != nil {return 0, errors.Wrapf(err, "failed to get instance %q", database.InstanceID)@@ -465,10 +451,6 @@ func (s *Syncer) SyncDatabaseSchemaToHistory(ctx context.Context, database *stor// SyncDatabaseSchema will sync the schema for a database.func (s *Syncer) SyncDatabaseSchema(ctx context.Context, database *store.DatabaseMessage) (retErr error) {- if s.profile.Readonly {- return nil- }-instance, err := s.store.GetInstanceV2(ctx, &store.FindInstanceMessage{ResourceID: &database.InstanceID})if err != nil {return errors.Wrapf(err, "failed to get instance %q", database.InstanceID)@@ -560,60 +542,58 @@ func (s *Syncer) SyncDatabaseSchema(ctx context.Context, database *store.Databas}// Check schema drift- if s.licenseService.IsFeatureEnabledForInstance(api.FeatureSchemaDrift, instance) == nil {- if err := func() error {- // Redis and MongoDB are schemaless.- if disableSchemaDriftAnomalyCheck(instance.Metadata.GetEngine()) {- return nil- }- limit := 1- list, err := s.store.ListChangelogs(ctx, &store.FindChangelogMessage{- InstanceID: &database.InstanceID,- DatabaseName: &database.DatabaseName,- TypeList: []string{string(db.Migrate), string(db.Baseline)},- HasSyncHistory: true,- Limit: &limit,- ShowFull: true,- })- if err != nil {- return errors.Wrapf(err, "failed to list changelogs")- }- if len(list) == 0 {- return nil- }+ if err := func() error {+ // Redis and MongoDB are schemaless.+ if disableSchemaDriftAnomalyCheck(instance.Metadata.GetEngine()) {+ return nil+ }+ limit := 1+ list, err := s.store.ListChangelogs(ctx, &store.FindChangelogMessage{+ InstanceID: &database.InstanceID,+ DatabaseName: &database.DatabaseName,+ TypeList: []string{string(db.Migrate), string(db.Baseline)},+ HasSyncHistory: true,+ Limit: &limit,+ ShowFull: true,+ })+ if err != nil {+ return errors.Wrapf(err, "failed to list changelogs")+ }+ if len(list) == 0 {+ return nil+ }- changelog := list[0]- if changelog.SyncHistoryUID == nil {- return errors.Errorf("expect sync history but get nil")+ changelog := list[0]+ if changelog.SyncHistoryUID == nil {+ return errors.Errorf("expect sync history but get nil")+ }+ latestSchema := string(rawDump)+ if changelog.Schema != latestSchema {+ if _, err = s.store.UpsertActiveAnomalyV2(ctx, &store.AnomalyMessage{+ ProjectID: database.ProjectID,+ InstanceID: database.InstanceID,+ DatabaseName: database.DatabaseName,+ Type: api.AnomalyDatabaseSchemaDrift,+ }); err != nil {+ return errors.Wrapf(err, "failed to create anomaly")}- latestSchema := string(rawDump)- if changelog.Schema != latestSchema {- if _, err = s.store.UpsertActiveAnomalyV2(ctx, &store.AnomalyMessage{- ProjectID: database.ProjectID,- InstanceID: database.InstanceID,- DatabaseName: database.DatabaseName,- Type: api.AnomalyDatabaseSchemaDrift,- }); err != nil {- return errors.Wrapf(err, "failed to create anomaly")- }- } else {- err := s.store.DeleteAnomalyV2(ctx, &store.DeleteAnomalyMessage{- InstanceID: database.InstanceID,- DatabaseName: database.DatabaseName,- Type: api.AnomalyDatabaseSchemaDrift,- })- if err != nil && common.ErrorCode(err) != common.NotFound {- return errors.Wrapf(err, "failed to close anomaly")- }+ } else {+ err := s.store.DeleteAnomalyV2(ctx, &store.DeleteAnomalyMessage{+ InstanceID: database.InstanceID,+ DatabaseName: database.DatabaseName,+ Type: api.AnomalyDatabaseSchemaDrift,+ })+ if err != nil && common.ErrorCode(err) != common.NotFound {+ return errors.Wrapf(err, "failed to close anomaly")}- return nil- }(); err != nil {- slog.Error("failed to check anomaly",- slog.String("instance", database.InstanceID),- slog.String("database", database.DatabaseName),- slog.String("type", string(api.AnomalyDatabaseSchemaDrift)),- log.BBError(err))}+ return nil+ }(); err != nil {+ slog.Error("failed to check anomaly",+ slog.String("instance", database.InstanceID),+ slog.String("database", database.DatabaseName),+ slog.String("type", string(api.AnomalyDatabaseSchemaDrift)),+ log.BBError(err))}return nil}diff --git a/backend/server/init.go b/backend/server/init.goindex b752349322..3bd2e6d313 100644--- a/backend/server/init.go+++ b/backend/server/init.go@@ -222,7 +222,7 @@ func (s *Server) getInitSetting(ctx context.Context) error {// 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)metricReporter.Register(metric.InstanceCountMetricName, metriccollector.NewInstanceCountCollector(s.store))metricReporter.Register(metric.IssueCountMetricName, metriccollector.NewIssueCountCollector(s.store))metricReporter.Register(metric.ProjectCountMetricName, metriccollector.NewProjectCountCollector(s.store))diff --git a/backend/server/server.go b/backend/server/server.goindex d035c57255..81ceb411b0 100644--- a/backend/server/server.go+++ b/backend/server/server.go@@ -8,6 +8,7 @@ import ("net""net/http""os"+ "path""sync""time"@@ -107,8 +108,7 @@ func NewServer(ctx context.Context, profile *config.Profile) (*Server, error) {slog.Info(fmt.Sprintf("mode=%s", profile.Mode))slog.Info(fmt.Sprintf("dataDir=%s", profile.DataDir))slog.Info(fmt.Sprintf("resourceDir=%s", profile.ResourceDir))- slog.Info(fmt.Sprintf("readonly=%t", profile.Readonly))- slog.Info(fmt.Sprintf("demoName=%s", profile.DemoName))+ slog.Info(fmt.Sprintf("demo=%v", profile.Demo))slog.Info(fmt.Sprintf("instanceRunUUID=%s", profile.DeployID))slog.Info("-----Config END-------")@@ -139,12 +139,17 @@ func NewServer(ctx context.Context, profile *config.Profile) (*Server, error) {var pgURL stringif profile.UseEmbedDB() {- stopper, err := postgres.StartMetadataInstance(ctx, profile.DataDir, pgBinDir, profile.PgUser, profile.DemoName, profile.DatastorePort, profile.Mode)+ pgDataDir := path.Join(profile.DataDir, "pgdata")+ if profile.Demo {+ pgDataDir = path.Join(profile.DataDir, "pgdata-demo")+ }++ stopper, err := postgres.StartMetadataInstance(ctx, pgBinDir, pgDataDir, profile.DatastorePort, profile.Mode)if err != nil {return nil, err}s.stopper = append(s.stopper, stopper)- pgURL = fmt.Sprintf("host=%s port=%d user=%s database=%s", common.GetPostgresSocketDir(), profile.DatastorePort, profile.PgUser, profile.PgUser)+ pgURL = fmt.Sprintf("host=%s port=%d user=bb database=bb", common.GetPostgresSocketDir(), profile.DatastorePort)} else {pgURL = profile.PgURL}@@ -158,15 +163,13 @@ func NewServer(ctx context.Context, profile *config.Profile) (*Server, error) {s.stopper = append(s.stopper, stopper...)}- if profile.Readonly {- slog.Info("Database is opened in readonly mode. Skip migration and demo data setup.")- } else {- if err := demo.LoadDemoDataIfNeeded(ctx, pgURL, profile.DemoName); err != nil {+ if profile.Demo {+ if err := demo.LoadDemoData(ctx, pgURL); err != nil {return nil, errors.Wrapf(err, "failed to load demo data")}- if err := migrator.MigrateSchema(ctx, pgURL); err != nil {- return nil, err- }+ }+ if err := migrator.MigrateSchema(ctx, pgURL); err != nil {+ return nil, err}// Connect to the instance that stores bytebase's own metadata.@@ -238,32 +241,30 @@ func NewServer(ctx context.Context, profile *config.Profile) (*Server, error) {}),)- s.metricReporter = metricreport.NewReporter(s.store, s.licenseService, s.profile, false)- s.schemaSyncer = schemasync.NewSyncer(stores, s.dbFactory, s.stateCfg, profile, s.licenseService)- if !profile.Readonly {- s.approvalRunner = approval.NewRunner(stores, sheetManager, s.dbFactory, s.stateCfg, s.webhookManager, s.licenseService)-- s.taskSchedulerV2 = taskrun.NewSchedulerV2(stores, s.stateCfg, s.webhookManager, profile, s.licenseService)- s.taskSchedulerV2.Register(api.TaskDatabaseCreate, taskrun.NewDatabaseCreateExecutor(stores, s.dbFactory, s.schemaSyncer, s.stateCfg, profile))- s.taskSchedulerV2.Register(api.TaskDatabaseSchemaBaseline, taskrun.NewSchemaBaselineExecutor(stores, s.dbFactory, s.licenseService, s.stateCfg, s.schemaSyncer, profile))- s.taskSchedulerV2.Register(api.TaskDatabaseSchemaUpdate, taskrun.NewSchemaUpdateExecutor(stores, s.dbFactory, s.licenseService, s.stateCfg, s.schemaSyncer, profile))- s.taskSchedulerV2.Register(api.TaskDatabaseDataUpdate, taskrun.NewDataUpdateExecutor(stores, s.dbFactory, s.licenseService, s.stateCfg, s.schemaSyncer, profile))- s.taskSchedulerV2.Register(api.TaskDatabaseDataExport, taskrun.NewDataExportExecutor(stores, s.dbFactory, s.licenseService, s.stateCfg, s.schemaSyncer, profile))- s.taskSchedulerV2.Register(api.TaskDatabaseSchemaUpdateGhost, taskrun.NewSchemaUpdateGhostExecutor(stores, s.dbFactory, s.licenseService, s.stateCfg, s.schemaSyncer, s.profile))-- s.planCheckScheduler = plancheck.NewScheduler(stores, s.licenseService, s.stateCfg)- databaseConnectExecutor := plancheck.NewDatabaseConnectExecutor(stores, s.dbFactory)- s.planCheckScheduler.Register(store.PlanCheckDatabaseConnect, databaseConnectExecutor)- statementAdviseExecutor := plancheck.NewStatementAdviseExecutor(stores, sheetManager, s.dbFactory, s.licenseService)- s.planCheckScheduler.Register(store.PlanCheckDatabaseStatementAdvise, statementAdviseExecutor)- ghostSyncExecutor := plancheck.NewGhostSyncExecutor(stores, s.dbFactory)- s.planCheckScheduler.Register(store.PlanCheckDatabaseGhostSync, ghostSyncExecutor)- statementReportExecutor := plancheck.NewStatementReportExecutor(stores, sheetManager, s.dbFactory)- s.planCheckScheduler.Register(store.PlanCheckDatabaseStatementSummaryReport, statementReportExecutor)-- // Metric reporter- s.initMetricReporter()- }+ s.metricReporter = metricreport.NewReporter(s.store, s.licenseService, s.profile)+ s.schemaSyncer = schemasync.NewSyncer(stores, s.dbFactory, s.stateCfg)+ s.approvalRunner = approval.NewRunner(stores, sheetManager, s.dbFactory, s.stateCfg, s.webhookManager, s.licenseService)++ s.taskSchedulerV2 = taskrun.NewSchedulerV2(stores, s.stateCfg, s.webhookManager, profile, s.licenseService)+ s.taskSchedulerV2.Register(api.TaskDatabaseCreate, taskrun.NewDatabaseCreateExecutor(stores, s.dbFactory, s.schemaSyncer, s.stateCfg, profile))+ s.taskSchedulerV2.Register(api.TaskDatabaseSchemaBaseline, taskrun.NewSchemaBaselineExecutor(stores, s.dbFactory, s.licenseService, s.stateCfg, s.schemaSyncer, profile))+ s.taskSchedulerV2.Register(api.TaskDatabaseSchemaUpdate, taskrun.NewSchemaUpdateExecutor(stores, s.dbFactory, s.licenseService, s.stateCfg, s.schemaSyncer, profile))+ s.taskSchedulerV2.Register(api.TaskDatabaseDataUpdate, taskrun.NewDataUpdateExecutor(stores, s.dbFactory, s.licenseService, s.stateCfg, s.schemaSyncer, profile))+ s.taskSchedulerV2.Register(api.TaskDatabaseDataExport, taskrun.NewDataExportExecutor(stores, s.dbFactory, s.licenseService, s.stateCfg, s.schemaSyncer, profile))+ s.taskSchedulerV2.Register(api.TaskDatabaseSchemaUpdateGhost, taskrun.NewSchemaUpdateGhostExecutor(stores, s.dbFactory, s.licenseService, s.stateCfg, s.schemaSyncer, s.profile))++ s.planCheckScheduler = plancheck.NewScheduler(stores, s.licenseService, s.stateCfg)+ databaseConnectExecutor := plancheck.NewDatabaseConnectExecutor(stores, s.dbFactory)+ s.planCheckScheduler.Register(store.PlanCheckDatabaseConnect, databaseConnectExecutor)+ statementAdviseExecutor := plancheck.NewStatementAdviseExecutor(stores, sheetManager, s.dbFactory, s.licenseService)+ s.planCheckScheduler.Register(store.PlanCheckDatabaseStatementAdvise, statementAdviseExecutor)+ ghostSyncExecutor := plancheck.NewGhostSyncExecutor(stores, s.dbFactory)+ s.planCheckScheduler.Register(store.PlanCheckDatabaseGhostSync, ghostSyncExecutor)+ statementReportExecutor := plancheck.NewStatementReportExecutor(stores, sheetManager, s.dbFactory)+ s.planCheckScheduler.Register(store.PlanCheckDatabaseStatementSummaryReport, statementReportExecutor)++ // Metric reporter+ s.initMetricReporter()// Setup the gRPC and grpc-gateway.authProvider := auth.New(s.store, secret, s.licenseService, s.stateCfg, s.profile)@@ -334,21 +335,19 @@ func NewServer(ctx context.Context, profile *config.Profile) (*Server, error) {func (s *Server) Run(ctx context.Context, port int) error {ctx, cancel := context.WithCancel(ctx)s.cancel = cancel- if !s.profile.Readonly {- // runnerWG waits for all goroutines to complete.- s.runnerWG.Add(1)- go s.taskSchedulerV2.Run(ctx, &s.runnerWG)- s.runnerWG.Add(1)- go s.schemaSyncer.Run(ctx, &s.runnerWG)- s.runnerWG.Add(1)- go s.approvalRunner.Run(ctx, &s.runnerWG)-- s.runnerWG.Add(1)- go s.metricReporter.Run(ctx, &s.runnerWG)-- s.runnerWG.Add(1)- go s.planCheckScheduler.Run(ctx, &s.runnerWG)- }+ // runnerWG waits for all goroutines to complete.+ s.runnerWG.Add(1)+ go s.taskSchedulerV2.Run(ctx, &s.runnerWG)+ s.runnerWG.Add(1)+ go s.schemaSyncer.Run(ctx, &s.runnerWG)+ s.runnerWG.Add(1)+ go s.approvalRunner.Run(ctx, &s.runnerWG)++ s.runnerWG.Add(1)+ go s.metricReporter.Run(ctx, &s.runnerWG)++ s.runnerWG.Add(1)+ go s.planCheckScheduler.Run(ctx, &s.runnerWG)address := fmt.Sprintf(":%d", port)listener, err := net.Listen("tcp", address)diff --git a/backend/tests/tests.go b/backend/tests/tests.goindex 038242e410..94325c1f3c 100644--- a/backend/tests/tests.go+++ b/backend/tests/tests.go@@ -211,14 +211,12 @@ func (ctl *controller) initWorkspaceProfile(ctx context.Context) error {// pgURL for connect to Postgres.func getTestProfileWithExternalPg(resourceDir string, port int, pgURL string) *component.Profile {return &component.Profile{- Mode: common.ReleaseModeDev,- ExternalURL: fmt.Sprintf("http://localhost:%d", port),- Port: port,- SampleDatabasePort: 0,- ResourceDir: resourceDir,- AppRunnerInterval: 1 * time.Second,- BackupRunnerInterval: 10 * time.Second,- PgURL: pgURL,+ Mode: common.ReleaseModeDev,+ ExternalURL: fmt.Sprintf("http://localhost:%d", port),+ Port: port,+ SampleDatabasePort: 0,+ ResourceDir: resourceDir,+ PgURL: pgURL,}}diff --git a/frontend/src/components/BannersWrapper.vue b/frontend/src/components/BannersWrapper.vueindex 1a326d0996..9950e2517a 100644--- a/frontend/src/components/BannersWrapper.vue+++ b/frontend/src/components/BannersWrapper.vue@@ -7,13 +7,6 @@<template v-if="shouldShowSubscriptionBanner"><BannerSubscription /></template>- <template v-if="shouldShowReadonlyBanner">- <div class="bg-info">- <div class="text-center py-1 px-3 font-medium text-white truncate">- {{ $t("banner.readonly") }}- </div>- </div>- </template><template v-if="shouldShowExternalUrlBanner"><BannerExternalUrl /></template>@@ -23,8 +16,6 @@</template><script lang="ts" setup>-import { storeToRefs } from "pinia";-import { computed } from "vue";import {LICENSE_EXPIRATION_THRESHOLD,useActuatorV1Store,@@ -38,12 +29,14 @@ import BannerDemo from "@/views/BannerDemo.vue";import BannerExternalUrl from "@/views/BannerExternalUrl.vue";import BannerSubscription from "@/views/BannerSubscription.vue";import BannerUpgradeSubscription from "@/views/BannerUpgradeSubscription.vue";+import { storeToRefs } from "pinia";+import { computed } from "vue";const actuatorStore = useActuatorV1Store();const subscriptionStore = useSubscriptionV1Store();const hideBanner = useAppFeature("bb.feature.hide-banner");-const { isDemo, isReadonly, needConfigureExternalUrl } =+const { needConfigureExternalUrl } =storeToRefs(actuatorStore);const {isExpired,@@ -55,7 +48,7 @@ const {const shouldShowDemoBanner = computed(() => {if (!actuatorStore.serverInfo) return false;- return actuatorStore.serverInfo.demoName !== "";+ return actuatorStore.serverInfo.demo;});const shouldShowSubscriptionBanner = computed(() => {@@ -68,10 +61,6 @@ const shouldShowSubscriptionBanner = computed(() => {);});-const shouldShowReadonlyBanner = computed(() => {- return !isDemo.value && isReadonly.value;-});-const shouldShowExternalUrlBanner = computed(() => {return !isDev() && needConfigureExternalUrl.value;});diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.jsonindex b2d999bf0a..796318cda6 100644--- a/frontend/src/locales/en-US.json+++ b/frontend/src/locales/en-US.json@@ -303,7 +303,6 @@"deploy": "Self Host","cloud": "Cloud","request-demo": "Book a 30-minute product demo.",- "readonly": "Bytebase is in readonly mode. You can still view the console, but any change attempt will fail.","external-url": "Bytebase has not configured --external-url"},"bbkit": {diff --git a/frontend/src/locales/es-ES.json b/frontend/src/locales/es-ES.jsonindex 97ab8c32cb..178f85ae34 100644--- a/frontend/src/locales/es-ES.json+++ b/frontend/src/locales/es-ES.json@@ -303,7 +303,6 @@"deploy": "Auto Hospedaje","cloud": "Cloud","request-demo": "Reserva una demo de producto de 30 minutos.",- "readonly": "Bytebase está en modo de solo lectura. Todavía puede ver la consola, pero cualquier intento de cambio fallará.","external-url": "Bytebase no ha configurado --external-url"},"bbkit": {diff --git a/frontend/src/locales/ja-JP.json b/frontend/src/locales/ja-JP.jsonindex f1352e8f8c..ec1581c3ae 100644--- a/frontend/src/locales/ja-JP.json+++ b/frontend/src/locales/ja-JP.json@@ -303,7 +303,6 @@"deploy": "ローカル展開","cloud": "クラウドサービス","request-demo": "30 分間の製品デモを予約してください。",- "readonly": "バイトベースは読み取り専用モードです。コンソールを表示することはできますが、変更を加えようとすると失敗します。","external-url": "Bytebase は --extern-url を設定していません"},"bbkit": {diff --git a/frontend/src/locales/vi-VN.json b/frontend/src/locales/vi-VN.jsonindex 1d2e7e932e..765e42cfc6 100644--- a/frontend/src/locales/vi-VN.json+++ b/frontend/src/locales/vi-VN.json@@ -303,7 +303,6 @@"deploy": "Tự lưu trữ","cloud": "Đám mây","request-demo": "Đặt lịch giới thiệu sản phẩm 30 phút.",- "readonly": "Bytebase đang ở chế độ chỉ đọc. Bạn vẫn có thể xem bảng điều khiển, nhưng mọi nỗ lực thay đổi sẽ không thành công.","external-url": "Bytebase chưa được cấu hình --external-url"},"bbkit": {diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.jsonindex 120dd99edc..1d446a8ba6 100644--- a/frontend/src/locales/zh-CN.json+++ b/frontend/src/locales/zh-CN.json@@ -303,7 +303,6 @@"deploy": "本地部署","cloud": "云服务","request-demo": "预约一个 30 分钟的产品演示。",- "readonly": "Bytebase 处于只读模式。您仍然可以查看控制台,但任何尝试更改的请求都会失败。","external-url": "Bytebase 还没有配置 --external-url"},"bbkit": {diff --git a/frontend/src/store/modules/v1/actuator.ts b/frontend/src/store/modules/v1/actuator.tsindex 6c09e6d98d..5ff38baaaf 100644--- a/frontend/src/store/modules/v1/actuator.ts+++ b/frontend/src/store/modules/v1/actuator.ts@@ -1,9 +1,3 @@-import type { RemovableRef } from "@vueuse/core";-import { useLocalStorage } from "@vueuse/core";-import axios from "axios";-import { defineStore } from "pinia";-import semver from "semver";-import { computed } from "vue";import { actuatorServiceClient } from "@/grpcweb";import { useSilentRequest } from "@/plugins/silent-request";import {@@ -19,6 +13,12 @@ import type {} from "@/types/proto/v1/actuator_service";import { PasswordRestrictionSetting } from "@/types/proto/v1/setting_service";import { semverCompare } from "@/utils";+import type { RemovableRef } from "@vueuse/core";+import { useLocalStorage } from "@vueuse/core";+import axios from "axios";+import { defineStore } from "pinia";+import semver from "semver";+import { computed } from "vue";const EXTERNAL_URL_PLACEHOLDER ="https://www.bytebase.com/docs/get-started/install/external-url";@@ -70,10 +70,7 @@ export const useActuatorV1Store = defineStore("actuator_v1", {return state.serverInfo?.gitCommit || "";},isDemo: (state) => {- return state.serverInfo?.demoName;- },- isReadonly: (state) => {- return state.serverInfo?.readonly || false;+ return state.serverInfo?.demo;},isDebug: (state) => {return state.serverInfo?.debug || false;diff --git a/frontend/src/types/proto/v1/actuator_service.ts b/frontend/src/types/proto/v1/actuator_service.tsindex c0c450c52c..0c5f1bd309 100644--- a/frontend/src/types/proto/v1/actuator_service.ts+++ b/frontend/src/types/proto/v1/actuator_service.ts@@ -52,8 +52,8 @@ export interface ActuatorInfo {readonly: boolean;/** saas flag means if the Bytebase is running in SaaS mode, some features are not allowed to edit by users. */saas: boolean;- /** demo_name specifies the demo name, empty string means no demo. */- demoName: string;+ /** demo flag means if the Bytebase is running in demo mode. */+ demo: boolean;/** host is the Bytebase instance host. */host: string;/** port is the Bytebase instance port. */@@ -355,7 +355,7 @@ function createBaseActuatorInfo(): ActuatorInfo {gitCommit: "",readonly: false,saas: false,- demoName: "",+ demo: false,host: "",port: "",externalUrl: "",@@ -386,8 +386,8 @@ export const ActuatorInfo: MessageFns<ActuatorInfo> = {if (message.saas !== false) {writer.uint32(32).bool(message.saas);}- if (message.demoName !== "") {- writer.uint32(42).string(message.demoName);+ if (message.demo !== false) {+ writer.uint32(40).bool(message.demo);}if (message.host !== "") {writer.uint32(50).string(message.host);@@ -471,11 +471,11 @@ export const ActuatorInfo: MessageFns<ActuatorInfo> = {continue;}case 5: {- if (tag !== 42) {+ if (tag !== 40) {break;}- message.demoName = reader.string();+ message.demo = reader.bool();continue;}case 6: {@@ -597,7 +597,7 @@ export const ActuatorInfo: MessageFns<ActuatorInfo> = {gitCommit: isSet(object.gitCommit) ? globalThis.String(object.gitCommit) : "",readonly: isSet(object.readonly) ? globalThis.Boolean(object.readonly) : false,saas: isSet(object.saas) ? globalThis.Boolean(object.saas) : false,- demoName: isSet(object.demoName) ? globalThis.String(object.demoName) : "",+ demo: isSet(object.demo) ? globalThis.Boolean(object.demo) : false,host: isSet(object.host) ? globalThis.String(object.host) : "",port: isSet(object.port) ? globalThis.String(object.port) : "",externalUrl: isSet(object.externalUrl) ? globalThis.String(object.externalUrl) : "",@@ -634,8 +634,8 @@ export const ActuatorInfo: MessageFns<ActuatorInfo> = {if (message.saas !== false) {obj.saas = message.saas;}- if (message.demoName !== "") {- obj.demoName = message.demoName;+ if (message.demo !== false) {+ obj.demo = message.demo;}if (message.host !== "") {obj.host = message.host;@@ -688,7 +688,7 @@ export const ActuatorInfo: MessageFns<ActuatorInfo> = {message.gitCommit = object.gitCommit ?? "";message.readonly = object.readonly ?? false;message.saas = object.saas ?? false;- message.demoName = object.demoName ?? "";+ message.demo = object.demo ?? false;message.host = object.host ?? "";message.port = object.port ?? "";message.externalUrl = object.externalUrl ?? "";diff --git a/proto/gen/grpc-doc/openapi.yaml b/proto/gen/grpc-doc/openapi.yamlindex b3553251aa..2a7b4e4aea 100644--- a/proto/gen/grpc-doc/openapi.yaml+++ b/proto/gen/grpc-doc/openapi.yaml@@ -7720,10 +7720,10 @@ components:readOnly: truetype: booleandescription: saas flag means if the Bytebase is running in SaaS mode, some features are not allowed to edit by users.- demoName:+ demo:readOnly: true- type: string- description: demo_name specifies the demo name, empty string means no demo.+ type: boolean+ description: demo flag means if the Bytebase is running in demo mode.host:readOnly: truetype: stringdiff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.mdindex 44a74f8c00..bf1c7e7e7b 100644--- a/proto/gen/grpc-doc/v1/README.md+++ b/proto/gen/grpc-doc/v1/README.md@@ -4935,7 +4935,7 @@ Actuator concept is similar to the Spring Boot Actuator.| git_commit | [string](#string) | | git_commit is the git commit hash of the build || readonly | [bool](#bool) | | readonly flag means if the Bytebase is running in readonly mode. || saas | [bool](#bool) | | saas flag means if the Bytebase is running in SaaS mode, some features are not allowed to edit by users. |-| demo_name | [string](#string) | | demo_name specifies the demo name, empty string means no demo. |+| demo | [bool](#bool) | | demo flag means if the Bytebase is running in demo mode. || host | [string](#string) | | host is the Bytebase instance host. || port | [string](#string) | | port is the Bytebase instance port. || external_url | [string](#string) | | external_url is the URL where user or webhook callback visits Bytebase. |diff --git a/proto/gen/grpc-doc/v1/index.html b/proto/gen/grpc-doc/v1/index.htmlindex 7f77e53a6c..0f1d602323 100644--- a/proto/gen/grpc-doc/v1/index.html+++ b/proto/gen/grpc-doc/v1/index.html@@ -14268,10 +14268,10 @@ Default to this mode.</p></td></tr><tr>- <td>demo_name</td>- <td><a href="#string">string</a></td>+ <td>demo</td>+ <td><a href="#bool">bool</a></td><td></td>- <td><p>demo_name specifies the demo name, empty string means no demo. </p></td>+ <td><p>demo flag means if the Bytebase is running in demo mode. </p></td></tr><tr>diff --git a/proto/generated-go/v1/actuator_service.pb.go b/proto/generated-go/v1/actuator_service.pb.goindex 9fc4cc31d5..8edb44da0c 100644--- a/proto/generated-go/v1/actuator_service.pb.go+++ b/proto/generated-go/v1/actuator_service.pb.go@@ -246,8 +246,8 @@ type ActuatorInfo struct {Readonly bool `protobuf:"varint,3,opt,name=readonly,proto3" json:"readonly,omitempty"`// saas flag means if the Bytebase is running in SaaS mode, some features are not allowed to edit by users.Saas bool `protobuf:"varint,4,opt,name=saas,proto3" json:"saas,omitempty"`- // demo_name specifies the demo name, empty string means no demo.- DemoName string `protobuf:"bytes,5,opt,name=demo_name,json=demoName,proto3" json:"demo_name,omitempty"`+ // demo flag means if the Bytebase is running in demo mode.+ Demo bool `protobuf:"varint,5,opt,name=demo,proto3" json:"demo,omitempty"`// host is the Bytebase instance host.Host string `protobuf:"bytes,6,opt,name=host,proto3" json:"host,omitempty"`// port is the Bytebase instance port.@@ -334,11 +334,11 @@ func (x *ActuatorInfo) GetSaas() bool {return false}-func (x *ActuatorInfo) GetDemoName() string {+func (x *ActuatorInfo) GetDemo() bool {if x != nil {- return x.DemoName+ return x.Demo}- return ""+ return false}func (x *ActuatorInfo) GetHost() string {@@ -469,7 +469,7 @@ var file_v1_actuator_service_proto_rawDesc = string([]byte{0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x02, 0x52,0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x22, 0x14, 0x0a, 0x12, 0x44,0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x61, 0x63, 0x68, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,- 0x74, 0x22, 0xff, 0x05, 0x0a, 0x0c, 0x41, 0x63, 0x74, 0x75, 0x61, 0x74, 0x6f, 0x72, 0x49, 0x6e,+ 0x74, 0x22, 0xf6, 0x05, 0x0a, 0x0c, 0x41, 0x63, 0x74, 0x75, 0x61, 0x74, 0x6f, 0x72, 0x49, 0x6e,0x66, 0x6f, 0x12, 0x1e, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20,0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69,0x6f, 0x6e, 0x12, 0x23, 0x0a, 0x0a, 0x67, 0x69, 0x74, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74,@@ -478,81 +478,81 @@ var file_v1_actuator_service_proto_rawDesc = string([]byte{0x6e, 0x6c, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52,0x08, 0x72, 0x65, 0x61, 0x64, 0x6f, 0x6e, 0x6c, 0x79, 0x12, 0x18, 0x0a, 0x04, 0x73, 0x61, 0x61,0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x04, 0x73,- 0x61, 0x61, 0x73, 0x12, 0x21, 0x0a, 0x09, 0x64, 0x65, 0x6d, 0x6f, 0x5f, 0x6e, 0x61, 0x6d, 0x65,- 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x08, 0x64, 0x65,- 0x6d, 0x6f, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x06,- 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74,- 0x12, 0x18, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04,- 0xe2, 0x41, 0x01, 0x03, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x27, 0x0a, 0x0c, 0x65, 0x78,- 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09,- 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x0b, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c,- 0x55, 0x72, 0x6c, 0x12, 0x2e, 0x0a, 0x10, 0x6e, 0x65, 0x65, 0x64, 0x5f, 0x61, 0x64, 0x6d, 0x69,- 0x6e, 0x5f, 0x73, 0x65, 0x74, 0x75, 0x70, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x42, 0x04, 0xe2,- 0x41, 0x01, 0x03, 0x52, 0x0e, 0x6e, 0x65, 0x65, 0x64, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x53, 0x65,- 0x74, 0x75, 0x70, 0x12, 0x2d, 0x0a, 0x0f, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f,- 0x73, 0x69, 0x67, 0x6e, 0x75, 0x70, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x42, 0x04, 0xe2, 0x41,- 0x01, 0x03, 0x52, 0x0e, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x53, 0x69, 0x67, 0x6e,- 0x75, 0x70, 0x12, 0x4a, 0x0a, 0x10, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x76,- 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67,- 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54,- 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x0e,- 0x6c, 0x61, 0x73, 0x74, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x25,- 0x0a, 0x0b, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x5f, 0x32, 0x66, 0x61, 0x18, 0x0c, 0x20,- 0x01, 0x28, 0x08, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x69,- 0x72, 0x65, 0x32, 0x66, 0x61, 0x12, 0x27, 0x0a, 0x0c, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61,- 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01,- 0x03, 0x52, 0x0b, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x64, 0x12, 0x14,- 0x0a, 0x05, 0x64, 0x65, 0x62, 0x75, 0x67, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x64,- 0x65, 0x62, 0x75, 0x67, 0x12, 0x2f, 0x0a, 0x13, 0x75, 0x6e, 0x6c, 0x69, 0x63, 0x65, 0x6e, 0x73,- 0x65, 0x64, 0x5f, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x18, 0x13, 0x20, 0x03, 0x28,- 0x09, 0x52, 0x12, 0x75, 0x6e, 0x6c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, 0x64, 0x46, 0x65, 0x61,- 0x74, 0x75, 0x72, 0x65, 0x73, 0x12, 0x38, 0x0a, 0x18, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f,- 0x77, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x5f, 0x73, 0x69, 0x67, 0x6e, 0x69,- 0x6e, 0x18, 0x14, 0x20, 0x01, 0x28, 0x08, 0x52, 0x16, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f,- 0x77, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x53, 0x69, 0x67, 0x6e, 0x69, 0x6e, 0x12,- 0x5a, 0x0a, 0x14, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x5f, 0x72, 0x65, 0x73, 0x74,- 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x15, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e,- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x73, 0x73,- 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53,- 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x13, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64,- 0x52, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x64,- 0x6f, 0x63, 0x6b, 0x65, 0x72, 0x18, 0x16, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x64, 0x6f, 0x63,- 0x6b, 0x65, 0x72, 0x32, 0x9f, 0x04, 0x0a, 0x0f, 0x41, 0x63, 0x74, 0x75, 0x61, 0x74, 0x6f, 0x72,- 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x73, 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, 0x20, 0xda, 0x41, 0x00, 0x80,- 0xea, 0x30, 0x01, 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, 0xaa, 0x01, 0x0a,- 0x12, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x63, 0x74, 0x75, 0x61, 0x74, 0x6f, 0x72, 0x49,- 0x6e, 0x66, 0x6f, 0x12, 0x26, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,- 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 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, 0x51, 0xda, 0x41, 0x14, 0x61, 0x63, 0x74, 0x75, 0x61,- 0x74, 0x6f, 0x72, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x8a,- 0xea, 0x30, 0x0f, 0x62, 0x62, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x73,- 0x65, 0x74, 0x90, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x3a, 0x08, 0x61, 0x63,- 0x74, 0x75, 0x61, 0x74, 0x6f, 0x72, 0x32, 0x11, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x63, 0x74, 0x75,- 0x61, 0x74, 0x6f, 0x72, 0x2f, 0x69, 0x6e, 0x66, 0x6f, 0x12, 0x66, 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, 0x1e, 0x80, 0xea, 0x30, 0x01, 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, 0x12, 0x81, 0x01, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,- 0x65, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x12, 0x26, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72,- 0x63, 0x65, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,- 0x1a, 0x1c, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52,- 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x22, 0x25,- 0xda, 0x41, 0x00, 0x80, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x18, 0x12, 0x16, 0x2f,- 0x76, 0x31, 0x2f, 0x61, 0x63, 0x74, 0x75, 0x61, 0x74, 0x6f, 0x72, 0x2f, 0x72, 0x65, 0x73, 0x6f,- 0x75, 0x72, 0x63, 0x65, 0x73, 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,+ 0x61, 0x61, 0x73, 0x12, 0x18, 0x0a, 0x04, 0x64, 0x65, 0x6d, 0x6f, 0x18, 0x05, 0x20, 0x01, 0x28,+ 0x08, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x04, 0x64, 0x65, 0x6d, 0x6f, 0x12, 0x18, 0x0a,+ 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01,+ 0x03, 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18,+ 0x07, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x04, 0x70, 0x6f, 0x72,+ 0x74, 0x12, 0x27, 0x0a, 0x0c, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x75, 0x72,+ 0x6c, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x0b, 0x65,+ 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x55, 0x72, 0x6c, 0x12, 0x2e, 0x0a, 0x10, 0x6e, 0x65,+ 0x65, 0x64, 0x5f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x5f, 0x73, 0x65, 0x74, 0x75, 0x70, 0x18, 0x09,+ 0x20, 0x01, 0x28, 0x08, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x0e, 0x6e, 0x65, 0x65, 0x64,+ 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x53, 0x65, 0x74, 0x75, 0x70, 0x12, 0x2d, 0x0a, 0x0f, 0x64, 0x69,+ 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x73, 0x69, 0x67, 0x6e, 0x75, 0x70, 0x18, 0x0a, 0x20,+ 0x01, 0x28, 0x08, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x0e, 0x64, 0x69, 0x73, 0x61, 0x6c,+ 0x6c, 0x6f, 0x77, 0x53, 0x69, 0x67, 0x6e, 0x75, 0x70, 0x12, 0x4a, 0x0a, 0x10, 0x6c, 0x61, 0x73,+ 0x74, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x0b, 0x20,+ 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,+ 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42,+ 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x0e, 0x6c, 0x61, 0x73, 0x74, 0x41, 0x63, 0x74, 0x69, 0x76,+ 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x25, 0x0a, 0x0b, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65,+ 0x5f, 0x32, 0x66, 0x61, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x08, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03,+ 0x52, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x32, 0x66, 0x61, 0x12, 0x27, 0x0a, 0x0c,+ 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x0d, 0x20, 0x01,+ 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x0b, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70,+ 0x61, 0x63, 0x65, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x64, 0x65, 0x62, 0x75, 0x67, 0x18, 0x0f,+ 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x64, 0x65, 0x62, 0x75, 0x67, 0x12, 0x2f, 0x0a, 0x13, 0x75,+ 0x6e, 0x6c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, 0x64, 0x5f, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72,+ 0x65, 0x73, 0x18, 0x13, 0x20, 0x03, 0x28, 0x09, 0x52, 0x12, 0x75, 0x6e, 0x6c, 0x69, 0x63, 0x65,+ 0x6e, 0x73, 0x65, 0x64, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x12, 0x38, 0x0a, 0x18,+ 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72,+ 0x64, 0x5f, 0x73, 0x69, 0x67, 0x6e, 0x69, 0x6e, 0x18, 0x14, 0x20, 0x01, 0x28, 0x08, 0x52, 0x16,+ 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64,+ 0x53, 0x69, 0x67, 0x6e, 0x69, 0x6e, 0x12, 0x5a, 0x0a, 0x14, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f,+ 0x72, 0x64, 0x5f, 0x72, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x15,+ 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x76, 0x31, 0x2e, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x74, 0x72,+ 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x13, 0x70,+ 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69,+ 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x63, 0x6b, 0x65, 0x72, 0x18, 0x16, 0x20, 0x01,+ 0x28, 0x08, 0x52, 0x06, 0x64, 0x6f, 0x63, 0x6b, 0x65, 0x72, 0x32, 0x9f, 0x04, 0x0a, 0x0f, 0x41,+ 0x63, 0x74, 0x75, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x73,+ 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, 0x20, 0xda, 0x41, 0x00, 0x80, 0xea, 0x30, 0x01, 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, 0xaa, 0x01, 0x0a, 0x12, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x63,+ 0x74, 0x75, 0x61, 0x74, 0x6f, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x26, 0x2e, 0x62, 0x79, 0x74,+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 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, 0x51, 0xda,+ 0x41, 0x14, 0x61, 0x63, 0x74, 0x75, 0x61, 0x74, 0x6f, 0x72, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74,+ 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x8a, 0xea, 0x30, 0x0f, 0x62, 0x62, 0x2e, 0x73, 0x65, 0x74,+ 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x73, 0x65, 0x74, 0x90, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4,+ 0x93, 0x02, 0x1d, 0x3a, 0x08, 0x61, 0x63, 0x74, 0x75, 0x61, 0x74, 0x6f, 0x72, 0x32, 0x11, 0x2f,+ 0x76, 0x31, 0x2f, 0x61, 0x63, 0x74, 0x75, 0x61, 0x74, 0x6f, 0x72, 0x2f, 0x69, 0x6e, 0x66, 0x6f,+ 0x12, 0x66, 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, 0x1e, 0x80, 0xea, 0x30, 0x01, 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, 0x12, 0x81, 0x01, 0x0a, 0x12, 0x47, 0x65, 0x74,+ 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x12,+ 0x26, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65,+ 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65,+ 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, 0x61,+ 0x63, 0x6b, 0x61, 0x67, 0x65, 0x22, 0x25, 0xda, 0x41, 0x00, 0x80, 0xea, 0x30, 0x01, 0x82, 0xd3,+ 0xe4, 0x93, 0x02, 0x18, 0x12, 0x16, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x63, 0x74, 0x75, 0x61, 0x74,+ 0x6f, 0x72, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 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 fb0d770350..0c31545c02 100644--- a/proto/v1/actuator_service.proto+++ b/proto/v1/actuator_service.proto@@ -78,8 +78,8 @@ message ActuatorInfo {// saas flag means if the Bytebase is running in SaaS mode, some features are not allowed to edit by users.bool saas = 4 [(google.api.field_behavior) = OUTPUT_ONLY];- // demo_name specifies the demo name, empty string means no demo.- string demo_name = 5 [(google.api.field_behavior) = OUTPUT_ONLY];+ // demo flag means if the Bytebase is running in demo mode.+ bool demo = 5 [(google.api.field_behavior) = OUTPUT_ONLY];// host is the Bytebase instance host.string host = 6 [(google.api.field_behavior) = OUTPUT_ONLY];