This is an automated email from the ASF dual-hosted git repository.
xiaoyu pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-shenyu-website.git
The following commit(s) were added to refs/heads/main by this push:
new 93d4f4a Fix cryptor plugin page (#319)
93d4f4a is described below
commit 93d4f4ab68ace07cf30f6417629e90026333d69b
Author: Kunshuai Zhu <[email protected]>
AuthorDate: Fri Oct 22 10:58:12 2021 +0800
Fix cryptor plugin page (#319)
---
.../cryptor-request-plugin.md | 4 +-
.../cryptor-response-plugin.md | 4 +-
.../cryptor-request-plugin-zh.md | 60 ----------------------
.../cryptor-request-plugin.md | 6 +--
.../cryptor-response-plugin-zh.md | 60 ----------------------
.../cryptor-response-plugin.md | 4 +-
6 files changed, 9 insertions(+), 129 deletions(-)
diff --git
a/docs/plugin-center/authority-and-certification/cryptor-request-plugin.md
b/docs/plugin-center/authority-and-certification/cryptor-request-plugin.md
index a6325d2..3ddc7e0 100644
--- a/docs/plugin-center/authority-and-certification/cryptor-request-plugin.md
+++ b/docs/plugin-center/authority-and-certification/cryptor-request-plugin.md
@@ -43,13 +43,13 @@ description: CryptorRequest plugin
* Add support for `cryptorRequest` in the `pom.xml` file of shenyu-bootstrap.
```xml
- <!-- apache shenyu Cryptor Request plugin start-->
+<!-- apache shenyu Cryptor Request plugin start-->
<dependency>
<groupId>org.apache.shenyu</groupId>
<artifactId>shenyu-spring-boot-starter-plugin-cryptor</artifactId>
<version>${project.version}</version>
</dependency>
- <!-- apache shenyu Cryptor Request plugin end-->
+<!-- apache shenyu Cryptor Request plugin end-->
```
## Situation
diff --git
a/docs/plugin-center/authority-and-certification/cryptor-response-plugin.md
b/docs/plugin-center/authority-and-certification/cryptor-response-plugin.md
index c23cb6f..041fee6 100644
--- a/docs/plugin-center/authority-and-certification/cryptor-response-plugin.md
+++ b/docs/plugin-center/authority-and-certification/cryptor-response-plugin.md
@@ -44,13 +44,13 @@ description: CryptorResponse plugin
* Add support for `cryptorResponse` in the `pom.xml` file of shenyu-bootstrap.
```xml
- <!-- apache shenyu Cryptor Response plugin start-->
+<!-- apache shenyu Cryptor Response plugin start-->
<dependency>
<groupId>org.apache.shenyu</groupId>
<artifactId>shenyu-spring-boot-starter-plugin-cryptor</artifactId>
<version>${project.version}</version>
</dependency>
- <!-- apache shenyu Cryptor Response plugin end-->
+<!-- apache shenyu Cryptor Response plugin end-->
```
## Situation
diff --git
a/i18n/zh/docusaurus-plugin-content-docs/current/plugin-center/authority-and-certification/cryptor-request-plugin-zh.md
b/i18n/zh/docusaurus-plugin-content-docs/current/plugin-center/authority-and-certification/cryptor-request-plugin-zh.md
deleted file mode 100644
index bda67bf..0000000
---
a/i18n/zh/docusaurus-plugin-content-docs/current/plugin-center/authority-and-certification/cryptor-request-plugin-zh.md
+++ /dev/null
@@ -1,60 +0,0 @@
----
-title: CryptorRequest 插件
-keywords: ["CryptorRequest"]
-description: CryptorRequest 插件
----
-
-## 说明
-
-* `cryptorRequest` 插件是通过 `fieldNames` 去匹配 `requestBody` 里面的参数进行 `解密` 处理,替换当前
`requestBody` 内容。
-
-## 插件设置
-
-1. 在 `shenyu-admin` --> 基础配置 --> 插件管理 --> `cryptor_request` 设置为开启。
-
-<img src="/img/shenyu/plugin/cryptor/enable-plugin.png" width="80%"
height="80%" />
-
-2. 打开 `selector` 配置需要匹配的流量。
-
-3. 打开 `selector` 对应的 `Rules` 配置。
-
- <img src="/img/shenyu/plugin/cryptor/cryptor-request-rules-config.png"
width="80%" height="80%" />
-
- * strategyName: 解密算法名称。当前基于 shenyu 的 SPI 机制,可自定义加解密算法,
- 需要实现 `org.apache.shenyu.plugin.cryptor.strategy.CryptorStrategy` 接口。
-
- 同时找到 `resources/META-INF/shenyu/` 底下的
`org.apache.shenyu.plugin.cryptor.strategy.CryptorStrategy` 文件,
- 写上算法名称以及实现的 `CryptorStrategy` 接口的 class 的包名。
-
- * fieldNames: 匹配的参数名,支持解析多层次的 json 格式匹配,使用 `.` 分割,例如 data.id 。
-
-```json5
- {
- data: {
- "id": ""
- }
- }
-```
-
- * key: 秘钥,用于解密数据。
-
-## 插件使用
-
-* 在网关的 `pom.xml` 文件中添加 `cryptorRequest` 的支持。
-
-```xml
- <!-- apache shenyu Cryptor Request plugin start-->
-<dependency>
- <groupId>org.apache.shenyu</groupId>
- <artifactId>shenyu-spring-boot-starter-plugin-cryptor</artifactId>
- <version>${project.version}</version>
-</dependency>
- <!-- apache shenyu Cryptor Request plugin end-->
-```
-
-## 场景
-
-防互联网黑产,恶意获取数据。提高数据安全性。
-
-
-
diff --git
a/i18n/zh/docusaurus-plugin-content-docs/current/plugin-center/authority-and-certification/cryptor-request-plugin.md
b/i18n/zh/docusaurus-plugin-content-docs/current/plugin-center/authority-and-certification/cryptor-request-plugin.md
index dbcc77c..61e59a1 100644
---
a/i18n/zh/docusaurus-plugin-content-docs/current/plugin-center/authority-and-certification/cryptor-request-plugin.md
+++
b/i18n/zh/docusaurus-plugin-content-docs/current/plugin-center/authority-and-certification/cryptor-request-plugin.md
@@ -12,7 +12,7 @@ description: CryptorRequest 插件
1. 在 `shenyu-admin` --> 基础配置 --> 插件管理 --> `cryptor_request` 设置为开启。
-<img src="/img/shenyu/plugin/cryptor/enable-plugin.png" width="80%"
height="80%" />
+<img src="/img/shenyu/plugin/cryptor/enable-cryptor-request-plugin.png"
width="80%" height="80%" />
2. 打开 `selector` 配置需要匹配的流量。
@@ -43,13 +43,13 @@ description: CryptorRequest 插件
* 在网关的 `pom.xml` 文件中添加 `cryptorRequest` 的支持。
```xml
- <!-- apache shenyu Cryptor Request plugin start-->
+<!-- apache shenyu Cryptor Request plugin start-->
<dependency>
<groupId>org.apache.shenyu</groupId>
<artifactId>shenyu-spring-boot-starter-plugin-cryptor</artifactId>
<version>${project.version}</version>
</dependency>
- <!-- apache shenyu Cryptor Request plugin end-->
+<!-- apache shenyu Cryptor Request plugin end-->
```
## 场景
diff --git
a/i18n/zh/docusaurus-plugin-content-docs/current/plugin-center/authority-and-certification/cryptor-response-plugin-zh.md
b/i18n/zh/docusaurus-plugin-content-docs/current/plugin-center/authority-and-certification/cryptor-response-plugin-zh.md
deleted file mode 100644
index d6459e0..0000000
---
a/i18n/zh/docusaurus-plugin-content-docs/current/plugin-center/authority-and-certification/cryptor-response-plugin-zh.md
+++ /dev/null
@@ -1,60 +0,0 @@
----
-title: CryptorResponse 插件
-keywords: ["CryptorResponse"]
-description: CryptorResponse 插件
----
-
-## 说明
-
-* `CryptorResponse` 插件是通过 `fieldNames` 去匹配 `responseBody` 里面的参数进行 `加密` 处理,替换当前
`fieldNames` 对应内容。
-
-## 插件设置
-
-1. 在 `shenyu-admin` --> 基础配置 --> 插件管理 --> `cryptor_response` 设置为开启。
-
-<img src="/img/shenyu/plugin/cryptor/enable-cryptor-response-plugin.png"
width="80%" height="80%" />
-
-2. 打开 `selector` 配置需要匹配的流量。
-
-3. 打开 `selector` 对应的 `Rules` 配置。
-
-<img src="/img/shenyu/plugin/cryptor/cryptor-response-rules-config.png"
width="80%" height="80%" />
-
-* strategyName: 解密算法名称。当前基于 shenyu 的 SPI 机制,可自定义加解密算法,
- 需要实现 `org.apache.shenyu.plugin.cryptor.strategy.CryptorStrategy` 接口。
-
- 同时找到 `resources/META-INF/shenyu/` 底下的
`org.apache.shenyu.plugin.cryptor.strategy.CryptorStrategy` 文件,
- 写上算法名称以及实现的 `CryptorStrategy` 接口的 class 的包名。
-
-* fieldNames: 匹配的参数名,支持解析多层次的 json 格式匹配,使用 `.` 分割,例如 data.id 。
-
-```json5
- {
- data: {
- "id": ""
- }
- }
-```
-
-* key: 秘钥,用于加密数据。
-
-## 插件使用
-
-* 在网关的 `pom.xml` 文件中添加 `cryptorResponse` 的支持。
-
-```xml
- <!-- apache shenyu Cryptor Response plugin start-->
-<dependency>
- <groupId>org.apache.shenyu</groupId>
- <artifactId>shenyu-spring-boot-starter-plugin-cryptor</artifactId>
- <version>${project.version}</version>
-</dependency>
- <!-- apache shenyu Cryptor Response plugin end-->
-```
-
-## 场景
-
-防互联网黑产,恶意获取数据。提高数据安全性。
-
-
-
diff --git
a/i18n/zh/docusaurus-plugin-content-docs/current/plugin-center/authority-and-certification/cryptor-response-plugin.md
b/i18n/zh/docusaurus-plugin-content-docs/current/plugin-center/authority-and-certification/cryptor-response-plugin.md
index d6459e0..87af8ce 100644
---
a/i18n/zh/docusaurus-plugin-content-docs/current/plugin-center/authority-and-certification/cryptor-response-plugin.md
+++
b/i18n/zh/docusaurus-plugin-content-docs/current/plugin-center/authority-and-certification/cryptor-response-plugin.md
@@ -43,13 +43,13 @@ description: CryptorResponse 插件
* 在网关的 `pom.xml` 文件中添加 `cryptorResponse` 的支持。
```xml
- <!-- apache shenyu Cryptor Response plugin start-->
+<!-- apache shenyu Cryptor Response plugin start-->
<dependency>
<groupId>org.apache.shenyu</groupId>
<artifactId>shenyu-spring-boot-starter-plugin-cryptor</artifactId>
<version>${project.version}</version>
</dependency>
- <!-- apache shenyu Cryptor Response plugin end-->
+<!-- apache shenyu Cryptor Response plugin end-->
```
## 场景