docs(rbac): correct assigned_inboxes comment for secure-by-default agent (CRM-181) - #281
Conversation
…ent (CRM-181) The comment claimed the upgrade migration GAVE read_all to every pre-existing role, so revoking it was always the admin's explicit act. With CRM-181 the evo-auth data-migration REVOKES read_all from the system `agent` role automatically (secure-by-default). Reword: the agent no longer holds read_all and sees only its member inboxes; account_owner/super_admin keep it; for custom roles, revoking remains the admin's explicit act. Behaviour unchanged — the enforcement here (read_all/administrator? only) already matches. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Reviewer's guide (collapsed on small PRs)Reviewer's GuideUpdates the documentation comment for User#assigned_inboxes to reflect the new secure-by-default behavior of the system File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
ℹ️ Independente. Só corrige um comentário ( Ordem geral da leva (desmembramento do antigo PR #84): Os 4 PRs do auth tocam os mesmos arquivos ( Par de deploy: #85 (auth, a chave Independentes (sem ordem): #281 (CRM-181 comentário), #282 (CRM-182 spec), #283 (CRM-190 spec), #310 (CRM-178 front). 🤖 Generated with Claude Code |
CRM-181 (lado CRM) — corrige o comentário de
User#assigned_inboxesPar do PR do auth que revoga
conversations.read_alldo papelagent.O comentário afirmava que a migration de upgrade deu
read_alla todo papel pré-existente, logo revogar seria sempre "ato explícito do admin". Com o CRM-181 a data-migration do auth revogaread_alldo papelagentde sistema automaticamente (secure-by-default) — o comentário viraria falso. Reescrito: o agent não tem maisread_alle vê só suas inboxes-membro;account_owner/super_adminmantêm; para roles custom, revogar segue sendo ato explícito do admin.Só comentário — comportamento inalterado (o enforcement aqui,
read_all/administrator?, já casa).🤖 Generated with Claude Code
Summary by Sourcery
Enhancements:
User#assigned_inboxesdocumentation to accurately describe secure-by-default inbox visibility and role-specificread_allpermissions.