Baoyuantop commented on code in PR #11629:
URL: https://github.com/apache/apisix/pull/11629#discussion_r2807114896


##########
docs/zh/latest/plugins/opa.md:
##########
@@ -30,28 +28,29 @@ description: 本篇文档介绍了 Apache APISIX 通过 opa 插件与 Open Polic
 
 ## 描述
 
-`opa` 插件可用于与 [Open Policy Agent](https://www.openpolicyagent.org) 
进行集成,实现后端服务的认证授权与访问服务等功能解耦,减少系统复杂性。
+`opa` 插件可用于与 [Open Policy Agent (OPA)](https://www.openpolicyagent.org) 集成。OPA 
是一个策略引擎,帮助定义和执行授权策略,用以判断用户或应用程序是否拥有执行特定操作或访问特定资源的必要权限。将 OPA 与 APISIX 
配合使用可以将授权逻辑从 APISIX 中解耦。
 
 ## 属性
 
-| 名称              | 类型    | 必选项 | 默认值 | 有效值  | 描述                              
                                                                                
                                                                  |
-|-------------------|---------|----------|---------|---------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| 名称              | 类型    | 是否必需 | 默认值   | 有效值        | 描述                     
                                                                                
                                                                              |
+|-------------------|---------|----------|---------|---------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
 | host              | string  | 是     |         |               | OPA 
服务的主机地址,例如 `https://localhost:8181`。                                            
                                                                       |
 | ssl_verify        | boolean | 否    | true    |               | 当设置为 `true` 
时,将验证 SSL 证书。                                                                   
                                                                       |
-| policy            | string  | 是     |         |               | OPA 策略路径,是 
`package` 和 `decision` 配置的组合。当使用高级功能(如自定义响应)时,你可以省略 `decision` 配置。              
                                    |
+| policy            | string  | 是     |         |               | OPA 策略路径,是 
`package` 和 `decision` 配置的组合。当使用高级功能(如自定义响应)时,你可以省略 `decision` 
配置。指定命名空间时,请使用斜杠格式(例如 `examples/echo`),而不是点号格式(例如 `examples.echo`)。        |
 | timeout           | integer | 否    | 3000ms  | [1, 60000]ms  | 设置 HTTP 
调用超时时间。                                                                         
                                                                                
       |
 | keepalive         | boolean | 否    | true    |               | 当设置为 `true` 
时,将为多个请求保持连接并处于活动状态。                                                            
                                                                   |
 | keepalive_timeout | integer | 否    | 60000ms | [1000, ...]ms | 连接断开后的闲置时间。   
                                                                                
                                                                                
     |
 | keepalive_pool    | integer | 否    | 5       | [1, ...]ms    | 连接池限制。        
                                                                                
                                                                            |
 | with_route        | boolean | 否    | false   |               | 当设置为 `true` 
时,发送关于当前 Route 的信息。                                                             
                                                                 |
 | with_service      | boolean | 否    | false   |               | 当设置为 `true` 
时,发送关于当前 Service 的信息。                                                           
                                                                 |
 | with_consumer     | boolean | 否    | false   |               | 当设置为 `true` 
时,发送关于当前 Consumer 的信息。注意,这可能会发送敏感信息,如 API key。请确保在安全的情况下才打开它。 |
+| with_body         | boolean | 否       | false   |               | 设置为 `true` 
时,发送请求体。注意这可能会发送密码或 API 密钥等敏感信息。确保仅在理解安全隐患的情况下启用此功能。                            
                                            |
 
 ## 数据定义
 
-### APISIX 向 OPA 发送信息

Review Comment:
   Please remove irrelevant changes from the Chinese documentation.



-- 
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