Skip to content

Commit bee2cbd

Browse files
authored
Add security tips for mock plugin. (apache#893)
1 parent e6324b8 commit bee2cbd

File tree

4 files changed

+7
-0
lines changed

4 files changed

+7
-0
lines changed

docs/plugin-center/mock/mock-plugin.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ description: mock plugin
1919
* Set the status code and body of the request.
2020
* Support configuration `${}` placeholder to automatically generate data.
2121

22+
* **Note:** In order to support a more flexible data generation method, the mock plug-in supports users to use SpEL expressions to generate mock data. Using SpEL expressions may lead to the risk of executing malicious scripts or applying destructive programs. We recommend that you be extra careful when using them, use them in a safe environment as much as possible, such as an intranet environment, and follow security best practices.
23+
2224
## 1.4 Plugin Code
2325

2426
* Core module ```shenyu-plugin-mock```

i18n/zh/docusaurus-plugin-content-docs/current/plugin-center/mock/mock-plugin.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ description: mock插件
1818

1919
* 设置请求的响应状态码和响应体。
2020
* 支持配置 `${}` 占位符自动生成数据。
21+
* **注意:** mock 插件为了支持更加灵活的数据生成方式,支持用户使用 SpEL 表达式生mock数据。使用SpEL表达式可能会导致执行恶意脚本或应用破坏性程序的风险。我们建议您在使用时格外小心,尽可能在安全的环境中使用,例如内网环境,并遵循安全最佳实践。
22+
2123

2224
## 1.4 插件代码
2325

i18n/zh/docusaurus-plugin-content-docs/version-2.5.1/plugin-center/mock/mock-plugin.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ description: mock插件
1818

1919
* 设置请求的响应状态码和响应体。
2020
* 支持配置 `${}` 占位符自动生成数据。
21+
* **注意:** mock 插件为了支持更加灵活的数据生成方式,支持用户使用 SpEL 表达式生mock数据。使用SpEL表达式可能会导致执行恶意脚本或应用破坏性程序的风险。我们建议您在使用时格外小心,尽可能在安全的环境中使用,例如内网环境,并遵循安全最佳实践。
2122

2223
## 1.4 插件代码
2324

versioned_docs/version-2.5.1/plugin-center/mock/mock-plugin.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ description: mock plugin
1919
* Set the status code and body of the request.
2020
* Support configuration `${}` placeholder to automatically generate data.
2121

22+
* **Note:** In order to support a more flexible data generation method, the mock plug-in supports users to use SpEL expressions to generate mock data. Using SpEL expressions may lead to the risk of executing malicious scripts or applying destructive programs. We recommend that you be extra careful when using them, use them in a safe environment as much as possible, such as an intranet environment, and follow security best practices.
23+
2224
## 1.4 Plugin Code
2325

2426
* Core module ```shenyu-plugin-mock```

0 commit comments

Comments
 (0)