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
HTTP regression fixtures for private attachments across two organizations
#3626
Is there already an HTTP-level fixture for reading a real internal-media attachment as a member of each of two separate organizations?
I read anexo-de-lead-isolamento-e-poda.test.ts: it already covers own/cross-organization row access, viewer permissions and media pruning. Its Storage cases insert metadata in SQL. I also found the separate tenant-B Auth seed; the same-user/two-organization seed would not be a valid forbidden actor for this check.
I maintain Leak Regression Lab, a shared read-only checker. The additional observation is actual Auth/PostgREST/Storage responses: expected row and file bytes for the permitted member, then denial for the other organization, anonymous access and the public-object route. It preserves the owner-positive control and local before/after reports. It does not replace your SQL, role, pruning, MFA or browser tests.
If your test setup already has two distinct ordinary Auth users in separate test organizations, with neither user authorized for the other's attachment, a dummy attachment row and an uploaded private file per organization, the same v0.1.2 package and setup can be configured with crm_lead_attachments.id, the expected file_name, and the internal-media object paths. Use current sessions obtained through your normal test login/MFA flow; do not change grants or disable MFA for it.
Would that complement your current checks, or is this already covered elsewhere? If you try it, the version and result or first setup obstacle is enough. Keep credentials, private paths and raw files local.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Is there already an HTTP-level fixture for reading a real
internal-mediaattachment as a member of each of two separate organizations?I read
anexo-de-lead-isolamento-e-poda.test.ts: it already covers own/cross-organization row access, viewer permissions and media pruning. Its Storage cases insert metadata in SQL. I also found the separate tenant-B Auth seed; the same-user/two-organization seed would not be a valid forbidden actor for this check.I maintain Leak Regression Lab, a shared read-only checker. The additional observation is actual Auth/PostgREST/Storage responses: expected row and file bytes for the permitted member, then denial for the other organization, anonymous access and the public-object route. It preserves the owner-positive control and local before/after reports. It does not replace your SQL, role, pruning, MFA or browser tests.
If your test setup already has two distinct ordinary Auth users in separate test organizations, with neither user authorized for the other's attachment, a dummy attachment row and an uploaded private file per organization, the same v0.1.2 package and setup can be configured with
crm_lead_attachments.id, the expectedfile_name, and theinternal-mediaobject paths. Use current sessions obtained through your normal test login/MFA flow; do not change grants or disable MFA for it.Would that complement your current checks, or is this already covered elsewhere? If you try it, the version and result or first setup obstacle is enough. Keep credentials, private paths and raw files local.
All reactions