diff --git a/content/zh-cn/docs/concepts/security/secrets-good-practices.md b/content/zh-cn/docs/concepts/security/secrets-good-practices.md index e25e3370c2..e5a016b95e 100644 --- a/content/zh-cn/docs/concepts/security/secrets-good-practices.md +++ b/content/zh-cn/docs/concepts/security/secrets-good-practices.md @@ -24,8 +24,8 @@ application developers. Use these guidelines to improve the security of your sensitive information in Secret objects, as well as to more effectively manage your Secrets. --> -以下良好实践适用于集群管理员和应用开发者。遵从这些指导方针有助于提高 Secret 对象中敏感信息的安全性, -还可以更有效地管理你的 Secret。 +以下良好实践适用于集群管理员和应用开发者。遵从这些指导方针有助于提高 Secret +对象中敏感信息的安全性,还可以更有效地管理你的 Secret。 @@ -112,6 +112,20 @@ recommendations include: * 使用生命期短暂的 Secret * 实现对特定事件发出警报的审计规则,例如同一用户并发读取多个 Secret 时发出警报 + +#### 用于 Secret 管理的附加 ServiceAccount 注解 + +你还可以在 ServiceAccount 上使用 `kubernetes.io/enforce-mountable-secrets` +注解来强制执行有关如何在 Pod 中使用 Secret 的特定规则。 + +更多详细信息,请参阅[有关此注解的文档](/zh-cn/docs/reference/labels-annotations-taints/#enforce-mountable-secrets)。 + ' to encrypt all resources within a group or '.' to encrypt all resources. -'.' can be used to encrypt all resource in the core group. '.' will encrypt all +Use '*<group>o encrypt all resources within a group or '*.*' to encrypt all resources. +'*.' can be used to encrypt all resource in the core group. '*.*' will encrypt all resources, even custom resources that are added after API server start. Use of wildcards that overlap within the same resource list or across multiple entries are not allowed since part of the configuration would be ineffective. @@ -232,7 +232,7 @@ KMSConfiguration 包含基于 KMS 的封套转换器的名称、缓存大小以 - 对 KMS 插件执行 gRPC 调用的超时时长(例如,'5s')。默认值为 3 秒。 + 对 KMS 插件执行 gRPC 调用的超时时长(例如:'5s')。默认值为 3 秒。

@@ -398,9 +398,9 @@ ResourceConfiguration 中保存资源配置。 resources 是必须要加密的 Kubernetes 资源的列表。 资源名称来自于组/版本/资源的 resourceresource.group。 @@ -457,7 +457,7 @@ SecretboxConfiguration 包含用于某 Secretbox 转换器的 API 配置。 keys is a list of keys to be used for creating the Secretbox transformer. Each key has to be 32 bytes long. --> - keys 是一个密钥列表,用来创建 Secretbox 转换器。每个密钥必须是 32 字节长。 + keys 是一个密钥列表,用来创建 Secretbox 转换器。每个密钥长度必须是 32 字节。

diff --git a/content/zh-cn/releases/download.md b/content/zh-cn/releases/download.md index 90160c354b..af74b90333 100644 --- a/content/zh-cn/releases/download.md +++ b/content/zh-cn/releases/download.md @@ -55,7 +55,7 @@ kubectl 可安装在各种 Linux 平台、macOS 和 Windows 上。 - [在 Windows 上安装 kubectl](/zh-cn/docs/tasks/tools/install-kubectl-windows) -对于 Kubernetes {{< param "version" >}},以下容器镜像使用 -[cosign](https://github.com/sigstore/cosign) 进行签名: - - -| 容器镜像 | 支持架构 | -| ------------------------------------------------------------------- | --------------------------------- | +| 容器镜像 | 支持架构 | +| ------------------------------------------------------------------------- | --------------------------------- | | registry.k8s.io/kube-apiserver:v{{< skew currentPatchVersion >}} | amd64, arm, arm64, ppc64le, s390x | | registry.k8s.io/kube-controller-manager:v{{< skew currentPatchVersion >}} | amd64, arm, arm64, ppc64le, s390x | | registry.k8s.io/kube-proxy:v{{< skew currentPatchVersion >}} | amd64, arm, arm64, ppc64le, s390x | | registry.k8s.io/kube-scheduler:v{{< skew currentPatchVersion >}} | amd64, arm, arm64, ppc64le, s390x | | registry.k8s.io/conformance:v{{< skew currentPatchVersion >}} | amd64, arm, arm64, ppc64le, s390x | + +### 容器镜像架构 + 所有容器镜像都支持多架构,而容器运行时应根据下层平台选择正确的镜像。 也可以通过给容器镜像名称加后缀来拉取适合特定架构的镜像,例如 `registry.k8s.io/kube-apiserver-arm64:v{{< skew currentPatchVersion >}}`。 -所有这些派生镜像都以与多架构清单列表相同的方式签名。 + + +### 容器镜像签名 + +{{< feature-state for_k8s_version="v1.26" state="beta" >}} + + +对于 Kubernetes {{< param "version" >}},容器镜像使用 +[sigstore](https://sigstore.dev) 进行签名: + +{{< note >}} + +目前,不同地理位置之间的容器镜像 sigstore 签名不匹配。 +有关此问题的更多信息,请参阅相应的 +[GitHub Issue](https://github.com/kubernetes/registry.k8s.io/issues/187)。 +{{< /note >}} + -对于 Kubernetes v{{< skew currentVersion >}},唯一可以验证完整性的代码工件就是容器镜像,它使用实验性签名支持。 - 如需手动验证 Kubernetes 核心组件的签名容器镜像, 请参考[验证签名容器镜像](/zh-cn/docs/tasks/administer-cluster/verify-signed-artifacts)。 + +如果你要拉取特定架构的容器镜像,则单架构镜像的签名方式与多架构清单列表相同。 +