Skip to content

DE: configure the BIH TESK for LS Login and the gateway #170

Done

Description

@uniqueg

Why?

Only if the DE Node chooses TESK (#169). The BIH TESK already requires tokens, but which issuer and rule it checks isn't recorded, and its test task failed on 2026-11-21: the taskmaster got 401 Unauthorized from the Kubernetes API when it created the task's PVC (elixir-cloud-aai/nvflare-wes-testbed#3). The gateway can use it with the same settings as the FI and CZ TESKs (#35, #122, #111, #138).

How?

Use TESK chart 0.4.0 with tesk-api 2.0.0, the latest releases. Follow Tutorial: Onboard a Node, steps 2, 3 and 7, and the TESK docs it links: Authorisation by a claim and Tokens of services. The auth values that the FI and CZ TESKs run:

auth:
  mode: auth
  userInfoUri: https://login.aai.lifescience-ri.eu/oidc/userinfo
  claim:
    enabled: true
    name: eduperson_entitlement
    values:
      - "urn:geant:lifescience-ri.eu:group:elixir:ECP_CLN:EOC-Compute#aai.lifescience-ri.eu"
  tokenClients:
    enabled: true
    issuer: https://login.aai.lifescience-ri.eu/oidc/
    audience: 7c0c1fc0-e8ca-47d6-a9b2-bdc843961146
    claim: client_id
    clients:
      - 7c0c1fc0-e8ca-47d6-a9b2-bdc843961146
  • Only members of ECP_CLN:EOC-Compute create tasks; not ECP_CLN:ADMIN, not the parent ECP_CLN (values in LS Login: record the ECP_CLN entitlement values #46).
  • tokenClients lets the gateway in: 7c0c1fc0-… is proTES' LS Login client, whose client credentials tokens carry its own client ID as aud (proTES: get client credentials tokens from LS Login #136).
  • Keep GET /service-info public (the default): the registry syncs from it.
  • Fix the taskmaster's 401: check that the taskmaster's service account exists and that its token is mounted (TESK docs, Requirements).
  • If the namespace has a LimitRange, read fix: set resource limits on executor containers tesk-api#234 first: under one, tasks can hang.
  • No tes-authz: tesk-api 2.0.0 checks the claim itself. The redesign with tes-authz (tesk-api 2.1.0, chart 0.5.0) isn't released, and its values differ; stay on chart 0.4.0 until its upgrade notes say how to move.

Acceptance criteria

  • The BIH TESK runs chart 0.4.0 and tesk-api 2.0.0 with the values above. GET /tasks without a token or with an invalid one returns 401; GET /service-info answers without a token.
  • A task created with a token of an ECP_CLN:EOC-Compute member runs to COMPLETE.
  • The settings are recorded here (no secrets).

If #169 chooses Poiesis, close this issue as not planned.


Part of the ELIXIR Compute Platform WP4 sprint (M&Ds due end of December 2026).

Activity

  1. added
    status: blocked
    priority: medium
    workload: hours
    ecp-wp4: M4.4
    flag: nice to have
    on Nov 28, 2026
  2. moved this from Backlog to Nice to have in ELIXIR On-Cloudon Nov 28, 2026
  3. added
    status: triage
    status: in progress
    and removed
    status: blocked
    status: triage
    on Dec 2, 2026
  4. vschnei commented on Dec 3, 2026

    @vschnei

    Done on 2026-12-02 (Helm revision 10; revision 11 only changed the service info). The BIH TESK runs chart 0.4.0 with tesk-api 2.0.0 and the auth values above: claim rule for ECP_CLN:EOC-Compute only (ECP_CLN:ADMIN removed), auth.tokenClients for proTES' client 7c0c1fc0-… (issuer LS Login, audience = client ID, claim client_id). Additionally set: auth.groups (claim eduperson_entitlement) and auth.envBaseGroup elixir:ECP_CLN:EOC-Compute.
    GET /service-info answers 200 without a token; GET /tasks without or with an invalid token returns 401. A task created with a member token ran to COMPLETE (task-58b5ea7a).
    Taskmaster 401 of 2026-11-21: caused by clock skew between API server instances of the control plane (up to 483 s), gone since its restart on 2026-11-24. The service account exists, its token is mounted, and it may create PVCs and jobs. The namespace has no LimitRange and no ResourceQuota.

  5. moved this from Nice to have to Done in ELIXIR On-Cloudon Dec 3, 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.4flag: nice to havepriority: mediumstatus: in progresstype: deploymentworkload: hours

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions