Skip to content

Commit 761a587

Browse files
authored
Merge pull request #35797 from hs0210/authentication
[zh-cn] resync: authentication.md
2 parents 7bad15b + 629da1d commit 761a587

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

content/zh-cn/docs/reference/access-authn-authz/authentication.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -315,17 +315,20 @@ how to manage these tokens with `kubeadm`.
315315
A service account is an automatically enabled authenticator that uses signed
316316
bearer tokens to verify requests. The plugin takes two optional flags:
317317
318-
* `--service-account-key-file` A file containing a PEM encoded key for signing bearer tokens.
319-
If unspecified, the API server's TLS private key will be used.
318+
* `--service-account-key-file` File containing PEM-encoded x509 RSA or ECDSA
319+
private or public keys, used to verify ServiceAccount tokens. The specified file
320+
can contain multiple keys, and the flag can be specified multiple times with
321+
different files. If unspecified, --tls-private-key-file is used.
320322
* `--service-account-lookup` If enabled, tokens which are deleted from the API will be revoked.
321323
-->
322324
### 服务账号令牌 {#service-account-tokens}
323325

324326
服务账号(Service Account)是一种自动被启用的用户认证机制,使用经过签名的持有者令牌来验证请求。
325327
该插件可接受两个可选参数:
326328

327-
* `--service-account-key-file` 一个包含用来为持有者令牌签名的 PEM 编码密钥。
328-
若未指定,则使用 API 服务器的 TLS 私钥。
329+
* `--service-account-key-file` 文件包含 PEM 编码的 x509 RSA 或 ECDSA 私钥或公钥,
330+
用于验证 ServiceAccount 令牌。这样指定的文件可以包含多个密钥,
331+
并且可以使用不同的文件多次指定此参数。若未指定,则使用 --tls-private-key-file 参数。
329332
* `--service-account-lookup` 如果启用,则从 API 删除的令牌会被回收。
330333

331334
<!--

0 commit comments

Comments
 (0)