You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug(security): a delegate-minted session can self-approve gated skills with the audit blind to it (is_person fails open) #3404
What: A Workspace session minted through a portal_delegate key (portal_exchange) is indistinguishable from a person's own OTP session, so it counts as a proven person and can self-approve a gated skill for that email. The self-approval audit row from the execute_task backstop records no credential kind (current_user=None), so a browser session, a user-scoped key and a delegate-minted session look alike. Separately, PortalPrincipal.is_person defaults to True, a fail-open default now that the field decides self-approval. Why deferred: The reach matches ent#611's answer route (a delegate-minted session can already answer asks as that person). Telling the two apart needs a claim in the portal session token, which is a separate design change. Context: client_portal/portal_auth.py::get_portal_principal (the session branch returns PortalPrincipal(email, False)), client_portalportal_exchange, skill_gate_service.audit_self_approved. Options: stamp minted_by=delegate in the session token and treat such sessions as unproven for self-approval, and record the credential kind on the audit row. Also flip the is_person default to False, with every constructor passing it explicitly. Interest: An integration holding a delegate key can run a gated skill for any approver whose email it can mint a session for, and the audit trail cannot show that it did. Effort (AI): M Source: abilityai/trinity-enterprise#751 (delta review after the eyeball)
Filed by trinity-pm /groom 2026-10-08 (Debt Health & Inbox Triage).
Activity
fix(gates): a delegate-minted Workspace session cannot self-approve a…
Merge origin/dev into feature/837-workspace-only-role