Skip to content

Commit abcaf13

Browse files
committed
[zh] Sync access-authn-authz/authentication.md
1 parent 8c38cb8 commit abcaf13

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

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

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,17 +56,13 @@ presents a valid certificate signed by the cluster's certificate authority
5656
the username from the common name field in the 'subject' of the cert (e.g.,
5757
"/CN=bob"). From there, the role based access control (RBAC) sub-system would
5858
determine whether the user is authorized to perform a specific operation on a
59-
resource. For more details, refer to the normal users topic in
60-
[certificate request](/docs/reference/access-authn-authz/certificate-signing-requests/#normal-user)
61-
for more details about this.
59+
resource.
6260
-->
6361
尽管无法通过 API 调用来添加普通用户,
6462
Kubernetes 仍然认为能够提供由集群的证书机构签名的合法证书的用户是通过身份认证的用户。
6563
基于这样的配置,Kubernetes 使用证书中的 'subject' 的通用名称(Common Name)字段
6664
(例如,"/CN=bob")来确定用户名。
6765
接下来,基于角色访问控制(RBAC)子系统会确定用户是否有权针对某资源执行特定的操作。
68-
进一步的细节可参阅[证书请求](/zh-cn/docs/reference/access-authn-authz/certificate-signing-requests/#normal-user)
69-
下普通用户主题。
7066

7167
<!--
7268
In contrast, service accounts are users managed by the Kubernetes API. They are
@@ -2680,7 +2676,6 @@ to run successfully) is declared via the `user.exec.interactiveMode` field in th
26802676
below for valid values). The `user.exec.interactiveMode` field is optional in `client.authentication.k8s.io/v1beta1`
26812677
and required in `client.authentication.k8s.io/v1`.
26822678
-->
2683-
26842679
在交互式会话(即,某终端)中运行时,`stdin` 是直接暴露给插件使用的。
26852680
插件应该使用来自 `KUBERNETES_EXEC_INFO` 环境变量的 `ExecCredential`
26862681
输入对象中的 `spec.interactive` 字段来确定是否提供了 `stdin`。
@@ -2710,7 +2705,8 @@ and required in `client.authentication.k8s.io/v1`.
27102705
To use bearer token credentials, the plugin returns a token in the status of the
27112706
[`ExecCredential`](/docs/reference/config-api/client-authentication.v1beta1/#client-authentication-k8s-io-v1beta1-ExecCredential)
27122707
-->
2713-
与使用持有者令牌凭据,插件在 [`ExecCredential`](/zh-cn/docs/reference/config-api/client-authentication.v1beta1/#client-authentication-k8s-io-v1beta1-ExecCredential)
2708+
要使用持有者令牌凭据,此插件将在
2709+
[`ExecCredential`](/zh-cn/docs/reference/config-api/client-authentication.v1beta1/#client-authentication-k8s-io-v1beta1-ExecCredential)
27142710
的状态中返回一个令牌:
27152711

27162712
{{< tabs name="exec_plugin_ExecCredential_example_1" >}}
@@ -3102,8 +3098,11 @@ You can only make `SelfSubjectReview` requests if:
31023098
## {{% heading "whatsnext" %}}
31033099

31043100
<!--
3101+
* To learn about issuing certificates for users, read [Issue a Certificate for a Kubernetes API Client Using A CertificateSigningRequest](/docs/tasks/tls/certificate-issue-client-csr/)
31053102
* Read the [client authentication reference (v1beta1)](/docs/reference/config-api/client-authentication.v1beta1/)
31063103
* Read the [client authentication reference (v1)](/docs/reference/config-api/client-authentication.v1/)
31073104
-->
3105+
* 要了解为用户颁发证书的有关信息,
3106+
阅读[使用 CertificateSigningRequest 为 Kubernetes API 客户端颁发证书](/zh-cn/docs/tasks/tls/certificate-issue-client-csr/)。
31083107
* 阅读[客户端认证参考文档(v1beta1)](/zh-cn/docs/reference/config-api/client-authentication.v1beta1/)。
31093108
* 阅读[客户端认证参考文档(v1)](/zh-cn/docs/reference/config-api/client-authentication.v1/)。

0 commit comments

Comments
 (0)