logoalt Hacker News

zwigglerstoday at 3:17 PM1 replyview on HN

Fine for single-user setups. I'm solving a different layer: multi-agent/multi-user identity and routing. When multiple people with different permission levels are all talking to the same agent, env vars don't tell you who's asking or what they're allowed to do.


Replies

rcarmotoday at 3:36 PM

You're not getting it. The env vars are only exposed in the local agent runtime. The agent's identity against Azure Key Vault determines what it has access to.

(and I also expand some env vars on fetch() requests for APIs that don't have hard IAM/Entra ID auth)

The keychain tool has the same semantics whether we're running solo, locally, in a container, anything. The agent doesn't know anything except the handles for the keys it has access to, whether they come from encrypted SQLite locally or from the Azure Key Vault via REST. It can't tell the difference, and different agents on different K8s containers (or other IAM entities) see different things depending on their key vault access.

It's literally 100 lines of Bun Typescript (150 for the cloud version).

And believe me, you don't want to reinvent IAM in your keychain/secrets management. Let the provider do it for you, that's what they are there for.

show 2 replies