Skip to content

Tasks visible to their owner only, no sharing #124

Done
5 of 5 issues completed
Done

Description

@uniqueg

Problem

On the NL TES (TESP), a user in the ADMIN group sees tasks run by other users. 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.

Related designs currently allow wider access: the decided group model (EOC-Compute and ADMIN run tasks) said nothing about visibility; Poiesis' redesign (JaeAeich/poiesis#128, #122, #123) proposes group sharing (tasks stamped with the creator's groups) and an admin role that sees all tasks; the tes-authz spec has an admin path.

Proposal (to decide)

Across the ELIXIR On-Cloud TES stack (proTES, TESP, Poiesis, TESK, Funnel, the tes-authz decision service):

  1. Owner-only access to tasks through the API: list, get, cancel. No admin read access, no group sharing in the TES.
  2. Sharing is a client concern: a client that wants it pulls the task information into its own store and shares it there, under its own data agreements.
  3. Operators handle stuck or abusive tasks through the infrastructure (and logs that don't expose task data), not through the TES API.
  4. Group membership (EOC-Compute, ADMIN) only decides who may run tasks.

To do

  • Confirm the proposal (uniqueg).
  • Check each implementation and file follow-ups: proTES/FOCA (admins only act on unowned resources today), TESP (admins see all tasks today), Poiesis (CZ: deploy our own TESK (elixir-tes-ns) #122/Give each app its own LS Login client #123 in the redesign), tes-authz (spec and golden tests), TESK, Funnel.
  • Write it into the authN/Z flow document (M4.4) and the TES-wide recommendation drafted in poiesis#128.

Sub-issues

Sub-issues

5 of 5 Issues completed
Loading 5 sub-issues

Activity

  1. added
    priority: high
    type: security
    workload: days
    status: triage
    on Nov 20, 2026
  2. uniqueg commented on Nov 23, 2026

    @uniqueg
    MemberAuthor

    Confirmed on 20 Nov as proposed: owner-only list, get and cancel through the TES API; no admin read access and no group sharing in the TES; sharing is a client concern; operators act through the infrastructure; group membership (EOC-Compute, ADMIN) only decides who may run tasks.

    Follow-ups so far:

    Still to check: proTES/FOCA, TESP, Poiesis, the tes-authz spec and golden tests, Funnel; then the M4.4 authN/Z flow document.

  3. self-assigned this
    on Nov 23, 2026
  4. added
    status: in progress
    and removed
    status: triage
    on Nov 23, 2026
  5. moved this from Backlog to Tracking in ELIXIR On-Cloud: Low Priorityon Nov 23, 2026
  6. added
    ecp-wp4: M4.4
    on Nov 28, 2026
  7. uniqueg commented on Dec 2, 2026

    @uniqueg
    MemberAuthor

    Closing: all To-do items are done or handed over to their own tracks.

    To-do Evidence
    Confirm the proposal Confirmed on 20 Nov 2026 as proposed (comment above).
    TESK elixir-cloud-aai/tesk-api#218, closed 23 Nov by tesk-api#219 (TESK_API_AUTHORISATION_TASK_VISIBILITY, default owner); elixir-cloud-aai/TESK#337, closed 2 Dec by TESK#348 (chart value auth.taskVisibility, empty = tesk-api's default owner), released in chart 0.5.0 and live at the FI and CZ TESKs since 2 Dec.
    proTES / FOCA elixir-cloud-aai/protes#515, closed 29 Nov by proTES#539: FOCA's permissions API is off in the base config, so admins can no longer make themselves owners of others' tasks; admins keep usage, execution reports and provenance (no task content). elixir-cloud-aai/protes#519 (owners list their own tasks without a role), closed 29 Nov by proTES#518. Both in proTES 0.8.0, live on Rahti since 1 Dec: GET /admin/access-control/permissions answers 404. elixir-cloud-aai/foca#821, closed 28 Nov by foca#840 (security.access_control.api_refused_rules, on FOCA dev, not released yet), for apps that need the permissions API on.
    tes-authz elixir-cloud-aai/tes-authz#23, closed 25 Nov by tes-authz#24 (owner-only reference policy and contract, list scope; in tes-authz 0.1.0).
    Poiesis JaeAeich/poiesis#122 (closed 21 Nov, #137) and #123 (closed 21 Nov, #138): tasks owner-only by default; group sharing (authz.sharing) and admin read (authz.adminRead) are opt-ins, off by default, never stamped from the creator's groups. Our FI and CZ deployments set neither, so both are off.
    TESP Admins see all tasks; no integration with ELIXIR On-Cloud (TESP isn't behind proTES and takes no LS Login tokens), and nothing is reported to CESNET for now. A note for a later talk with its maintainers, no issue now.
    Funnel Owner-only already (OIDC with audience and scope checks, tasks per user; generic-issues#20). Not integrated: we inform its maintainers once TESK and Poiesis owner-only auth works, which is now the case; no issue for this one.
    AuthN/Z flow document (M4.4) The operator policies, "Access control for compute" (docs.elixir-on.cloud), state owner-only, no admin view, no sharing in the service (sharing is up to clients), operators through the infrastructure and groups only for creating jobs (elixir-cloud-aai/docs#253, PR elixir-cloud-aai/docs#254); the internal authN/Z design records the decision too.
    TES-wide recommendation (poiesis#128) Owner-only was added as the first requirement of the review on JaeAeich/poiesis#128 (20 Nov) and agreed there (JaeAeich, 21 Nov); the ADR that turns it into the TES-wide contract is JaeAeich/poiesis#125 (open), with our note of 23 Nov that sharing, adminRead and API keys are Poiesis extensions outside the contract. Writing the ADR continues there.
  8. removed
    status: in progress
    on Dec 2, 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: securityworkload: days

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions