Better HN
topnewbestaskshowjobs
Log inSign up

radim_h

0 karma · joined Nov 23, 2022 (4y ago) · 24 submissions

Submissions

comment 1mo ago · link · parent

Feel free to test it out!

comment 1mo ago · link · parent

Quite interesting setup. How are you handling credentials and external API access for the agents, when different agents do need different access?

Are they running with the same permissions as the host, or do you isolate them and give each workflow its own access?

comment 1mo ago · link · parent

Hey, we’ve added HTTP body and MCP argument rules now, including value checks and an allow_fields list to reject unknown fields. Your feedback and input from others helped shape this!

Implementation and examples: https://github.com/stashbase/cli/releases/tag/v0.22.0

comment 1mo ago · link · parent

How would Emu enforce a denial when the other agent runs in the cloud?

We are building https://stashbase.dev for coding agents, and that’s been the tricky part: a rule needs a place where access can actually be blocked. With local processes you can restrict filesystem and network access; with external services you need control over the credentials or even request path.

Also I think that most "hard" agent permissions and rules should be enforce outside of the model because if the agent is "self-learning" there's a chance it can learn to do something that should not be done. This is a direction we are taking, permission profiles and access that wrap the agents.

comment 1mo ago · link · parent

We’re building Stashbase for this (repo: https://github.com/stashbase) You can run your coding agent in Docker-based sandbox with explicit workspace mounts and outbound network rules. It supports your own Dockerfile or image too, so you can keep whatever research tools and dependencies you need (default Dockerfile installs Claude Code and Codex). The access rules live in a TOML profile.

comment 1mo ago · link · parent

With MCP we let you allow or deny individual tools, so separate draft/send tools work for this. But if it’s one tool with an action argument, we can’t distinguish them today.

Do you think it would make sense to add something like rules for JSON content for plain HTTP requests and argument rules for MCP tool calls?

comment 1mo ago · link · parent

We’ve taken the outside-broker approach in Stashbase.dev too. You manage the actual secrets in Stashbase and the proxy adds them to permitted requests. The agent gets a revocable session with host/method/path rules rather than the upstream key.

Still leaves the problem of an allowed request being a bad idea. Giving an agent access to a send-mail endpoint is a fairly big grant, even if it never sees the token. Which Google operations would you actually want to give it?

comment 1mo ago · link · parent

We’re building Stashbase.dev around this. The agent makes API calls through a proxy that holds the upstream credentials, with access restricted by host, method and path. Revoking the session cuts off further proxy access even if the agent is still running.

The awkward part is deciding how narrow to make those rules. An allowed endpoint can still do something you didn’t want. Are method/path restrictions enough for your use case?