Skip to content

TESP API: LS Login and ECP_CLN access control #106

Open

Description

@uniqueg

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):

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?

  1. 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.
  2. 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_CLN once 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):

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_CLN members 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 🚀

Activity

  1. added
    status: blocked
    priority: low
    type: auth
    type: delivery
    workload: days
    on Nov 11, 2026
  2. added
    ecp-wp4: M4.4
    flag: nice to have
    on Nov 11, 2026
  3. removed
    type: delivery
    on Nov 13, 2026
  4. moved this from Backlog to Nice to have in ELIXIR On-Cloudon Nov 17, 2026
  5. added
    status: triage
    and removed
    status: blocked
    on Nov 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ecp-wp4: M4.4flag: nice to havepriority: lowstatus: triagetype: authworkload: days

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions