Repository navigation
Description
Why?
The NL Node (SURF) is deploying TESP API (https://github.com/CESNET/tesp-api) as its TES service (#22), and the DE Node may follow with a second deployment. It is desirable, but not required for M4.4: proTES can keep using service credentials downstream (elixir-cloud-aai/protes#201). Since the TES services do the actual work, they should eventually authenticate users and authorize them by group membership, as for Funnel (#20) and Poiesis (#21).
Current upstream state (CESNET/tesp-api 0.2.0):
- Authentication: OAuth2 bearer tokens (
oauth.enable); the token'ssubis the taskauthor, and users see and cancel only their own tasks. Configurable accepted issuers and audience are in WIP PR [WIP] implement oauth fix to not accept tokens from any issuer CESNET/tesp-api#53. - Authorization by group membership: not supported; proposed upstream in Replaceable access decision, with a group or entitlement claim rule as default CESNET/tesp-api#63 (built-in claim rule behind one replaceable decision point, optional external decision service).
- Service info: public, but with fixed values (
id, organization,environment: dev); proposed upstream in Configurable service info CESNET/tesp-api#62.
Authorization policy (agreed). Users must be members of the LS Login (Perun) group ECP_CLN (organization ELIXIR, "ELIXIR Compute Platform group for cloud apps") or any of its subgroups. The subgroups are currently ADMIN, BioHackCloud, BioHackCloud Admins, ELIXIR-CH, ELIXIR-CZ, ELIXIR-DE, ELIXIR-FI, ELIXIR-GR, ELIXIR-NL and OSS, plus the new EOC-Compute for approved compute users (elixir-cloud-aai/krini#45, #49; exact values in #46). Membership is managed as LS Login VO groups and released to services as entitlement values, typically in the eduperson_entitlement claim.
Do not hardcode a guessed string. Take the exact value(s) from the userinfo response or token of a test member; expect something like urn:geant:lifescience-ri.eu:group:<vo>:ECP_CLN…#…. Also check whether subgroup members carry the parent ECP_CLN entitlement. If they don't, accept ECP_CLN plus anything under ECP_CLN: by prefix. Note too whether the claim appears in the access token or only via userinfo, since that determines whether a userinfo lookup is needed.
How?
- Upstream: follow [WIP] implement oauth fix to not accept tokens from any issuer CESNET/tesp-api#53 (issuer and audience), Prepare the ELIXIR On-Cloud flyer #63 (group-based access) and Define the ELIXIR On-Cloud brand kit #62 (configurable service info); send PRs if the maintainers welcome them.
- Deployment config: per TESP API deployment, enable OAuth2 against LS Login (issuer and audience as in Cloud Registry: register the CZ and GR services #53), enable the claim rule for
ECP_CLNonce available, set the service info, and verify that proTES-forwarded tokens are accepted (proTES: validate LS Login bearer tokens and define how downstream TES credentials are handled protes#201 option b):- NL: SURF (Deploy a TES service at the NL Node (SURF) #22)
- DE: only if a TESP API deployment is planned there
Acceptance criteria
- Upstream issues or PRs for group-based access and configurable service info exist, and are merged or have an agreed path.
- Every TESP API deployment in the checklist accepts tokens of
ECP_CLNmembers only, rejects unauthenticated requests, and reports its own service info.
Dependencies: blocked by #22. Upstream: CESNET/tesp-api#53, CESNET/tesp-api#62, CESNET/tesp-api#63. Relates to #20, #21 and elixir-cloud-aai/protes#201.
Part of the ELIXIR Compute Platform WP4 sprint (M&Ds due end of December 2026).
If you want to work on this issue:
- Assign yourself (if someone is already assigned, ask them first or pick another one)
- Move the issue to "In progress" on the project board
- Start working 🚀
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsNice to have
Activity