frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Dotenv Mask Editor: No more embarrassing screen leaks of your .env

https://marketplace.visualstudio.com/items?itemName=xinbenlv.dotenv-mask-editor
15•xinbenlv•7h ago
Hi HN,

I built this because I often work in coworking spaces or do screen sharing, and I've always had this fear of accidentally flashing my .env file with production secrets to the whole room (or recording).

It’s a simple VS Code extension that opens .env files in a custom grid editor. It automatically masks any value longer than 6 characters so I can safely open the file to check keys without exposing the actual secrets.

It runs 100% locally with zero dependencies (I know how sensitive these files are). It just reads the file, renders the grid, and saves it back as standard text.

It's open source (MIT) and I'd love any feedback on the masking logic or other features that would make it safer to use.

Marketplace: https://marketplace.visualstudio.com/items?itemName=xinbenlv... Github https://github.com/xinbenlv/dotenv-mask-editor

Comments

theozero•6h ago
Better than masking them in a file, get them out of the file entirely! Pull them declaratively instead - https://varlock.dev

This tool also redacts from your logs if working in js.

verdverm•1h ago
This appears to be the only comment you make on HN

https://news.ycombinator.com/threads?id=theozero

Using HN less like a marketing platform would be appreciated

NewJazz•1h ago
What does this offer that a scriptlet that sets the envvars doesn't?
svgeek•2h ago
OMG,I wish I had this years ago!
xinbenlv•1h ago
Thanks, glad you liked it!
__MatrixMan__•2h ago
I recently made this as a component in a larger project https://gist.github.com/MatrixManAtYrService/7fc7fb05474d971...

The idea is that even if you can't see the full data for some reason (space constraints, in my case), different values will appear styled differently even if the non-hidden characters don't differ.

I'm not sure how easy/hard vscode makes this, bit it might be fun to use a hash of the secret (salted by that character's index) to determine the back/foreground colors of the *'s

