File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
content/zh-cn/docs/reference/access-authn-authz Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -315,17 +315,20 @@ how to manage these tokens with `kubeadm`.
315
315
A service account is an automatically enabled authenticator that uses signed
316
316
bearer tokens to verify requests. The plugin takes two optional flags:
317
317
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.
320
322
* `--service-account-lookup` If enabled, tokens which are deleted from the API will be revoked.
321
323
-->
322
324
### 服务账号令牌 {#service-account-tokens}
323
325
324
326
服务账号(Service Account)是一种自动被启用的用户认证机制,使用经过签名的持有者令牌来验证请求。
325
327
该插件可接受两个可选参数:
326
328
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 参数。
329
332
* ` --service-account-lookup ` 如果启用,则从 API 删除的令牌会被回收。
330
333
331
334
<!--
You can’t perform that action at this time.
0 commit comments