frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Why can't you commit a .env file?

1•devmtk•1h ago
"You can't commit a .env file to Git" is a sentence we've all heard. Most people accepted it and went on with their lives, using other tools to share environment variables.

But the question we should ask is: why can't I commit a .env file to Git?

The honest answer isn't that it's bad practice. It's that Git has no permission system below the repository level. It's all or nothing. You see everything, or you see nothing. The entire secret-manager industry exists to paper over this one missing primitive.

For too long we accepted it as a minor annoyance. That's changed. It isn't a minor annoyance anymore. It's a real problem.

We now have agents monitoring every patch that merges, hunting for security fixes to turn into exploits. The patch itself is the disclosure: it hands people (and increasingly agents) everything they need to reverse-engineer the fix and hit systems that haven't updated yet. We're in the middle of a security crisis, arguing about where to store files to hide them from attackers.

For the last couple of weeks I've been thinking about this: prototyping, trying to find a compelling solution. I want to be honest, I have no idea if I found it. But I think the direction is at least interesting. Permissions, or as I prefer to call them, capabilities, should live at the content level, not the repo level. Commit the .env; just scope who's allowed to decrypt it.

This is just one of the problems I have with Git(Hub), and honestly, I have no idea if anything I built is a good solution. I'd love your feedback, or your rant. If you want to see how I tried to fix it, the repo is here (hosted, sarcastically, on GitHub): https://github.com/thaddeus-run/thaddeus

Comments

ragnarel•58m ago
Alternatively, you can encrypt the `.env` file before committing it. Then, only a single key will need to be configured in the destination environment.

SQLite Is All You Need

https://www.dbpro.app/blog/sqlite-is-all-you-need
1•upmostly•56s ago•0 comments

WorkerDeck – Run one isolated background process per user (Python, zero deps)

https://github.com/gritfeld-design/workerdeck
1•Reiney•1m ago•0 comments

Show HN: Parametric 3D models created using JavaScript

https://muffinman.io/3d-models/
1•stanko•1m ago•0 comments

Most intellectual labour is proof of work

https://blog.jsbarretto.com/post/pow
2•ibobev•2m ago•0 comments

Intuition for Distribution Differences

https://entropicthoughts.com/distribution-differences
1•ibobev•3m ago•0 comments

Sorted Rank Coding

https://purplesyringa.moe/blog/sorted-rank-coding/
1•ibobev•3m ago•0 comments

The Gentle Art of Making Enemies (1890) [pdf]

https://web.english.upenn.edu/~cavitch/pdf-library/Whistler_Gentle_Art_of_Making_Enemies.pdf
1•jruohonen•3m ago•1 comments

Show HN: AI mock-interview coach that scores how you sound, not just your words

https://www.stanrose.com/mondaus
1•mondaussupport•4m ago•0 comments

Kittygram – An anonymous, privacy-friendly and open-source Instagram front end

https://kittygr.am/
2•keks24•5m ago•1 comments

The database wars and where LLMs are (maybe) headed

https://rruxandra.github.io/the-database-in-the-room.html
2•rruxandra_l•5m ago•0 comments

Show HN: GitBiased – your team development dashboard

https://gitbiased.com/
2•skyfantom•7m ago•0 comments

Org Charts of the Big Tech Companies (2011)

https://www.globalnerdy.com/2011/07/03/org-charts-of-the-big-tech-companies-plus-an-enhancement/
2•surprisetalk•7m ago•0 comments

What does "playing politics" mean for software engineers?

https://www.seangoedecke.com/playing-politics/
5•mltvc•8m ago•0 comments

Python Is So Slow. Can Julia Solve the Two-Language Problem?

https://www.wired.com/story/python-is-so-slow-can-julia-solve-the-two-language-problem/
2•theanonymousone•8m ago•1 comments

Show HN: An AI Duolingo for your income goals

https://thrivez.io/thrivez-ai-mentor/
3•Fotis-Karmpas•8m ago•1 comments

How to Overengineer a Project with AI

https://www.pablols.com/posts/049_i_overengineered_a_website/
2•wanderdust•12m ago•0 comments

The SaaSpocalypse Maybe Ending, but SaaS Will Never Be the Same Again

https://www.forbes.com/sites/timkeary/2026/06/30/the-saaspocalypse-maybe-ending-but-saas-will-nev...
3•jruohonen•13m ago•0 comments

Show HN: I built a deterministic check for fabricated quotes in LLM output

https://github.com/pierreolivierbonin/verbatimeter
2•pobonin•14m ago•0 comments

At CERN, AI will drive future discoveries

https://www.swissinfo.ch/eng/research-frontiers/at-cern-ai-will-drive-future-discoveries/91723774
2•giuliomagnifico•16m ago•0 comments

Wonder Window

https://thekidshouldseethis.com/share/
2•smallerize•16m ago•0 comments

Germany set to restrict its Freedom of Information Act

https://www.dw.com/en/germany-freedom-of-information-act/a-77939695
11•robtherobber•18m ago•0 comments

ATProto for Distributed Systems Engineers

https://atproto.com/articles/atproto-for-distsys-engineers
2•typical182•18m ago•0 comments

How to stop Claude from saying load-bearing

https://jola.dev/posts/how-to-stop-claude-from-saying-load-bearing
20•shintoist•22m ago•8 comments

1B-cell multiplayer Minesweeper [Zig]

https://megasweeper.io/
2•nazavtra•23m ago•0 comments

Apophenia – Fable writes Firefall fan fiction

https://phulp.com/apophenia.html
2•binbag•26m ago•0 comments

Mathematics formula found on Maya wall rivals insights of ancient masters

https://www.nature.com/articles/d41586-026-02170-8
2•homarp•27m ago•0 comments

Scientists Calculated When the Last Plants on Earth Will Die

https://www.sciencealert.com/scientists-calculated-when-the-last-plants-on-earth-will-die
3•amichail•28m ago•0 comments

Culture doesn't eat strategy. Incentives do

https://reubs8.substack.com/p/culture-doesnt-eat-strategy-incentives
4•splitbrainhack•33m ago•0 comments

The Definition of Done

https://adi.bio/done
12•AdityaAnand1•34m ago•3 comments

Punch Yourself in the Face with Reality

https://adi.bio/reality
14•AdityaAnand1•34m ago•3 comments