Skip to content

Commit b890226

Browse files
authored
Merge pull request #27356 from fancc/tokens
resolve some format errors
2 parents 3b1b77b + 96ab2b0 commit b890226

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

content/zh/docs/reference/access-authn-authz/bootstrap-tokens.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Controller Manager. The tokens are also used to create a signature for a
4343
specific ConfigMap used in a "discovery" process through a BootstrapSigner
4444
controller.
4545
-->
46-
启动引导令牌被定义成一个特定类型的 Secret `bootstrap.kubernetes.io/token`),
46+
启动引导令牌被定义成一个特定类型的 Secret(`bootstrap.kubernetes.io/token`),
4747
并存在于 `kube-system` 名字空间中。
4848
这些 Secret 会被 API 服务器上的启动引导认证组件(Bootstrap Authenticator)读取。
4949
控制器管理器中的控制器 TokenCleaner 能够删除过期的令牌。
@@ -66,9 +66,9 @@ only be shared with trusted parties.
6666
启动引导令牌使用 `abcdef.0123456789abcdef` 的形式。
6767
更加规范地说,它们必须符合正则表达式 `[a-z0-9]{6}\.[a-z0-9]{16}`
6868

69-
令牌的第一部分是 "Token ID",它是一种公开信息,用于引用令牌并确保不会
69+
令牌的第一部分是 Token ID,它是一种公开信息,用于引用令牌并确保不会
7070
泄露认证所使用的秘密信息。
71-
第二部分是"令牌秘密(Token Secret)",它应该被共享给受信的第三方。
71+
第二部分是令牌秘密(Token Secret),它应该被共享给受信的第三方。
7272

7373
## 启用启动引导令牌
7474

@@ -275,7 +275,7 @@ verify the JWS using the `HS256` scheme (HMAC-SHA256) with the full token (e.g.
275275
`07401b.f395accd246ae52d`) as the shared secret. Users _must_ verify that HS256
276276
is used.
277277
-->
278-
签名是一个使用 "detached" 模式生成的 JWS 签名。
278+
签名是一个使用 detached 模式生成的 JWS 签名。
279279
为了检验签名,用户应该按照 JWS 规则(base64 编码且丢掉结尾的 `=`)对
280280
`kubeconfig` 的载荷进行编码。完成编码的载荷会被插入到两个句点中间,形成完整的
281281
JWS。你可以使用完整的令牌(比如 `07401b.f395accd246ae52d`)作为共享密钥,

0 commit comments

Comments
 (0)