This is an automated email from the ASF dual-hosted git repository.
shreemaanabhishek pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix.git
The following commit(s) were added to refs/heads/master by this push:
new 6bb6069f6 docs: jwe-decrypt secret length must be 32 chars (#10883)
6bb6069f6 is described below
commit 6bb6069f6b305110c10823fe776502ef71cc401e
Author: Vacant <[email protected]>
AuthorDate: Wed Jan 31 17:25:07 2024 +0800
docs: jwe-decrypt secret length must be 32 chars (#10883)
---
docs/en/latest/plugins/jwe-decrypt.md | 12 ++++++------
docs/zh/latest/plugins/jwe-decrypt.md | 12 ++++++------
2 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/docs/en/latest/plugins/jwe-decrypt.md
b/docs/en/latest/plugins/jwe-decrypt.md
index 155b793e4..9969094af 100644
--- a/docs/en/latest/plugins/jwe-decrypt.md
+++ b/docs/en/latest/plugins/jwe-decrypt.md
@@ -38,11 +38,11 @@ This Plugin adds an endpoint `/apisix/plugin/jwe/encrypt`
for JWE encryption. Fo
For Consumer:
-| Name | Type | Required
| Default | Valid values | Description
|
-|---------------|---------|-------------------------------------------------------|---------|-----------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
-| key | string | True
| | | Unique key for a Consumer.
|
-| secret | string | True
| | | The decryption key. The key could
be saved in a secret manager using the [Secret](../terminology/secret.md)
resource. |
-| is_base64_encoded | boolean | False
| false | | Set to true if the secret is
base64 encoded.
|
+| Name | Type | Required
| Default | Valid values | Description
|
+|---------------|---------|-------------------------------------------------------|---------|-----------------------------|----------------------------------------------------------------------------------------------------------------------------------------------|
+| key | string | True
| | | Unique key for a Consumer.
|
+| secret | string | True
| | | The decryption key. Must be 32
characters. The key could be saved in a secret manager using the
[Secret](../terminology/secret.md) resource. |
+| is_base64_encoded | boolean | False
| false | | Set to true if the secret is
base64 encoded.
|
For Route:
@@ -63,7 +63,7 @@ curl http://127.0.0.1:9180/apisix/admin/consumers -H
'X-API-KEY: edd1c9f034335f1
"plugins": {
"jwe-decrypt": {
"key": "user-key",
- "secret": "key-length-must-be-at-least-32-chars"
+ "secret": "-secret-length-must-be-32-chars-"
}
}
}'
diff --git a/docs/zh/latest/plugins/jwe-decrypt.md
b/docs/zh/latest/plugins/jwe-decrypt.md
index 7ef1f295b..ce5c98fd6 100644
--- a/docs/zh/latest/plugins/jwe-decrypt.md
+++ b/docs/zh/latest/plugins/jwe-decrypt.md
@@ -38,11 +38,11 @@ description: 本文档包含了关于 APISIX jwe-decrypt 插件的相关信息
Consumer 配置:
-| 名称 | 类型 | 必选项 | 默认值 | 有效值 | 描述
|
-|---------------|---------|-------|-------|-----|----------------------------------------------------------------------|
-| key | string | True | | | Consumer 的唯一 key
|
-| secret | string | True | | | 解密密钥。秘钥可以使用
[Secret](../terminology/secret.md) 资源保存在密钥管理服务中(最小 32 位) |
-| is_base64_encoded | boolean | False | false | | 如果密钥是 Base64 编码,则需要配置为
`true` |
+| 名称 | 类型 | 必选项 | 默认值 | 有效值 | 描述
|
+|---------------|---------|-------|-------|-----|-------------------------------------------------------------|
+| key | string | True | | | Consumer 的唯一 key
|
+| secret | string | True | | | 解密密钥,必须为 32 位。秘钥可以使用
[Secret](../terminology/secret.md) 资源保存在密钥管理服务中 |
+| is_base64_encoded | boolean | False | false | | 如果密钥是 Base64 编码,则需要配置为
`true` |
Route 配置:
@@ -63,7 +63,7 @@ curl http://127.0.0.1:9180/apisix/admin/consumers -H
'X-API-KEY: edd1c9f034335f1
"plugins": {
"jwe-decrypt": {
"key": "user-key",
- "secret": "key-length-must-be-at-least-32-chars"
+ "secret": "-secret-length-must-be-32-chars-"
}
}
}'