Menu

Why I stopped putting API keys in .env for coding agents (Kiroween Hackathon 2026)
📰

Why I stopped putting API keys in .env for coding agents (Kiroween Hackathon 2026)

DEV Community: security·Keyrook·3 days ago
#ULxPIFUc
#devtosecurity#devto#dev#gate#cryptgate
Long article (1028 words) — no AI summary yet.
Reading 0:00
15s threshold

Written as part of the Kiroween Hackathon 2026. Live demo: cryptgate.keyrook-labs.workers.dev | Source: github.com/keyrook/cryptgate

Every time I wire a coding agent up to Stripe, GitHub, or OpenAI, the quickest shortcut is pasting an API key into .env . And every time, the same nagging problem comes back: the agent now holds a long-lived, full-scope credential on disk. One poisoned GitHub issue comment, one 302 redirect to an external host, or one verbose debug endpoint that reflects headers back, and that key lands straight in tool output and logs.

For the Kiroween Hackathon 2026 , I built CryptGate around a simpler setup. Keep the real key encrypted on a server (or on 127.0.0.1 locally) and give the agent a 15-minute proxy URL ( /g/<id>/* ) plus a matching Streamable HTTP MCP endpoint ( /g/<id>/mcp ).…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.