Repository navigation
Description
Why?
Child of #201; takes over #153. Every authenticated user can list, read and cancel everyone's tasks. The ELIXIR On-Cloud auth policy (section 6) decides:
- A task submitted with a user token belongs to that user (
sub). - A task submitted by Conquest with its service token belongs to the user that Conquest names; proTES trusts that only from allow-listed service clients.
- Listing and reading tasks shows a user only their own tasks; admins see all. The dashboard thus shows users their direct tasks and those of their workflows.
FOCA 0.16 provides service tokens with on-behalf-of users (elixir-cloud-aai/foca#340) and resource ownership helpers (elixir-cloud-aai/foca#354).
How?
- Conquest as a service client:
security.auth.service_clientswithon_behalf_of: true(and itsissuer),on_behalf_of_header,security.access_control.client_mappingto the role that may submit and read tasks; documented for deployments. - On
POST /tasks, make the requesting user (get_on_behalf_of_user()for allow-listed service clients, the token subject otherwise) the owner, via FOCA's ownership helpers; store the owner in the task document. - Filter
GET /taskswithresource_filter()(admins: all), and return404forGET /tasks/{id}and cancel on tasks of others (no existence leak). - Migration: tasks without owner are visible to admins only.
- Sharing tasks with other users (maintainer and viewer roles, Add Access Control #153): per the decision on Add Access Control #153.
- Docs (access control page).
Acceptance criteria
- Users see, read and cancel only their own tasks; admins see all.
- Tasks submitted by Conquest for a user belong to that user; other callers naming a user are rejected (
403). - Tests cover users, admins, Conquest, other service clients and the migration.
Closes #153.
Update (2026-10-22): generic configuration. proTES must stay generic, so that any organization can deploy it with its own identity provider, clients and groups. Wherever this issue names LS Login, ECP_CLN, Krini, Conquest or other ELIXIR On-Cloud specifics, read them as examples of deployment configuration: the implementation has no such defaults (issuers, audiences, service clients, group mappings and on-behalf-of clients are all set by the deployment), and config comments, chart values, docs and tests use generic, clearly fictitious values. ELIXIR On-Cloud deployment values are documented outside this repository.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity