4 min read

Dumb permissions, helpful hints: our access model never guesses, the console points out what’s missing

Our permission model creates this situation on purpose. An admin gives a colleague Workspace operator on one project. The colleague opens the console to pick a cloud and get to their workspaces. The cloud isn’t there.

Nothing is broken. To see a cloud, you need read access on it. A role on a project doesn’t include that. The admin also needed to give them Viewer on the cloud.

There are two ways to fix that. I’d argue against the obvious one.

The obvious fix: let the model guess

The tempting fix is a smarter permission model. If you can operate workspaces in a project, surely you can see its cloud. Just infer it. Or fold the extra roles an operator needs into the operator role itself so it works on its own.

A small robot sends a dashed grey guess across to a black cloud door with a padlock on it

It’s a reasonable instinct. Some of it was even explored in code. But every inference is a grant nobody wrote down.

Every inference is a grant nobody wrote down.

So we keep our model deliberately dumb. A check asks one question: does this person hold this permission on this resource? The model walks the organization, cloud and project tree only to find where a grant was made. It never hands out access along the way. The big cloud providers do it the same way. Permission to create things in a container doesn’t come with read on its parents.

Dumb model, smart console

Instead, the guidance moves to the screens where you assign roles. You’re making the decision right there. While you pick roles, a small set of rules checks everything the person would end up with. Group access counts too. The rules point out what looks incomplete or pointless.

Today there are five:

Three rules keep it honest:

The mistake I kept making

The pull to make the system judge grants is strong. It’s not just me. While fixing a bug, my coding agent proposed two changes like that in a row. First: hiding a binding from a list because its role did nothing at that scope. Second: refusing to save one that looked pointless. Both sound helpful. Both let the system decide what the admin meant. Both became hints instead. The rule is now written down where my agents read it: any role on any scope is a valid grant. The most we do about a strange one is say so.

A figure points at a black grant card with a cross stamped across it

What’s next

The same hints belong in the CLI too. An admin assigning roles from a terminal deserves the same nudge. The open question is whether the API should return the warnings. That way the console and the CLI read them from one place. Neither has to keep its own copy of the rules. I’d bet on the API.

Keep the core strict and predictable. Put the help where people make the decision. It’s the same choice I made in our scheduler. The obvious fix there was making a dangerous tool more forgiving. Instead, a preview worked better.