frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

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

2•m-hodges•1h 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•1h 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

Scaling Embeddings Outperforms Scaling Experts in Language Models

https://arxiv.org/abs/2601.21204
1•simonpure•40s ago•0 comments

Coast Guard breaks up ice in Hudson River as NYC Ferry remains suspended

https://gothamist.com/news/coast-guard-breaks-up-ice-in-hudson-river-ny-harbor-as-nyc-ferry-remai...
1•geox•54s ago•0 comments

The $75M Opportunity: Consolidating Canada's Fragmented AI Spending

https://zeitgeistml.substack.com/p/the-75m-opportunity-consolidating
1•eh_tk•1m ago•0 comments

Analytical Chemistry 2.0

https://asdlib.org/onlineArticles/ecourseware/Text_Files.html
1•loughnane•2m ago•0 comments

Skypilot: Run, manage, and scale AI workloads on any AI infrastructure

https://github.com/skypilot-org/skypilot
1•ahamez•2m ago•0 comments

Shark 2.0 – a free, open-source poker solver in C++

https://github.com/24parida/shark-2.0
1•aparida31•3m ago•1 comments

Sometimes Never Compete on Price

https://longform.asmartbear.com/never-compete-on-price/
1•gk1•3m ago•0 comments

Rethinking Heating

https://www.youtube.com/watch?v=o8xcHmYlyX8
1•oliversisson•5m ago•1 comments

'We got lazy and complacent': abolishing the wealth tax changed Sweden

https://theconversation.com/we-got-lazy-and-complacent-swedish-pensioners-explain-how-abolishing-...
1•PaulHoule•5m ago•0 comments

Zendesk Alternative

http://zendeskalternative.com
1•gk1•6m ago•0 comments

'On This Day... 1776'

https://www.youtube.com/playlist?list=PLYOGLpQQfhNIzsiXxPLUMwhBEunGH9bem
1•bookofjoe•6m ago•1 comments

Show HN: Stripe-no-webhooks – Sync your Stripe data to your Postgres DB

https://github.com/pretzelai/stripe-no-webhooks
3•prasoonds•6m ago•0 comments

Looking for open-source Python package for AI stock analysis

1•Siddartha_19•6m ago•0 comments

The European Schuko socket bothers me

https://blog.jgc.org/2026/01/the-european-schuko-socket-bothers-me.html
1•pbrowne011•6m ago•0 comments

OTLO

https://www.futurefabric.co/blog/otlo/
2•surprisetalk•7m ago•0 comments

Expert Book Recommendations

https://fivebooks.com/
1•surprisetalk•7m ago•0 comments

Yawning has an unexpected influence on the fluid inside your brain

https://www.newscientist.com/article/2513692-yawning-has-an-unexpected-influence-on-the-fluid-ins...
1•MDWolinski•9m ago•0 comments

Scott Galloway Calls to Cancel OpenAI Subscriptions to Launch Consumer Strike [video]

https://www.youtube.com/shorts/7GfJBIAg420
1•ddxv•9m ago•1 comments

Book Review of Stewart Brand's Maintenance

https://www.symmetrybroken.com/maintenance-the-mattering-instinct-for-engineers/
1•riemannzeta•9m ago•0 comments

Book Review of Steven Pinker's When Everyone Knows That Everyone Knows

https://www.symmetrybroken.com/uncommon-knowledge/
1•riemannzeta•10m ago•0 comments

Google's 'Project Genie' Is Basically a Plagiarism Tool

https://www.nintendolife.com/news/2026/01/googles-project-genie-is-basically-a-huge-plagiarism-to...
1•begemotz•11m ago•1 comments

Show HN: Xmrcheckout – self-hosted, non-custodial Monero checkout

https://xmrcheckout.com
1•pigless72•11m ago•0 comments

Parallel evaluation in Nix rolling out to Determinate Nix users

https://hachyderm.io/@determinatesystems/115985028320981183
2•embedding-shape•12m ago•0 comments

Show HN: Nano Queries, a state of the art Query Builder

https://vitonsky.net/blog/2026/01/24/nano-queries/
1•vitonsky•13m ago•0 comments

Show HN: A causal safety release gate for AI systems

https://github.com/EM1805/causal-safety-and-alignment-engine
1•EM1805•13m ago•1 comments

Will Agents replace search teams?

https://www.youtube.com/watch?v=OGnW2Pu2uVE
1•softwaredoug•13m ago•0 comments

Ruby 4.0 is available in the Microsoft Store

https://rubyinstaller.org/2026/01/27/ruby-4.0-available-in-microsoft-store.html
1•Kerrick•13m ago•0 comments

Skills on Tessl: the package manager for agent skills

https://tessl.io/blog/skills-are-software-and-they-need-a-lifecycle-introducing-skills-on-tessl/
1•popey•14m ago•0 comments

History of the PT2399 Delay Chip (2025)

https://www.perfectcircuit.com/signal/pt2399-delay-chip
1•thomasjb•14m ago•0 comments

We interfaced single-threaded C++ with multi-threaded Rust

https://antithesis.com/blog/2026/rust_cpp/
1•todsacerdoti•15m ago•0 comments