TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Is a file with both public and secret content a secret or not?

2 点作者 iamAy0超过 3 年前
This question showed up while debating whether a configuration file with public application settings and secret values should be stored in Hashicorp's Vault as a secret.

4 条评论

LinuxBender超过 3 年前
A file that <i>would</i> contain a secret should have the secret attributes parameterized and the attribute modified on deployment using Hashicorp Vault, otherwise the entire file would have to be stored in Vault meaning the entire file is a secret. This is a common pattern with Ansible, Chef, Puppet and other configuration management tools that integrate with Vault. Docker also has integrations with Vault and can replace attribute placeholders with their secret contents on deployment of containers. All of the aforementioned platforms have how-to&#x27;s explaining how to correctly integrate with Vault.
smt88超过 3 年前
The secrets are secret. Store them securely.<p>If storing the secrets securely doesn&#x27;t cause the public settings to be inaccessible where&#x2F;when they&#x27;re needed, then you have nothing else to do.<p>Separate the secret and non-secret data. Don&#x27;t even use files, just let each item be its own individual value with its own key and permissions.<p>Also, it doesn&#x27;t sound like anyone debating this is experienced enough to be making security decisions, even very basic ones.
评论 #28629128 未加载
gjvc超过 3 年前
<a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Steganography" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Steganography</a>
评论 #28628214 未加载
PaulHoule超过 3 年前
If any of it is secret then the whole thing is secret, isn’t it? The only way around that is to break it into multiple parts.
评论 #28629085 未加载