You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/01/19 10:33:41 UTC

[GitHub] [apisix] tokers commented on a change in pull request #6127: docs: update the jwt-auth zh version

tokers commented on a change in pull request #6127:
URL: https://github.com/apache/apisix/pull/6127#discussion_r787603505



##########
File path: docs/zh/latest/plugins/jwt-auth.md
##########
@@ -107,6 +115,68 @@ curl http://127.0.0.1:9080/apisix/admin/routes/1 -H 'X-API-KEY: edd1c9f034335f13
 }'
 ```
 
+### 启用具有 Vault 兼容性的 jwt-auth
+
+有时候在生产中拥有一个集中式密钥管理解决方案,如 `Vault` 是很自然的。您不必每次在您的组织更改部分签署密钥(HS256/HS512 的密钥或 RS256 的 public_key 和 private_key)时更新 APISIX 消费者。或者出于隐私考虑,您不想通过 APISIX admin APIs 使用密钥。APISIX 在这里为您提供了保障,`jwt-auth` 能够引用 Vault 的密钥。
+
+**注意**:对于该集成支持的早期版本,该插件期望存储在 Vault 路径中的密钥名称为「`secret`,`public_key`,`private_key`」其中之一,方可成功使用该密钥。在未来的版本中,我们将添加对引用自定义命名键的支持。
+
+要启用 Vault 的兼容性,只需要在 `jwt-auth` 插件内添加空的 Vault 对象。

Review comment:
       The statement is not so casual.

##########
File path: docs/zh/latest/plugins/jwt-auth.md
##########
@@ -107,6 +115,68 @@ curl http://127.0.0.1:9080/apisix/admin/routes/1 -H 'X-API-KEY: edd1c9f034335f13
 }'
 ```
 
+### 启用具有 Vault 兼容性的 jwt-auth
+
+有时候在生产中拥有一个集中式密钥管理解决方案,如 `Vault` 是很自然的。您不必每次在您的组织更改部分签署密钥(HS256/HS512 的密钥或 RS256 的 public_key 和 private_key)时更新 APISIX 消费者。或者出于隐私考虑,您不想通过 APISIX admin APIs 使用密钥。APISIX 在这里为您提供了保障,`jwt-auth` 能够引用 Vault 的密钥。

Review comment:
       ```suggestion
   有时候在生产中拥有一个集中式密钥管理解决方案,如 `Vault` 是很自然的。您不必每次在您的组织更改部分签署密钥(HS256/HS512 的密钥或 RS256 的 public_key 和 private_key)时更新 APISIX Consumer。或者出于隐私考虑,您不想通过 APISIX admin APIs 使用密钥。APISIX 在这里为您提供了保障,`jwt-auth` 能够引用 Vault 的密钥。
   ```
   
   Basically we don't translate the term `Consumer` in APISIX.




-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org