frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

AI has failed to replace a single software application or feature

5•cadabrabra•1h ago•4 comments

AI creates over-efficiency. Organizations must absorb it

3•eriam•1h ago•0 comments

Ask HN: Ergo wireless keyboard with mouse for coding?

2•MarcelOlsz•1h ago•2 comments

Thoughts on ICElist

4•gorfian_robot•1h ago•0 comments

Ask HN: Notification Overload

39•fractal618•3d ago•72 comments

Ask HN: How are you managing secrets with AI agents?

2•m-hodges•3h ago•3 comments

Ask HN: Is free identity theft protection after a data breach worth the bother?

2•daoboy•3h ago•1 comments

Ask HN: Junior getting lost

38•TheRegularOne•23h ago•32 comments

Ask HN: How do you market a side project?

4•ruairidhwm•6h ago•6 comments

Forensic trace shows SISVIDA is a simulation with no liquidity

2•Morris_•7h ago•0 comments

Ask HN: How do you reset an AppleID?

7•OhMeadhbh•17h ago•22 comments

The preposterous notion of AI automating "repetitive" work

6•cadabrabra•12h ago•8 comments

Ask HN: Books to learn 6502 ASM and the Apple II

101•abkt•3d ago•69 comments

Ask HN: Who do you follow via RSS feed?

67•znpy•3d ago•52 comments

Ask HN: How do you force yourself to take breaks while coding?

2•glidea•14h ago•10 comments

Ask HN: Is archive.is currently broken for WSJ links?

7•bigwheels•1d ago•3 comments

Ask HN: How are devtool founders getting their paying users in 2026?

7•yasu_c•17h ago•1 comments

Ask HN: DDD was a great debugger – what would a modern equivalent look like?

56•manux81•4d ago•60 comments

Ask HN: How far has "vibe coding" come?

11•pigon1002•1d ago•26 comments

Tell HN: Beeper deletes inactive accounts without notice

3•kldx•1d ago•0 comments

Ask HN: What's the Point Anymore?

62•fnoef•3d ago•79 comments

Designing programming languages beyond AI comprehension

6•mr_bob_sacamano•1d ago•10 comments

Ask HN: What recent UX changes make no sense to you?

31•superasn•2d ago•35 comments

How much recurring income do you generate in 2026 and from what?

12•djshah•2d ago•5 comments

Ask HN: Vibe Researching" with AI – Anyone Using It for Real?

8•spenceXu•2d ago•5 comments

Where can I find startups looking for fractional product leads?

7•stulogy•2d ago•3 comments

Ask HN: How to prevent Claude/GPT/Gemini from reinforcing your biases?

29•akshay326•3d ago•22 comments

Ask HN: European alternative to Vercel/Cloudflare for hosting

12•vldszn•3d ago•19 comments

Tell HN: I cut Claude API costs from $70/month to pennies

40•ok_orco•4d ago•25 comments

Ask HN: If Everyone Can "Build" a SaaS, What Becomes Valuable?

13•spenceXu•2d ago•11 comments
Open in hackernews

Ask HN: How are you managing secrets with AI agents?

2•m-hodges•3h ago
Secrets management with Agents feels absent today. The agent needs API keys to call external services, but the usual patterns feel broken in this context. You see this clearly when writing Agent Skills.

Environment variables: The agent has shell access. It can run `env` or `echo $API_KEY` and access the secret, either through prompt injection or just by exploring or debugging.

.env files: Same problem. The agent can `cat .env`. The file is right there on the filesystem waiting for curious `print()` statements.

Proxy process / wrapper: You can stand up a separate process that holds the secret and proxies requests. The agent calls localhost, never sees the key. This works, but it's a lot of operational overhead. Now you're running infrastructure just to hide a string from your own tools. It also feels close to reinventing MCP.

What I've been experimenting with:

1. OS keychain with credential helper: The bundled or generated script calls out to the system keychain (macOS Keychain, Windows Credential Manager, etc.) at runtime. The agent can invoke the script, but can't directly query the keychain. Libraries like Python's `keyring` abstract over OS keychains and make it somewhat portable, but this all assumes certain runtime environments and requires user interaction via the OS.

2. Credential command escape hatch: Scripts accept a `--credential-cmd` flag that runs an arbitrary shell command to fetch the secret (`pass show`, `op read`, `vault kv get`, etc.). Flexible, but the agent could potentially inspect what command is being run and iterate to try to access it anyway.

Neither of these feel like a real solution. An agent could probe for credentials.

How are others handling secrets in agent workflows? Is anyone building agent runtimes with proper secrets isolation? Seems like something the official agent harnesses need to figure out and ship with.

Comments

kageiit•2h ago
We built our own harness from the ground up to account for this

Secrets come from aws secret manager and never injected into env directly.

Each part of the agentic workflow only gets the secrets it needs injected. Agent can see env var names but not the values (our harness masks them) . We also mask any attempts to output to stdout/files.

This keeps the agent architecture simple with env vars that all agents can operate on as it locally. Prompt injection attempts will only yield masked values

Has been working well for us so far

whinvik•53m ago
Curious if anyone has experimented with dotenvx - https://dotenvx.com/
m-hodges•42m ago
What would stop the agent from writing+running its own script wrapped in `dotenvx run` to access the secrets?