Skip to content

feat(access-control): own tasks per user #215

Closed

Description

@uniqueg

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?

  1. Conquest as a service client: security.auth.service_clients with on_behalf_of: true (and its issuer), on_behalf_of_header, security.access_control.client_mapping to the role that may submit and read tasks; documented for deployments.
  2. 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.
  3. Filter GET /tasks with resource_filter() (admins: all), and return 404 for GET /tasks/{id} and cancel on tasks of others (no existence leak).
  4. Migration: tasks without owner are visible to admins only.
  5. Sharing tasks with other users (maintainer and viewer roles, Add Access Control #153): per the decision on Add Access Control #153.
  6. 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.

Activity

  1. added
    priority: high
    status: blocked
    type: auth
    type: feature
    type: security
    workload: days
    ecp-wp4: M4.4
    on Oct 22, 2026
  2. self-assigned this
    on Oct 23, 2026
  3. moved this from Backlog to In progress in ELIXIR On-Cloudon Oct 23, 2026
  4. added
    status: in progress
    and removed
    status: blocked
    on Oct 23, 2026
  5. moved this from In progress to Done in ELIXIR On-Cloudon Oct 23, 2026
  6. removed
    status: in progress
    on Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

ecp-wp4: M4.4priority: hightype: authtype: featuretype: securityworkload: days

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions