This is an automated email from the ASF dual-hosted git repository.
sunnianjun 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 0645a505a20 Update some wrong content in data masking document (#23158)
0645a505a20 is described below
commit 0645a505a2026a7736205a77b736e52da9528265
Author: Zhengqiang Duan <[email protected]>
AuthorDate: Thu Dec 29 15:53:02 2022 +0800
Update some wrong content in data masking document (#23158)
---
.../shardingsphere-jdbc/java-api/rules/mask.en.md | 2 +-
.../yaml-config/rules/mask.cn.md | 2 +-
.../yaml-config/rules/mask.en.md | 24 ----------------------
3 files changed, 2 insertions(+), 26 deletions(-)
diff --git
a/docs/document/content/user-manual/shardingsphere-jdbc/java-api/rules/mask.en.md
b/docs/document/content/user-manual/shardingsphere-jdbc/java-api/rules/mask.en.md
index c2a4e59a6fe..afe36f76a68 100644
---
a/docs/document/content/user-manual/shardingsphere-jdbc/java-api/rules/mask.en.md
+++
b/docs/document/content/user-manual/shardingsphere-jdbc/java-api/rules/mask.en.md
@@ -18,7 +18,7 @@ Attributes:
| *Name* | *DataType* |
*Description*
| *Default Value* |
| ------------------------- | -------------------------------------------
|------------------------------------------------------------------------------------------------|
--------------- |
| tables (+) | Collection\<MaskTableRuleConfiguration\> | Mask
table rule configurations
| |
-| encryptors (+) | Map\<String, AlgorithmConfiguration\> |
Mask algorithm name and configurations
| |
+| maskAlgorithms (+) | Map\<String, AlgorithmConfiguration\>
| Mask algorithm name and configurations
| |
### Mask Table Rule Configuration
diff --git
a/docs/document/content/user-manual/shardingsphere-jdbc/yaml-config/rules/mask.cn.md
b/docs/document/content/user-manual/shardingsphere-jdbc/yaml-config/rules/mask.cn.md
index e103128fd35..e149c8100d3 100644
---
a/docs/document/content/user-manual/shardingsphere-jdbc/yaml-config/rules/mask.cn.md
+++
b/docs/document/content/user-manual/shardingsphere-jdbc/yaml-config/rules/mask.cn.md
@@ -30,7 +30,7 @@ rules:
## 操作步骤
-1. 在 YAML 文件中配置数据加密规则,包含数据源、脱敏规则、全局属性等配置项;
+1. 在 YAML 文件中配置数据脱敏规则,包含数据源、脱敏规则、全局属性等配置项;
2. 调用 YamlShardingSphereDataSourceFactory 对象的 createDataSource 方法,根据 YAML
文件中的配置信息创建 ShardingSphereDataSource。
## 配置示例
diff --git
a/docs/document/content/user-manual/shardingsphere-jdbc/yaml-config/rules/mask.en.md
b/docs/document/content/user-manual/shardingsphere-jdbc/yaml-config/rules/mask.en.md
index 1da7129a2e0..29ddec656e1 100644
---
a/docs/document/content/user-manual/shardingsphere-jdbc/yaml-config/rules/mask.en.md
+++
b/docs/document/content/user-manual/shardingsphere-jdbc/yaml-config/rules/mask.en.md
@@ -11,30 +11,6 @@ Based on the YAML configuration, ShardingSphere
automatically completes the crea
## Parameters
```yaml
-rules:
-- !ENCRYPT
- tables:
- <table_name> (+): # Encrypt table name
- columns:
- <column_name> (+): # Encrypt logic column name
- plainColumn (?): # Plain column name
- cipherColumn: # Cipher column name
- encryptorName: # Cipher encrypt algorithm name
- assistedQueryColumn (?): # Assisted query column name
- assistedQueryEncryptorName: # Assisted query encrypt algorithm name
- likeQueryColumn (?): # Like query column name
- likeQueryEncryptorName: # Like query encrypt algorithm name
- queryWithCipherColumn(?): # The current table whether query with cipher
column for data encrypt.
-
- # Encrypt algorithm configuration
- encryptors:
- <encrypt_algorithm_name> (+): # Encrypt algorithm name
- type: # Encrypt algorithm type
- props: # Encrypt algorithm properties
- # ...
-
- queryWithCipherColumn: # Whether query with cipher column for data encrypt.
User you can use plaintext to query if have
-
rules:
- !MASK
tables: