Hacker News new | ask | show | jobs
by tsergiu 15 days ago
This is exactly what https://keycontain.com is for! It wraps services to give ultra-fine-grained ACLs. They can be arbitrarily granular, and much more granular than the underlying API.
2 comments

You can't magically add fine-grained access controls if a service doesn't have them.

This is adding an allow/deny popup on your phone to agent activity based on the interpretation of an LLM as to whether a given command is risky. That's a very different thing from actual access controls which really deny access to certain pathways, it's an attempt to plaster over both the lack of real access controls and the tendency of LLMs to bypass them.

If your agent is sufficiently motivated, it may choose to bypass these controls, by mistake or on purpose and you would never know, it would not be too hard to do.

No, this is absolutely not that. It is a deterministic ACL that you set up, that actualy denies access to certain (most, the only ones it accepts are ones you explicitly allow) pathways, exactly as you're describing. The agent does not do the interpretation, the most it can do is specify the reason for what it's doing.

KeyContain will deterministically look at your request, if it's on the list of built-in services it supports, and tell you what that request is doing in human language. And you can always inspect the raw request.

Are you intercepting network traffic then only allow-listing certain paths/params?
"intercept" is too strong because we are not at the network layer. Your agent has to choose to use our service. But in practice, the only key in the agent's environment is the keycontain one, so yes, it has no other way to get to any service except through keycontain. And yes we whitelist specific paths/params (completely configurable), and you decide the level of risk you're willing to take.

For low-risk operations, you can just give your agent free access. For high risk ones (as defined by your deterministic acls), you can require it to confirm with you before allowing the request through.

And for any of the built-in services keycontain supports, it will give you a (deterministic) plain English explanation of what the request will do. For anything not built in, you have to manually inspect the raw request.

So essentially a HTTPS MITM proxy, which determines whether to continue the request based on a policy defined on properties of the request?
Well, and you also want it to be able to inject the credentials into the request so that the agent doesn't have direct access to the credentials themselves.

I believe that gondolin (by the same people who make pi) can do this. But it requires quite a bit of effort to configure it for everything.

Gondolin does secret injection, but I don't believe it lets you restrict access to a tighter permission than the underlying key. The problem is that many services give "god mode" API keys so that even if your agent can't access the key, the fact that it has access to the full API surface creates risk of catastrophic loss.
Gondolin does give access to the whole request if required, I believe you can filter more efficiently via just headers+path, but you can get the whole request if required. I’ve seen projects eg filtering certain graphql methods, similar to what it looks like your product does. It is very fiddly though, and I’m never very sure I got it right.
Yes. The painstaking part (even with agents) is getting the plain-english mapping for all the services so that you can easily understand what a request is doing. It supports a generic http mitm but it's usually very difficult to inspect the request yourself.