Stop hardcoding sensitive keys into localenv files or dragging your secrets around on Slack. ghostenv is a lightweight, zero-dependency CLI tool built in Go that safely pulls configuration maps from private GitHub repos and hot-injects them directly into your downstream runtimes.
No reviews yetBe the first to leave a review for ghostenv
Maker
š
Hey Hunters! š
Like many of you, I grew tired of managing scattered .env files across team machines, accidentally checking secrets into source history, or having to sync configuration values via shared chats.
I built ghostenv to solve this securely, natively, and with absolutely zero dependencies. It acts as a lightweight proxy wrapper. It uses your GITHUB_TOKEN to fetch configuration JSON arrays directly from specified folders in private manifest repos, handles base64 decryption in memory, merges them with your local variables, and executes your app.
Why Go? It makes the binary incredibly portable, lightweight, and fast. Plus, we couldn't resist throwing in clean, terminal-friendly ANSI output logs to show exactly how many variables are being injected dynamically.
It's fully open-source and ready to play with! Iād love to hear your feedback on our flags, structure, or any features you'd like to see next.
Happy hunting! š»
Report
How does this handle things like secret rotation or if a teammate accidentally commits something to the same private repo after pulling the config?
That's a good point. Secret rotation for long-running processes is something I'm still exploring. Regarding accidental commits, I'd rely on GitHub's branch protection and PR approval workflow. Since ghostenv only reads from the repo, keeping the config repository protected ensures changes are reviewed before they're used.
How does this handle things like secret rotation or if a teammate accidentally commits something to the same private repo after pulling the config?
@niyazikantekĀ
That's a good point. Secret rotation for long-running processes is something I'm still exploring. Regarding accidental commits, I'd rely on GitHub's branch protection and PR approval workflow. Since ghostenv only reads from the repo, keeping the config repository protected ensures changes are reviewed before they're used.