Repository navigation
Closed
Labels
priority: highHigh prioritytype: securityRelated to securityworkload: hoursLikely takes hours to resolve
Milestone
Description
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
AuthITcover both modes. -
docs/access-control.md, the configuration reference anddocs/upgrading.mdupdated. - The TESK chart can set the value (follow-up in elixir-cloud-aai/TESK if it can't pass the variable through today).
Metadata
Metadata
Assignees
Labels
priority: highHigh prioritytype: securityRelated to securityworkload: hoursLikely takes hours to resolve
Type
Projects
- StatusShow more project fieldsDone
Activity
build: set the 2.1.0 date and complete the notes