TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

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

2 pointsby iamAy0over 3 years ago
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 comments

LinuxBenderover 3 years ago
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.
smt88over 3 years ago
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 未加载
gjvcover 3 years ago
<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 未加载
PaulHouleover 3 years ago
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 未加载