Skip to content

Tasks visible to their owner only #218

Closed

Description

@uniqueg

Part of elixir-cloud-aai/generic-issues#124 (owner-only access to tasks across the ELIXIR On-Cloud TES stack, decided 2026-11-20).

Current behaviour

With the group model enabled (docs/access-control.md), visibility follows the groups:

  • a super admin (<env group>:ADMIN) can get, list and cancel all tasks of the installation;
  • a team admin (<env group>:<team>:ADMIN) can get, list and cancel all tasks created for that team.

Tasks can reference or contain private data (inputs, outputs, logs, environment). Data access is granted to individual people, so showing a task to anyone but its owner, admins included, can leak data and break data access agreements downstream.

Proposal

  • A setting for task visibility, e.g. TESK_API_AUTHORISATION_TASK_VISIBILITY = owner | group:
    • owner: get, list and cancel return only the caller's own tasks, whatever their groups (super admins and team admins included). Groups only decide who may create tasks.
    • group: today's behaviour, for installations that rely on it.
  • Default owner (secure by default). Upgrade notes say how to keep the old behaviour.
  • Operators handle stuck or abusive tasks through Kubernetes, not through the TES API.

Acceptance criteria

  • With owner, a super admin and a team admin get 403/404 on another user's task, list only their own tasks and cannot cancel others' tasks; a task's owner keeps full access.
  • With group, behaviour is unchanged (existing tests stay green).
  • Unit tests and AuthIT cover both modes.
  • docs/access-control.md, the configuration reference and docs/upgrading.md updated.
  • The TESK chart can set the value (follow-up in elixir-cloud-aai/TESK if it can't pass the variable through today).

Activity

  1. self-assigned this
    on Nov 23, 2026
  2. added
    priority: high
    status: in progress
    type: security
    workload: hours
    on Nov 23, 2026
  3. moved this from Backlog to In progress in ELIXIR On-Cloud: Low Priorityon Nov 23, 2026
  4. moved this from In progress to In review in ELIXIR On-Cloud: Low Priorityon Nov 23, 2026
  5. removed
    status: in progress
    on Nov 23, 2026
  6. added this to the v2.1.0 milestone on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

priority: hightype: securityworkload: hours

Type

No type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions