知识卡片

普通读书笔记卡 · 1903.c.1.c.1.a.1.a

版本库不保存明文秘密

理解等级:中级

基础设施代码和配置应进入版本库,利用历史比较、旧版恢复和提交触发交付。明文密码与密钥例外:私有仓库仍可能泄漏历史修订,删除当前文件也不会自然消除历史暴露。应通过专门的秘密管理机制供给敏感值,而不是把保密寄托于仓库权限。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 基础设施工具与语言 · 查看原书依据

      One thing that you should not put into source control is unencrypted secrets, such as passwords and keys. Even if your source code repository is private, its history and revisions of code are too easily leaked. Secrets leaked from source code are one of the most common causes of security breaches. See “Handling Secrets” for

    参考来源

    - 位置:《Infrastructure As Code》第4章《基础设施工具与语言》(来源项目 book-sources,源文件:extracted/Infrastructure As Code/_epub-src/OEBPS/ch04.html) - 结论依据:原文对该概念的定义、应用条件与作用机制直接支持上述解释。 - 原始内容:One thing that you should not put into source control is unencrypted secrets, such as passwords and keys. Even if your source code repository is private, its history and revisions of code are too easily leaked. Secrets leaked from source code are one of the most common causes of security breaches. See “Handling Secrets” for