Skip to content

feat(auth)!: require tokens for task operations #212

Closed

Description

@uniqueg

Why?

Child of #201. The TES API of proTES has disable_auth: True: anyone can submit tasks to every backend of the network through proTES, and list, read and cancel everyone's tasks. The ELIXIR On-Cloud auth policy makes proTES an edge service: it validates LS Login access tokens of users from the frontends (Krini, the dashboard, the CLI) and requires membership in ECP_CLN (or a subgroup); admin actions need ECP_CLN:ADMIN. cloud-registry shows how with FOCA 0.15.

How?

  1. security.auth: issuer https://login.aai.lifescience-ri.eu/oidc/, audience (deployments list the client IDs of the frontends; the repository default requires it, the Compose dev overlay sets verify_audience: False with a comment), userinfo_claims: [eduperson_entitlement] (LS Login releases groups via user info only).
  2. Access control (enabled, enforce), with policies in the config: GET /service-info and the Swagger UI public; POST /tasks, GET /tasks, GET /tasks/{id} and cancel for the role user; everything for admin. group_mapping maps the ECP_CLN entitlement values (and its subgroups', exact values taken from a test member's user info) to user and ECP_CLN:ADMIN to admin; refuse to start without an admin group, as cloud-registry does (option to turn it off).
  3. disable_auth: False; error responses 401 and 403 as problem details with Bearer challenges.
  4. Docs: access control page (who may do what, how to configure groups and audiences); integration with the Compose setup for local testing.

Ownership of tasks (#215), service tokens of Conquest (#214, #215), and the credentials used towards TES backends (#213) are separate child issues of #201.

Acceptance criteria

  • Task requests without a valid token get 401, users outside ECP_CLN get 403, ECP_CLN members (incl. subgroups) are accepted; GET /service-info stays public.
  • Only tokens from LS Login for the configured audiences are accepted; tests cover issuers, audiences, groups and the public endpoints.
  • Documented.

Supersedes #183.


Update (2026-10-22): generic configuration. proTES must stay generic, so that any organization can deploy it with its own identity provider; ELIXIR On-Cloud specifics (LS Login, ECP_CLN, Krini, Conquest) are deployment configuration, documented outside this repository. This replaces the LS Login- and ECP-specific parts above:

  1. No identity-provider-specific defaults: no default issuer, audience or group claim. Like cloud-registry (cloud-registry#166), the app refuses to start without trusted issuers, an audience (or the explicit opt-out) and an admin mapping, with clear messages.
  2. The roles (user, admin) and their policies stay in the default config; which groups map to which role (group_mapping) is deployment configuration with no default.
  3. All examples (config comments, chart values, docs, tests) use generic, clearly fictitious values (e.g., https://login.example.org/oidc/, compute-users, compute-admins).
  4. Acceptance criteria read "members of a group mapped to user" instead of ECP_CLN, and "tokens of the configured issuers and audiences" instead of LS Login.
  5. Operators can make reads public or require login per operation with FOCA's spec patches (feat: patch specs and policies via config foca#396, FOCA 0.17).

The question about the exact ECP_CLN values is no longer a question for this repository.

Activity

  1. added
    priority: high
    status: blocked
    type flag: breaking change
    type: auth
    type: security
    workload: days
    ecp-wp4: M4.4
    on Oct 22, 2026
  2. added a commit that references this issue on Oct 22, 2026
  3. changed the title [-]feat(auth)!: require LS Login tokens for tasks[/-] [+]feat(auth)!: require tokens for task operations[/+] on Oct 22, 2026
  4. added
    status: in progress
    and removed
    status: blocked
    on Oct 22, 2026
  5. moved this from Backlog to In progress in ELIXIR On-Cloudon Oct 23, 2026
  6. moved this from In progress to Done in ELIXIR On-Cloudon Oct 23, 2026
  7. removed
    status: in progress
    on Oct 23, 2026
  8. self-assigned this
    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 flag: breaking changetype: authtype: securityworkload: days

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions