[zh] Sync /glossary/secret.md

pull/37051/head
windsonsea 2022-09-28 10:09:01 +08:00
parent ea06ec5302
commit ba48726805
1 changed files with 19 additions and 7 deletions

View File

@ -29,19 +29,31 @@ tags:
-->
<!--
Stores sensitive information, such as passwords, OAuth tokens, and ssh keys.
Stores sensitive information, such as passwords, OAuth tokens, and SSH keys.
-->
Secret 用于存储敏感信息,如密码、 OAuth 令牌和 SSH 密钥。
Secret 用于存储敏感信息如密码、OAuth 令牌和 SSH 密钥。
<!--more-->
<!--more-->
<!--
Allows for more control over how sensitive information is used and reduces the risk of accidental exposure. Secret values are encoded as base64 strings and stored unencrypted by default, but can be configured to be [encrypted at rest](/docs/tasks/administer-cluster/encrypt-data/#ensure-all-secrets-are-encrypted). A {{< glossary_tooltip text="Pod" term_id="pod" >}} references the secret as a file in a volume mount or by the kubelet pulling images for a pod. Secrets are great for confidential data and [ConfigMaps](/docs/tasks/configure-pod-container/configure-pod-configmap/) for non-confidential data.
Secrets give you more control over how sensitive information is used and reduces
the risk of accidental exposure. Secret values are encoded as base64 strings and
are stored unencrypted by default, but can be configured to be
[encrypted at rest](/docs/tasks/administer-cluster/encrypt-data/#ensure-all-secrets-are-encrypted).
-->
Secret 允许用户对如何使用敏感信息进行更多的控制,并减少信息意外暴露的风险。
默认情况下Secret 值被编码为 base64 字符串并以非加密的形式存储,但可以配置为
[静态加密Encrypt at rest](/zh-cn/docs/tasks/administer-cluster/encrypt-data/#ensure-all-secrets-are-encrypted)。
{{< glossary_tooltip text="Pod" term_id="pod" >}} 通过挂载卷中的文件的方式引用 Secret或者通过 kubelet 为 pod 拉取镜像时引用。
Secret 非常适合机密数据使用,而 [ConfigMaps](/zh-cn/docs/tasks/configure-pod-container/configure-pod-configmap/) 适用于非机密数据。
<!--
A {{< glossary_tooltip text="Pod" term_id="pod" >}} can reference the Secret in
a variety of ways, such as in a volume mount or as an environment variable.
Secrets are designed for confidential data and
[ConfigMaps](/docs/tasks/configure-pod-container/configure-pod-configmap/) are
designed for non-confidential data.
-->
{{< glossary_tooltip text="Pod" term_id="pod" >}} 可以通过多种方式引用 Secret
例如在卷挂载中引用或作为环境变量引用。Secret 设计用于机密数据,而
[ConfigMap](/zh-cn/docs/tasks/configure-pod-container/configure-pod-configmap/)
设计用于非机密数据。