News for hackers. Stuff that matters.
Re:Show HN: Dotenv Mask Editor: No more embarrassing screen ... by globular-toast on Thursday January 22, 2026 @01:42AM (#46716027)
Why would you have "production secrets" in a .env file in the first place? I feel like that's the real problem here.
Re:Show HN: Dotenv Mask Editor: No more embarrassing screen ... by xinbenlv on Thursday January 22, 2026 @01:49AM (#46716054)
We use infiscial and other mechanism but hey, wouldn't it be nice to have one less square inch of attack surface?
Re:Show HN: Dotenv Mask Editor: No more embarrassing screen ... by globular-toast on Thursday January 22, 2026 @03:20AM (#46716556)
Why not have one less square mile of attack surface by not having secrets in a .env file in the first place?

What are people doing that requires something like this?

Re:Show HN: Dotenv Mask Editor: No more embarrassing screen ... by pjjpo on Thursday January 22, 2026 @05:30AM (#46717448)
I think it's common to have dev not production secrets there, and am reading the blurb about production secrets as non-local secrets. Even dev keys are a pain if they get leaked.

The idea seems nice with a simple yet effective implementation. While I think I currently have a shell script syntax highlight plugin reading env files, it's definitely overkill. Now if only this could protect from random npm packages reading your env files...

Re:Show HN: Dotenv Mask Editor: No more embarrassing screen ... by dissent on Thursday January 22, 2026 @05:55AM (#46717601)
This implies there's some kind of shared resource out there on the network that your devs are developing on. Why not make all these resources part of your local dev stack, served on localhost, and use dummy credentials? You can even commit them because they're not sensitive.
Re:Show HN: Dotenv Mask Editor: No more embarrassing screen ... by pjjpo on Thursday January 22, 2026 @07:47AM (#46718548)
Ok ok, it is indeed keys to AI APIs. I know it's not kosher to admit to that on HN anymore but it's the reality for me at least. Unfortunately local models just can't support development of products using them.
Re:Show HN: Dotenv Mask Editor: No more embarrassing screen ... by xinbenlv on Sunday January 25, 2026 @02:25PM (#46757292)
Thanks @pjjpo, exactly. My bad to confuse people, no we don't put real prod-prod credentials in .env. We use mechanisms to ensure separation of secrets. Thank you for saying that it's a simple yet effective implementation. If you try it and let us know your feedback.