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
cloud-registry implements per-resource ownership itself: the creating user becomes owner, owners grant user and group roles (owner, maintainer) on a resource, the last owner can't be removed, and admins see everything. proTES needs the same for tasks (the submitting user owns a task and lists only their own tasks; a task submitted by an allow-listed service client on a user's behalf belongs to that user, see #340), and TRS-Filer and DRS-Filer will need it later. Each app writing it again is costly and error-prone.
How?
Extract the generic parts of cloud-registry's implementation (cloud_registry/ga4gh/registry/permissions.py and related access-control code) into FOCA's access control: resource owners and roles, user and group subjects, the last-owner rule, and helpers to filter listings to the resources a subject may see.
Keep the API surface (endpoints for listing and changing permissions) optional, so apps can expose it under their own paths.
Migrate cloud-registry to it afterwards (separate issue there).
Acceptance criteria
An app can declare a resource type as owned and get ownership on create, role management, owner-filtered listings and admin override from FOCA; tests cover it.
Documented, with cloud-registry's behaviour as the reference.
Activity
test(access-control): add issuers to owner claims
fix(access-control): keep owners on failed checks
uniqueg commentedon Oct 22, 2026
Done in #378 and #382.