This is an automated email from the ASF dual-hosted git repository.
menghaoran pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push:
new e102f17 update governance registry center doc,sharding proxy
authentication doc. (#10556)
e102f17 is described below
commit e102f179edd5f07c03d6266ec37c0db817ffd18e
Author: huanghao495430759 <[email protected]>
AuthorDate: Sun May 30 17:44:44 2021 -0500
update governance registry center doc,sharding proxy authentication doc.
(#10556)
---
.../features/governance/management/registry-center.cn.md | 16 ++++++++++------
.../features/governance/management/registry-center.en.md | 16 ++++++++++------
.../configuration/authentication.cn.md | 10 +++++++---
.../configuration/authentication.en.md | 10 +++++++---
4 files changed, 34 insertions(+), 18 deletions(-)
diff --git
a/docs/document/content/features/governance/management/registry-center.cn.md
b/docs/document/content/features/governance/management/registry-center.cn.md
index f9bf802..6e366df 100644
--- a/docs/document/content/features/governance/management/registry-center.cn.md
+++ b/docs/document/content/features/governance/management/registry-center.cn.md
@@ -15,11 +15,11 @@ weight = 1
## 注册中心数据结构
-在定义的命名空间下, `users` 、 `props` 和 `metadata` 节点以 YAML 格式存储配置,可通过修改节点来实现对于配置的动态管理。
`states` 存储数据库访问对象运行节点,用于区分不同数据库访问实例。
+在定义的命名空间下, `rules` 、 `props` 和 `metadata` 节点以 YAML 格式存储配置,可通过修改节点来实现对于配置的动态管理。
`states` 存储数据库访问对象运行节点,用于区分不同数据库访问实例。
```
namespace
- ├──users # 权限配置
+ ├──rules # 全局规则配置
├──props # 属性配置
├──metadata # Metadata 配置
├ ├──${schema_1} # Schema 名称1
@@ -45,13 +45,17 @@ namespace
├ ├ ├──....
```
-### /users
+### /rules
-权限配置,可配置访问 ShardingSphere-Proxy 的用户名和密码。
+全局规则配置,可包括访问 ShardingSphere-Proxy 用户名和密码的权限配置。
```yaml
-- [email protected]:root
-- sharding@%:sharding
+- !AUTHORITY
+users:
+ - root@%:root
+ - [email protected]:sharding
+provider:
+ type: NATIVE
```
### /props
diff --git
a/docs/document/content/features/governance/management/registry-center.en.md
b/docs/document/content/features/governance/management/registry-center.en.md
index 3d37d51..a136cb8 100644
--- a/docs/document/content/features/governance/management/registry-center.en.md
+++ b/docs/document/content/features/governance/management/registry-center.en.md
@@ -15,11 +15,11 @@ weight = 1
## Data Structure in Registry Center
-Under defined namespace, `users`, `props` and `metadata` nodes persist in
YAML, modifying nodes can dynamically refresh configurations. `states` node
persist the runtime node of database access object, to distinguish different
database access instances.
+Under defined namespace, `rules`, `props` and `metadata` nodes persist in
YAML, modifying nodes can dynamically refresh configurations. `states` node
persist the runtime node of database access object, to distinguish different
database access instances.
```
namespace
- ├──users # Users configuration
+ ├──rules # Global rule configuration
├──props # Properties configuration
├──metadata # Metadata configuration
├ ├──${schema_1} # Schema name 1
@@ -45,13 +45,17 @@ namespace
├ ├ ├──....
```
-### /users
+### /rules
-user configurations. Can configure the username and password for
ShardingSphere-Proxy.
+global rule configurations, including configure the username and password for
ShardingSphere-Proxy.
```yaml
-- [email protected]:root
-- sharding@%:sharding
+- !AUTHORITY
+users:
+ - root@%:root
+ - [email protected]:sharding
+provider:
+ type: NATIVE
```
### /props
diff --git
a/docs/document/content/user-manual/shardingsphere-proxy/configuration/authentication.cn.md
b/docs/document/content/user-manual/shardingsphere-proxy/configuration/authentication.cn.md
index d7117f5..b64afb7 100644
---
a/docs/document/content/user-manual/shardingsphere-proxy/configuration/authentication.cn.md
+++
b/docs/document/content/user-manual/shardingsphere-proxy/configuration/authentication.cn.md
@@ -7,7 +7,11 @@ weight = 2
配置用户名、密码、可访问的数据库后,必须使用正确的用户名、密码才可登录。
```yaml
- users:
- - root@:root # <username>@<hostname>:<password>
- - sharding@%:sharding
+rules:
+ - !AUTHORITY
+ users:
+ - root@localhost:root # <username>@<hostname>:<password>
+ - sharding@:sharding
+ provider:
+ type: NATIVE
```
diff --git
a/docs/document/content/user-manual/shardingsphere-proxy/configuration/authentication.en.md
b/docs/document/content/user-manual/shardingsphere-proxy/configuration/authentication.en.md
index 2540919..73f474a 100644
---
a/docs/document/content/user-manual/shardingsphere-proxy/configuration/authentication.en.md
+++
b/docs/document/content/user-manual/shardingsphere-proxy/configuration/authentication.en.md
@@ -6,7 +6,11 @@ weight = 2
It is used to verify the authentication to log in ShardingSphere-Proxy, which
must use correct user name and password after the configuration of them.
```yaml
-users:
- - root@:root # <username>@<hostname>:<password>
- - sharding@%:sharding
+rules:
+ - !AUTHORITY
+ users:
+ - root@localhost:root # <username>@<hostname>:<password>
+ - sharding@:sharding
+ provider:
+ type: NATIVE
```