That way even though you can't see the secret, you can tell that it has changed. Also you're in a position to notice if two hidden secrets are the same (this might clue the user into a mistake, like if they didn't actually copy what they think they copied and are instead pasting the previous thing.

dietr1ch•2h ago
> I've always had this fear of accidentally flashing my .env file with production secrets to the whole room (or recording).

Can't you just intersperse entries with multiple-screens-worth of blank lines, or add noisy variables?

I'm thinking that 120 blank lines at the beginning and the end might be enough though, no need to make the file really hard to use.

esperent•2h ago
I recently got a phone with a high zoom level - once you factor in digital zooming it's 20x. The photo quality at that zoom level is trash, but it absolutely could be used to read text from people's laptop screens from across a big room, or even another building through a window.

Of course, real cameras have always had this kind of zoom level. The difference is that now, someone could appear to be browsing on their phone from very far away, but actually be reading text on your laptop screen.

It's much more likely they'll be looking for credit card details or something like that rather than .env secrets. But I guess it's better safe than sorry if you frequently work in a public, tech focused environment like a big coworking space.

We're talking someone sitting with their phone 50 meters away from you being able to read text on your laptop screen. That's about the distance where a person with good vision will struggle to recognize faces.

verdverm•1h ago
Would they need something to help with stabilization at that zoom and distance?
canadiantim•1h ago
A selfie tripod
globular-toast•36m ago
Why would you have "production secrets" in a .env file in the first place? I feel like that's the real problem here.
xinbenlv•29m ago
We use infiscial and other mechanism but hey, wouldn't it be nice to have one less square inch of attack surface?

Show HN: Sweep, Open-weights 1.5B model for next-edit autocomplete

https://huggingface.co/sweepai/sweep-next-edit-1.5B
156•williamzeng0•7h ago•23 comments

Show HN: ChartGPU – WebGPU-powered charting library (1M points at 60fps)

https://github.com/ChartGPU/ChartGPU
565•huntergemmer•16h ago•162 comments

Show HN: High speed graphics rendering research with tinygrad/tinyJIT

https://github.com/quantbagel/gtinygrad
20•quantbagel•3h ago•5 comments

Show HN: Rails UI

https://railsui.com/
153•justalever•12h ago•83 comments

Show HN: RatatuiRuby wraps Rust Ratatui as a RubyGem – TUIs with the joy of Ruby

https://www.ratatui-ruby.dev/
111•Kerrick•4d ago•18 comments

Show HN: Differentiable Quantum Chemistry

https://github.com/lowdanie/hartree-fock-solver
24•lowdanie•4d ago•4 comments

Show HN: Open-source certificate from GitHub activity

https://certificate.brendonmatos.com
30•brendonmatos•3d ago•7 comments

Show HN: MCP server for searching and retrieving 200k icons

https://github.com/better-auth/better-icons
2•bekacru•1h ago•0 comments

Show HN: Dotenv Mask Editor: No more embarrassing screen leaks of your .env

https://marketplace.visualstudio.com/items?itemName=xinbenlv.dotenv-mask-editor
15•xinbenlv•7h ago•16 comments

Show HN: yolo-cage – AI coding agents that can't exfiltrate secrets

https://github.com/borenstein/yolo-cage
51•borenstein•16h ago•65 comments

Show HN: Retain – A unified knowledge base for all your AI coding conversations

https://github.com/BayramAnnakov/retain
32•Bayram•11h ago•12 comments

Show HN: Yashiki – A tiling window manager for macOS in Rust, inspired by River

https://github.com/typester/yashiki
16•typester•3d ago•10 comments

Show HN: ERCOT Texas power grid dashboard

https://txryan.com/ercot
2•nexuszero•2h ago•0 comments

Show HN: See the carbon impact of your cloud as you code

https://dashboard.infracost.io/
61•hkh•16h ago•22 comments

Show HN: Mastra 1.0, open-source JavaScript agent framework from the Gatsby devs

https://github.com/mastra-ai/mastra
208•calcsam•1d ago•69 comments

Show HN: Company hiring trends and insights from job postings

https://jobswithgpt.com/company-profiles/
43•sp1982•13h ago•5 comments

Show HN: Semantic search engine for Studio Ghibli movie

https://ghibli-search.anini.workers.dev/
24•aninibread•17h ago•7 comments

Show HN: Laptop Stickers – cheap individual short run stickers

https://laptopstickers.store/
6•decryption•3h ago•1 comments

Show HN: SpeechOS – Wispr Flow-inspired voice input for any web app

https://www.speechos.ai/
12•gangster_dave•15h ago•5 comments

Show HN: PicoFlow – a tiny DSL-style Python library for LLM agent workflows

5•shijizhi_1919•16h ago•0 comments

Show HN: Hyve – Parallel isolated workspaces for coding agents, multi-repo dev

9•eladkishon•23h ago•1 comments

Show HN: Agent Skills Leaderboard

https://skills.sh
130•andrewqu•1d ago•41 comments

Show HN: I built a chess explorer that explains strategy instead of just stats

https://www.atlaschess.me/
11•Ahmad_shuja•15h ago•5 comments

Show HN: Automatically build sales playbook. For founders doing sales

7•Mrakermo•11h ago•1 comments

Show HN: TopicRadar – Track trending topics across HN, GitHub, ArXiv, and more

https://apify.com/mick-johnson/topic-radar
35•MickolasJae•1d ago•9 comments

Show HN Guidelines

https://news.ycombinator.com/yli.html
2•cjbarber•8h ago•0 comments

Show HN: Ocrbase – pdf → .md/.json document OCR and structured extraction API

https://github.com/majcheradam/ocrbase
96•adammajcher•1d ago•34 comments

Show HN: I'm eating at all the phở restaurants in Portland, at least twice

https://pho.curtisbarnard.com/
3•oregoncurtis•9h ago•4 comments

Show HN: I built an AI coach for introverted leaders

https://www.leadquiet.com/landing
2•chux52•10h ago•0 comments

Show HN: Sornic – Turn any article into a podcast in 10 seconds

https://sornic.com
2•digi_wares•10h ago•1 comments