Skip to content

Commit 0f76ff5

Browse files
committed
[zh-cn]sync certificate-signing-requests
Signed-off-by: xin.li <[email protected]>
1 parent d38e4ee commit 0f76ff5

1 file changed

Lines changed: 27 additions & 2 deletions

File tree

content/zh-cn/docs/reference/access-authn-authz/certificate-signing-requests.md

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -721,12 +721,12 @@ you like. If you want to add a note for human consumption, use the
721721
In Kubernetes {{< skew currentVersion >}}, you must enable support for Pod
722722
Certificates using the `PodCertificateRequest` [feature
723723
gate](/docs/reference/command-line-tools-reference/feature-gates/) and the
724-
`--runtime-config=certificates.k8s.io/v1alpha1/podcertificaterequests=true`
724+
`--runtime-config=certificates.k8s.io/v1beta1/podcertificaterequests=true`
725725
kube-apiserver flag.
726726
-->
727727
在 Kubernetes {{< skew currentVersion >}} 中,你必须使用 `PodCertificateRequest`
728728
[特性门控](/zh-cn/docs/reference/command-line-tools-reference/feature-gates/)和
729-
`--runtime-config=certificates.k8s.io/v1alpha1/podcertificaterequests=true` kube-apiserver
729+
`--runtime-config=certificates.k8s.io/v1beta1/podcertificaterequests=true` kube-apiserver
730730
标志来启用对 Pod 证书的支持。
731731
{{< /note >}}
732732

@@ -773,6 +773,31 @@ PodCertificateRequest 包含以下 spec 字段:
773773
* `pkixPublicKey`:应为其颁发证书的公钥。
774774
* `proofOfPossession`:一个签名,证明请求者控制着与 `pkixPublicKey` 对应的私钥。
775775

776+
<!--
777+
* `unverifiedUserAnnotations`: A map that allows the user to pass additional
778+
information to the signer implementation. It is copied verbatim from the
779+
`userAnnotations` field of the [podCertificate projected volume source](/docs/concepts/storage/projected-volumes#podcertificate).
780+
Entries are subject to the same validation as object metadata annotations,
781+
with the addition that all keys must be domain-prefixed. No restrictions are
782+
placed on values, except an overall size limitation on the entire field. Other
783+
than these basic validations, the API server does not conduct any extra
784+
validations. The signer implementations should be very careful when consuming
785+
this data. Signers must not inherently trust this data without first
786+
performing the appropriate verification steps. Signers should document the
787+
keys and values they support. Signers should deny requests that contain keys
788+
they do not recognize.
789+
-->
790+
* `unverifiedUserAnnotations`:此映射允许用户向签名器实现传递附加信息。
791+
它直接复制自 [podCertificate 投影卷源](/docs/concepts/storage/projected-volumes#podcertificate)的
792+
`userAnnotations` 字段。
793+
条目将接受与对象元数据注释相同的验证,但所有键都必须带有域名前缀。
794+
值本身没有限制,但整个字段的大小有限制。
795+
除了这些基本验证之外,API 服务器不会执行任何额外的验证。
796+
签名器实现在使用这些数据时应格外谨慎。
797+
签名器不应在未执行适当的验证步骤之前就信任这些数据。
798+
签名器应记录其支持的键和值。
799+
签名器应拒绝包含其无法识别的键的请求。
800+
776801
<!--
777802
Nodes automatically receive permissions to create PodCertificateRequests and
778803
read PodCertificateRequests related to them (as determined by the

0 commit comments

Comments
 (0)