This is an automated email from the ASF dual-hosted git repository.

tianxiaoliang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-service-center.git


The following commit(s) were added to refs/heads/master by this push:
     new 5cdb5d9  SCB-2094 Bug fixes (#763)
5cdb5d9 is described below

commit 5cdb5d901e13e1e4a4972e71cff9d44e15272897
Author: little-cui <sure_0...@qq.com>
AuthorDate: Thu Nov 26 17:39:06 2020 +0800

    SCB-2094 Bug fixes (#763)
    
    * SCB-2094 Bug fixes
    
    * SCB-2094 Bug fixes
---
 etc/conf/app.yaml       | 4 +++-
 server/config/config.go | 2 +-
 server/config/server.go | 2 +-
 3 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/etc/conf/app.yaml b/etc/conf/app.yaml
index efde076..7088ff8 100644
--- a/etc/conf/app.yaml
+++ b/etc/conf/app.yaml
@@ -91,8 +91,10 @@ registry:
     ttl:
 
   schema:
+    # if want disable Test Schema, SchemaDisable set true
     disable: false
-    editable: true
+    # if want disable modification of Schema in production environment, 
SchemaEditable set false
+    editable: false
   # enable to register sc itself when startup
   selfRegister: 1
 
diff --git a/server/config/config.go b/server/config/config.go
index 66f6924..59d1575 100644
--- a/server/config/config.go
+++ b/server/config/config.go
@@ -179,7 +179,7 @@ func newInfo() ServerInformation {
                        InstanceTTL:          GetInt64("registry.instance.ttl", 
0, WithENV("INSTANCE_TTL")),
 
                        SchemaDisable:  GetBool("registry.schema.disable", 
false, WithENV("SCHEMA_DISABLE")),
-                       SchemaEditable: GetBool("registry.schema.editable", 
true, WithENV("SCHEMA_EDITABLE")),
+                       SchemaEditable: GetBool("registry.schema.editable", 
false, WithENV("SCHEMA_EDITABLE")),
 
                        EnableRBAC: GetBool("rbac.enable", false, 
WithStandby("rbac_enabled")),
 
diff --git a/server/config/server.go b/server/config/server.go
index af29b6b..f48a63e 100644
--- a/server/config/server.go
+++ b/server/config/server.go
@@ -75,7 +75,7 @@ type ServerConfig struct {
 
        // if want disable Test Schema, SchemaDisable set true
        SchemaDisable bool `json:"schemaDisable"`
-       // if want disable modification of Schema, SchemaEditable set false
+       // if want disable modification of Schema in production environment, 
SchemaEditable set false
        SchemaEditable bool `json:"-"`
 
        // instance ttl in seconds

Reply via email to