知识卡片
Secret编码不等于加密
Kubernetes Secret 的 data 值以 Base64 表示,可直接解码;这只是编码,不提供保密性。应另行配置静态加密与最小权限,并限制谁能读取 Secret 或创建引用它的 Pod。不能把 kubectl get secret 输出当作安全的共享文本。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
原书出处
参考来源
- 位置:《Microservice APIs》第 14 章《Deploying microservice APIs with Kubernetes》(源文件:_epub-src/OEBPS/Text/14.htm)
- 结论依据:原文展示 Secret 的 data 为 Base64 且可解码;Kubernetes 官方文档明确编码不等于加密。
- 原始内容:The secrets are listed under the data property of the payload, and they’re Base64 encoded. To obtain their values, you can run the following command: $ echo <DB_URL> | base64 --decode where <DB_URL> is the Base64 encoded value of