Repository navigation
Description
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?
security.auth: issuerhttps://login.aai.lifescience-ri.eu/oidc/,audience(deployments list the client IDs of the frontends; the repository default requires it, the Compose dev overlay setsverify_audience: Falsewith a comment),userinfo_claims: [eduperson_entitlement](LS Login releases groups via user info only).- Access control (
enabled,enforce), with policies in the config:GET /service-infoand the Swagger UI public;POST /tasks,GET /tasks,GET /tasks/{id}and cancel for the roleuser; everything foradmin.group_mappingmaps theECP_CLNentitlement values (and its subgroups', exact values taken from a test member's user info) touserandECP_CLN:ADMINtoadmin; refuse to start without an admin group, as cloud-registry does (option to turn it off). disable_auth: False; error responses401and403as problem details with Bearer challenges.- 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 outsideECP_CLNget403,ECP_CLNmembers (incl. subgroups) are accepted;GET /service-infostays 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:
- 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.
- 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. - All examples (config comments, chart values, docs, tests) use generic, clearly fictitious values (e.g.,
https://login.example.org/oidc/,compute-users,compute-admins). - Acceptance criteria read "members of a group mapped to
user" instead ofECP_CLN, and "tokens of the configured issuers and audiences" instead of LS Login. - 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.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
refactor!: upgrade to FOCA 0.15 (#219)
[-]feat(auth)!: require LS Login tokens for tasks[/-][+]feat(auth)!: require tokens for task operations[/+]