monkeyDluffy6017 commented on code in PR #8403:
URL: https://github.com/apache/apisix/pull/8403#discussion_r1034220292


##########
docs/zh/latest/plugin-develop.md:
##########
@@ -273,6 +273,37 @@ function _M.check_schema(conf, schema_type)
 end
 ```
 
+指定参数需要被加密存储(需要 APISIX 版本大于 3.0.1)
+
+有些插件需要将参数加密存储,比如 `basic-auth` 插件的 `password` 参数。这个插件需要在 `schema` 
中指定哪些参数需要被加密存储。
+
+```lua
+password = { type = "string", encrypted = true },
+```
+
+通过在 `schema` 中指定 `encrypted = true`,可以将参数加密存储。APISIX 将提供以下功能:
+
+- 通过 `Admin API` 来新增和更新资源时,对于 `encrypted = true` 的参数,APISIX 会自动加密存储在 etcd 中
+- 通过 `Admin API` 来获取资源时,对于 `encrypted = true` 的参数,APISIX 会自动解密返回
+- APISIX 在使用 `encrypted = true` 的参数时,会自动解密

Review Comment:
   can we delete one of them?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to