Files
zeekay 61a8964d11 Decide Sudo on the home org, never a membership
Claims.Sudo is SuperAdmin: a person whose own org -- Home, the first
entry of orgs, which IAM opens with the org its user row lives in -- is
the admin org.  A membership of the admin org held from another org is
not platform authority, and a machine never is.

Such a membership now opens nothing anywhere in the decision: not an
EffectiveOrg switch, not OrgAdmin, not a Grants path, and not
Principal.MemberOf or AdminOf, which only a SuperAdmin passes for the
admin org.  memberOf is exported as MemberOf, so a service scoping a
request asks the same question the registry decision does.

Claims.Principal projects a person onto Home rather than the owner
claim, which names the application the token was minted through, and
never hands a machine the org-admin bit.

The two vectors in testdata/claims.json that hold an admin membership
after the first entry now read sudo false; the datastore's SuperAdmin
differs from Sudo only in the signing key.

Claude-Session: https://claude.ai/code/session_01HuMDfgFssPUptYUzgZ6Cp8
2026-09-27 19:19:31 -07:00
..
2026-09-07 21:52:19 -07:00