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.

Stop Using .env Files

21 pointsby vmatsiiakoabout 2 years ago

3 comments

akerl_about 2 years ago
&quot;Stop using $thing&quot;, says company that happens to sell a replacement for $thing.<p>Environment variables&#x2F;files are certainly not perfect, but this is a very one-sided take on them.
评论 #35634622 未加载
retrocryptidabout 2 years ago
I used to use this package to avoid having to use ENV variables for everything (it pulls config info out of a JSON file instead, and parses both HTTP and FILE urls to source the JSON file.) But its effectively abandon-ware (hey, at least it&#x27;s not a commercial tool.) Maybe I should write a similar package in Janet since that&#x27;s what I&#x27;m doing for fun these days.<p><a href="https:&#x2F;&#x2F;www.npmjs.com&#x2F;package&#x2F;sn-props" rel="nofollow">https:&#x2F;&#x2F;www.npmjs.com&#x2F;package&#x2F;sn-props</a>
评论 #35634675 未加载
josephcsibleabout 2 years ago
&gt; Security. First of all, let&#x27;s just consider the fact that with .env files you are storing completely unencrypted secrets locally on your machine...<p>In general, right after people say this, they propose encrypting the secrets somehow but then storing the decryption key completely unencrypted locally right next to them, or something that&#x27;s equivalent to doing that. Is this an exception?
评论 #35635824 未加载
评论 #35635907 未加载