mirror of
https://github.com/hanzoai/authz.git
synced 2026-11-18 13:25:20 +00:00
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